Rails 2.3.0 - undefined method `activate_bin_path 'for Gem: Module (NoMethodError)

I am trying to install install, 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>'

I tried gem install bundler it gives an error

ERROR:  While executing gem ... (TypeError)
    no implicit conversion of nil into String 

which ruby

/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 ] 

I tried many solutions, but did not use please help me.

+4
source share
1 answer

This answer suggests updatig gemand bundlerthus:

gem update --system
gem update bundler

If this does not work, try renaming the directory gemsobtained at startup bundle show bundle.

+5
source

Source: https://habr.com/ru/post/1667053/


All Articles