我有点被这个问题困住了。我目前正在尝试在共享主机(Site5)上托管 Rails3/Ruby1.9.3 应用程序。他们只为 Ruby 提供 1.8.7。因此,我尝试安装 RVM,以便可以使用 Ruby 1.9.3。成功安装 RVM 后,运行 'bundle install',我遇到了这个错误:
错误:未安装 Gem 捆绑器,
gem install bundler
请先运行。
我已经尝试过运行“gem install bundler”。当我再次运行命令时,它说它已安装,显示相同的错误。当我使用:'bundle -v'时也会出现这个错误。但是,“哪个捆绑包”说:
/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: ""
我尝试过的:我尝试了此链接中的建议,但它不起作用。
谢谢你。