无法安装包 ruby 版本管理器
Fail to install bundle ruby version manager
我以前从未尝试过Ruby。我正在尝试 运行 这个 elixirschool github repo。
我第一次收到此错误消息。
$ bundle install
Your Ruby version is 2.5.1, but your Gemfile specified ~> 2.3.7
所以我按照问题中的说明进行操作。 How to fix "Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0"
现在我收到这条消息。
$ bundle install
Traceback (most recent call last):
1: from /usr/local/bin/bundle:23:in `<main>'
/usr/local/bin/bundle:23:in `load': cannot load such file -- /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/exe/bundle (LoadError)
我也做了这个命令。
$ bundler install
Traceback (most recent call last):
2: from /usr/local/bin/bundler:23:in `<main>'
1: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundler (Gem::GemNotFoundException)
- 去了https://rvm.io/
- 已安装 rvm
- 在备忘单中,http://cheat.errtheblog.com/s/rvm
rvm install 2.3.7
rvm use --default 2.3.7
打开文件夹根目录下的gemfile,删除这个:
BUNDLED WITH
1.16.2 #or whatever version number you see
然后运行:
sudo gem install bundler
检查:
bundle --version
我以前从未尝试过Ruby。我正在尝试 运行 这个 elixirschool github repo。
我第一次收到此错误消息。
$ bundle install
Your Ruby version is 2.5.1, but your Gemfile specified ~> 2.3.7
所以我按照问题中的说明进行操作。 How to fix "Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0"
现在我收到这条消息。
$ bundle install
Traceback (most recent call last):
1: from /usr/local/bin/bundle:23:in `<main>'
/usr/local/bin/bundle:23:in `load': cannot load such file -- /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/exe/bundle (LoadError)
我也做了这个命令。
$ bundler install
Traceback (most recent call last):
2: from /usr/local/bin/bundler:23:in `<main>'
1: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundler (Gem::GemNotFoundException)
- 去了https://rvm.io/
- 已安装 rvm
- 在备忘单中,http://cheat.errtheblog.com/s/rvm
rvm install 2.3.7
rvm use --default 2.3.7
打开文件夹根目录下的gemfile,删除这个:
BUNDLED WITH
1.16.2 #or whatever version number you see
然后运行:
sudo gem install bundler
检查:
bundle --version