我正在尝试捆绑安装,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>'
我试过gem install bundler
它给出了错误
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
哪个红宝石
/home/smk/.rvm/rubies/ruby-2.3.0/bin/ruby
rvm list
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 ]
我尝试了很多解决方案,但没有用 请任何人帮助我。
答案 0 :(得分:5)
This answer建议更新gem
和bundler
:
gem update --system
gem update bundler
如果这不起作用,请尝试重命名通过运行gems
获得的bundle show bundle
目录。