Let’s try this again, shall we? win32console problems
So after last night’s attempt to get a working windows+ruby+rails+cucumber environment and the blogging thereof, I was ready to make some real progress tonight.
No dice. I got through a handful more commands in the RSpec book before I hit another issue.
I got the rails generate rspec:install and rails generate cucumber:install to work last night. The next steps, on pg 288 (of printing 1), were these, to make sure everything was wired up correctly:
I got 2 problems from this command: ‘You must “gem install win32console”’ and ‘uninitialized constant Win32 (NameError)’. Here’s a gist of the whole output.
I decided to ignore the uninitialized constant error for the moment and go install win32 console. I ran the command exactly as instructed, and saw this go by:
And again:
But I already did that!!! Why isn’t cucumber recognizing that I installed win32console?!?
I started by googling for:
- i installed win32console but cucumber still
Remembering the lesson I just added to the previous post, I then searched the RubyInstaller google group for win32console. I found some talk about deprecating win32console.
That’s an interesting discussion for the future that I’m going to look into eventually. For now, I also found this ruby-forum post by Luis talking about a prerelease version of win32console. So I did gem uninstall win32console and gem install win32console –prerelease, then did rake cucumber again:
*** WARNING: You must “gem install win32console” (1.2.0 or higher) to get coloured output on MRI/Windows.
And my eyes are drooping faster than my fingers can google, so I’m going to get some rest. I’ll be back.