English 中文(简体)
Ruby Enterprise Edition - Rake not found
原标题:

I ve just had a new VPS set up and have installed Passenger with Ruby Enterprise Edition. However, I can t get rake to work.

/opt/ruby-enterprise-1.8.7-2010.01/bin/gem list

* LOCAL GEMS *

actionmailer (2.3.5, 2.2.3)
actionpack (2.3.5, 2.2.3)
activerecord (2.3.5, 2.2.3)
activeresource (2.3.5, 2.2.3)
activesupport (2.3.5, 2.2.3)
fastthread (1.0.7)
formtastic (0.9.7)
justinfrench-formtastic (0.2.4)
mysql (2.8.1)
passenger (2.2.9)
rack (1.1.0, 1.0.1)
rails (2.3.5, 2.2.3)
rails-settings (1.0.0)
rake (0.8.7)
sqlite3-ruby (1.2.5)

When I try and run a rake task, I get:

-bash: rake: command not found

Can anyone help?

Any advice appreciated.

Thanks.

问题回答

I ve been using REE for about a year and have always had this problem, which I ve always handled by doing this:

cd /usr/local/bin
sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby
sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/gem
sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/irb
sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/rake

I also had to do this for additional binaries installed by gems. Just for reference, I m using Ubuntu.

Alternatively, you can modify your environment s path (which would save you from having to create symlinks for new binaries), but I prefer this method as I run scripts as different users and don t want to modify everyone s path.

Had the same problem, after doing "gem install rake".

Fixed this by doing "sudo apt-get install rake".





相关问题
Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

multiple ruby extension modules under one directory

Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

热门标签