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:
> rake db:migrate # worked fine
> rake db:test:prepare # worked fine
> rake spec # got the expected output about not having any *_spec.rb files
> rake cucumber # :(
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:
> gem install win32console
Temporarily enhancing PATH to include DevKit...
Successfully installed win32console-1.3.0-x86-mingw32
1 gem installed
Installing ri documentation for win32console-1.3.0-x86-mingw32...
Installing RDoc documentation for win32console-1.3.0-x86-mingw32...
And again:
> rake cucumber
...
*** WARNING: You must "gem install win32console" (1.2.0 or higher) to get coloured output on MRI/Windows
...
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.