This forum is no longer active. Please post your questions to our new community site

Can't run "rake" command with RubyStack 2.1-1 dev on Windows

Subscribe to Can't run "rake" command with RubyStack 2.1-1 dev on Windows 5 post(s), 3 voice(s)

 
Avatar emzero 2 post(s)

Hi,

I’ve installed the RubyStack 2.1-1 dev (Ruby 1.9.2, Rails 3.0.3) on Windows 7 x64.

Now I need to install “Spree” (not the Bitnami app stack, but the original app).

Everything worked fine until I needed to run “rake spree_sample:install” but it threw the following error:

D:/Program Files/BitNami RubyStack Development/ruby/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path’: can’t find executable rake for rake-0.8.7 (Gem::Exception)
from D:/Program Files/BitNami RubyStack Development/ruby/bin/rake:19:in `’

Same error occurs when just executing ‘rake’.

Any help would be appreciated. Bare in mind I’m not a RoR expert.
Thank you.

 
Avatar emzero 2 post(s)

I have fixed it following this article
http://sanjusoftware.wordpress.com/2010/12/04/b…

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Yes, this is a known issue that we will fix in the next version. Thanks for posting it.

 
Avatar bjpcjp 1 post

Hi everyone,
Same problem. Win7, RoR 3.0.3, Ruby 1.9.2. Several forums recommend the same patch, but I see no difference after removing the rake.gemspec. Win Path starts with Ruby192. Ideas?
Best,
Brian (also not an RoR expert)

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Are you running the rake command from the “rubystackconsole” that you can find in the Start Menu Shortcuts? I checked this patch and now it works properly