2013-03-31 64 views
2

我運行Ubuntu 12.04與rvm envRails服務器不工作在魯姆米訥,但在碼頭工作?

export PATH ; PATH="/home/wojtek/.rvm/gems/ruby-1.9.3-p392/bin:/home/wojtek/.rvm/gems/ruby- [email protected]/bin:/home/wojtek/.rvm/rubies/ruby-1.9.3- p392/bin:/home/wojtek/.rvm/bin:$PATH" 
export rvm_env_string ; rvm_env_string='ruby-1.9.3-p392' 
export rvm_path ; rvm_path='/home/wojtek/.rvm' 
export rvm_ruby_string ; rvm_ruby_string='ruby-1.9.3-p392' 
unset rvm_gemset_name 
export RUBY_VERSION ; RUBY_VERSION='ruby-1.9.3-p392' 
export GEM_HOME ; GEM_HOME='/home/wojtek/.rvm/gems/ruby-1.9.3-p392' 
export GEM_PATH ; GEM_PATH='/home/wojtek/.rvm/gems/ruby-1.9.3- p392:/home/wojtek/.rvm/gems/[email protected]' 
export MY_RUBY_HOME ; MY_RUBY_HOME='/home/wojtek/.rvm/rubies/ruby-1.9.3-p392' 
export IRBRC ; IRBRC='/home/wojtek/.rvm/rubies/ruby-1.9.3-p392/.irbrc' 
unset MAGLEV_HOME 
unset RBXOPT 

當嘗試啓動的RubyMine 5.0.2應用程序我得到:

/home/wojtek/.rvm/rubies/ruby-1.9.3-p392/bin/ruby  /home/wojtek/workspace/quotes/script/rails server -b 0.0.0.0 -p 3000 -e development 
/home/wojtek/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find i18n-0.6.1 in any of the sources (Bundler::GemNotFound) 
from /home/wojtek/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/spec_set.rb:85:in `map!' 
from /home/wojtek/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/spec_set.rb:85:in `materialize' 
from /home/wojtek/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/definition.rb:114:in `specs' 
from /home/wojtek/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/definition.rb:159:in `specs_for' 
from /home/wojtek/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/definition.rb:148:in `requested_specs' 
from /home/wojtek/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/environment.rb:18:in `requested_specs' 
from /home/wojtek/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:13:in `setup' 
from /home/wojtek/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler.rb:120:in `setup' 
from /home/wojtek/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/setup.rb:17:in `<top (required)>' 
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require' 
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require' 

Process finished with exit code 1 

當我在終端上運行相同的命令行它的工作原理罰款:

/home/wojtek/.rvm/rubies/ruby-1.9.3-p392/bin/ruby /home/wojtek/workspace/quotes/script/rails server -b 0.0.0.0 -p 3000 -e development 

任何想法可能發生什麼?

+1

這可能有所幫助:http://stackoverflow.com/questions/14431111/tuning-rubymine-ide – fmendez

回答

5
  1. 轉到Settings -> Ruby SDK and gems,並選擇Ruby1.9.3_orsomething_[global](該[global]是其中的重要組成部分)的Ruby SDK
  2. 運行Tools -> Bundler -> Install

不知道爲什麼,但它的工作。

+0

謝謝。如果你知道爲什麼,你能更新你的答案嗎? – okysabeni

相關問題