If you want to execute a rakefile, I think you can do:
%x{rake …}
ruby -e ‘%x{rake}’ produces the same error message
Nobuyoshi N. wrote:
It depends on what’s your platform and how you’ve installed
rake.
We’re running Windows XP. ruby -v says:
ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-mswin32]
I don’t know much more than that. I’m guessing we used the one-click
installation.
There are 3 rake files in my ruby installation directory:
rake - near the top it reads # This file was generated by RubyGems.
rake.bat - very similar to rake
rake.cmd - one line: @ruby “C:/ruby/bin/rake” %*
At Sat, 11 Aug 2007 00:28:16 +0900,
Larry F. wrote in [ruby-talk:264105]:
There are 3 rake files in my ruby installation directory:
rake - near the top it reads # This file was generated by RubyGems.
rake.bat - very similar to rake
rake.cmd - one line: @ruby “C:/ruby/bin/rake” %*
rake.cmd would work.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.