2013-03-29 80 views
0

在我的rails項目中運行軟件包安裝時出現錯誤。軟件包安裝失敗

[email protected]:~/workspace/blog$ bundle install 
/usr/bin/env: ruby: No such file or directory 

紅寶石

[email protected]:~/workspace/blog$ ruby -v 
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86__64-linux] 

[email protected]:~/workspace/blog$ which ruby 
/home/sahil/.rvm/bin/ruby 

接收下面的錯誤,同時通過安裝RVM紅寶石。

Error running 'env GEM_PATH=/home/sahil/.rvm/gems/ruby-2.0.0-p0:/home/sahil/.rvm/gems/[email protected]:/home/sahil/.rvm/gems/ruby-2.0.0-p0:/home/sahil/.rvm/gems/[email protected] GEM_HOME=/home/sahil/.rvm/gems/ruby-2.0.0-p0 /home/sahil/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -d /home/sahil/.rvm/src/rubygems-2.0.3/setup.rb --verbose', 
please read /home/sahil/.rvm/log/ruby-2.0.0-p0/rubygems.install.log 

RVM ENV

[email protected]:~$ gem env 
RubyGems Environment: 
- RUBYGEMS VERSION: 2.0.3 
- RUBY VERSION: 2.0.0 (2013-02-24 patchlevel 0) [x86_64-linux] 
- INSTALLATION DIRECTORY: /home/sahil/.rvm/gems/ruby-2.0.0-p0 
- RUBY EXECUTABLE: /home/sahil/.rvm/rubies/ruby-2.0.0-p0/bin/ruby 
- EXECUTABLE DIRECTORY: /home/sahil/.rvm/gems/ruby-2.0.0-p0/bin 
- RUBYGEMS PLATFORMS: 
- ruby 
- x86_64-linux 
- GEM PATHS: 
- /home/sahil/.rvm/gems/ruby-2.0.0-p0 
- /home/sahil/.rvm/gems/[email protected] 
- GEM CONFIGURATION: 
- :update_sources => true 
- :verbose => t 

RVM ENV看起來確定。不知道我錯過了什麼。

+1

沒有你 「sudo的創業板安裝捆綁」?然後你繞過rvm – three

+0

安裝rvm和ruby後我做了「gem install bundler」 –

回答