开发者

Rails application runs from terminal but not from Netbeans - missing gem error

开发者 https://www.devze.com 2023-01-20 10:31 出处:网络
Been trying to get my project up and running on an Ubuntu Virtual Box machine. Everything works fine from the terminal, but when I try to run my application from Netbeans I get the following error:

Been trying to get my project up and running on an Ubuntu Virtual Box machine. Everything works fine from the terminal, but when I try to run my application from Netbeans I get the following error:

=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.  Use #requirement
Missing these required gems:
  i18n  = 0.3.7

You'开发者_C百科re running:
  ruby 1.8.7.249 at /usr/bin/ruby1.8
  rubygems 1.3.7 at /home/soroush/.gem/ruby/1.8, /var/lib/gems/1.8

Run `rake gems:install` to install the missing gems.

Running 'gem list' from the terminal shows that i DO have i18n installed. I've searched for answers but haven't really been able to find anything that correlates to my specific error.

Thanks in advance for any help! Regards, Emil


What happens if you right-click on your project, choose "Run / Debug Rake Task" and run the gems:install task mentioned above?

Alternatively you should right-click on the project, choose Properties, choose "Gems" in the sidebar and add the i18n gem there. I had to do that for a project to get debugging working within netbeans, installing the correct gem using bundler from the command-line didn't do anything that NetBeans was picking up.

0

精彩评论

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