kha*_*idh 4 rubygems ruby-on-rails
我正在尝试捆绑安装,rake db:migrate
bundle install
/home/name/.rvm/gems/ruby-2.3.0/bin/rake:22:in `<main>': undefined method `activate_bin_path' for Gem:Module (NoMethodError)
from /home/name/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
from /home/name/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
Run Code Online (Sandbox Code Playgroud)
我试过gem install bundler
它会给出错误
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
Run Code Online (Sandbox Code Playgroud)
哪个红宝石
/home/smk/.rvm/rubies/ruby-2.3.0/bin/ruby
Run Code Online (Sandbox Code Playgroud)
rvm列表
ruby-2.0.0-p648 [ x86_64 ]
ruby-2.1.5 [ x86_64 ]
ruby-2.2.5 [ x86_64 ]
=* ruby-2.3.0 [ x86_64 ]
Run Code Online (Sandbox Code Playgroud)
我试过很多解决方案,但没有用,
请任何人帮助我.
这个回答表明updatig gem和bundler这样的:
gem update --system
gem update bundler
Run Code Online (Sandbox Code Playgroud)
如果这不起作用,请尝试重命名gems通过运行获得的目录bundle show bundle.
| 归档时间: |
|
| 查看次数: |
2654 次 |
| 最近记录: |