我使用Ruby on Rails的4.0.5,我有這在我的.bash_profile
:導軌安裝突然找不到
-s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
但我發現了這個錯誤:
The program 'rails' can be found in the following packages:
* ruby-railties-3.2
* ruby-railties-4.0
Try: sudo apt-get install <selected package>
的Rails工作正常,但突然它不再工作了。我如何讓Rails再次工作?
供參考,在這裏是運行rvm info
的輸出:
[email protected]:~/development/public/COPD$ rvm info
ruby-2.1.0:
system:
uname: "Linux jean-ThinkPad-L430 3.13.0-24-generiC#47-Ubuntu SMP Fri May 2 23:31:42 UTC 2014 i686 i686 i686 GNU/Linux"
system: "ubuntu/14.04/i386"
bash: "/bin/bash => GNU bash, version 4.3.11(1)-release (i686-pc-linux-gnu)"
zsh: "/usr/bin/zsh => zsh 5.0.2 (i686-pc-linux-gnu)"
rvm:
version: "rvm 1.25.25 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]"
updated: "9 hours 56 minutes 27 seconds ago"
path: "/home/jean/.rvm"
ruby:
interpreter: "ruby"
version: "2.1.0p0"
date: "2013-12-25"
platform: "i686-linux"
patchlevel: "2013-12-25 revision 44422"
full_version: "ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux]"
homes:
gem: "/home/jean/.rvm/gems/ruby-2.1.0"
ruby: "/home/jean/.rvm/rubies/ruby-2.1.0"
binaries:
ruby: "/home/jean/.rvm/rubies/ruby-2.1.0/bin/ruby"
irb: "/home/jean/.rvm/rubies/ruby-2.1.0/bin/irb"
gem: "/home/jean/.rvm/rubies/ruby-2.1.0/bin/gem"
rake: "/home/jean/.rvm/gems/ruby-2.1.0/bin/rake"
environment:
PATH: "/home/jean/.rvm/gems/ruby-2.1.0/bin:/home/jean/.rvm/gems/[email protected]/bin:/home/jean/.rvm/rubies/ruby-2.1.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/jean/.rvm/bin"
GEM_HOME: "/home/jean/.rvm/gems/ruby-2.1.0"
GEM_PATH: "/home/jean/.rvm/gems/ruby-2.1.0:/home/jean/.rvm/gems/[email protected]"
MY_RUBY_HOME: "/home/jean/.rvm/rubies/ruby-2.1.0"
IRBRC: "/home/jean/.rvm/rubies/ruby-2.1.0/.irbrc"
RUBYOPT: ""
gemset: ""
您是否試過'sudo apt-get install ruby-railties-4.0'? – Pavan
是的我已經嘗試過了!有沒有包ruby-railsties-4.0 –
而且錯誤依然存在? – Pavan