开发者

netbeans 6.9 rake error on Ubuntu 11.04

开发者 https://www.devze.com 2023-03-12 06:30 出处:网络
Each time I try to run a brand new rails project in Netbeans I get the following error: \"Could not find rake-0.9.2 in any of the sources (Bundler::GemNotFound)\"

Each time I try to run a brand new rails project in Netbeans I get the following error:

"Could not find rake-0.9.2 in any of the sources (Bundler::GemNotFound)"

What's happening?

P.S: I already did a bundle install and if I run "ruby s" from the console it wor开发者_如何学编程ks.

Thx.


Try to do the same manually, i.e from the terminal. First check which version of rails you are running, then try to bundle again from the terminal.

I suppose that your environment selected in netbeans does not recognize the latest rails gem but is using another one. Check with rails -v to see which version of rails you are running. If it is ok in the terminal, make sure you are running netbeans with the same user (ex. sudo or your user depending on the rvm config you have).

I had this problem several times with different IDE and every time it was because I was not using the proper user or not using the proper gemset in RVM (it's so easy to forget !)

After that it should be easy to resolve by choosing the right environment in the config of your project in netbeans or rubymine.

0

精彩评论

暂无评论...
验证码 换一张
取 消