我在这个问题上有些困惑。我目前正在尝试在共享主机(Site5)上托管一个Rails3 /Ruby1.9.3 应用程序。他们只提供Ruby的1.8.7版本。所以,我尝试安装RVM,以便我可以使用Ruby 1.9.3。成功安装RVM后,运行'bundle install'时,遇到了以下错误:
错误:Gem bundler未安装,请先运行
gem install bundler
。
我已经尝试运行过'gem install bundler'。它说已经安装了,但当我再次运行该命令时,同样的错误显示出来。当我使用'bundle -v'时,也会出现这个错误。然而,'which bundle'则显示:
/home/MYUSER/.rvm/bin/bundle
这是'rvm info'的输出:
ruby-1.9.3-p194:
rvm:
version: "rvm 1.13.4 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]"
updated: "1 hour 23 minutes 15 seconds ago"
ruby:
interpreter: "ruby"
version: "1.9.3p194"
date: "2012-04-20"
platform: "x86_64-linux"
patchlevel: "2012-04-20 revision 35410"
full_version: "ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]"
homes:
gem: "/home/MYUSER/.rvm/gems/ruby-1.9.3-p194"
ruby: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194"
binaries:
ruby: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194/bin/ruby"
irb: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194/bin/irb"
gem: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194/bin/gem"
rake: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194/bin/rake"
environment:
PATH: "/usr/local/jdk/bin:/home/MYUSER/.rvm/gems/ruby-1.9.3-p194/bin:/home/MYUSER/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194/bin:/home/MYUSER/.rvm/bin:/home/MYUSER/perl5/bin:/usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/MYUSER/bin"
GEM_HOME: "/home/MYUSER/.rvm/gems/ruby-1.9.3-p194"
GEM_PATH: "/home/MYUSER/.rvm/gems/ruby-1.9.3-p194:/home/MYUSER/.rvm/gems/ruby-1.9.3-p194@global"
MY_RUBY_HOME: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194"
IRBRC: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194/.irbrc"
RUBYOPT: ""
gemset: ""
我尝试过的方法: 我尝试了这个链接中的建议,但没有奏效。
谢谢。
gem env
的输出结果。 - mpapis