I am working on Rails 2.2.2 application. For this I installed rvm with Ruby version 1.9.3p551. There is no Gemfile for this application. So as mentioned in the environment.rb file I created a Gemfile with rails and sqlite3. While running rake db:create, I am facing the following issue.
whoami@myvm:~/Desktop/practice/store$ rake db:create /home/whoami/.rvm/gems/ruby-1.9.3-p551/bin/rake:22:in `<main>': undefined method `activate_bin_path' for Gem:Module (NoMethodError) from /home/whoami/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `eval' from /home/whoami/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `<main>'
Please help me.
For me, (I am working with RVM) it worked just running:
gem update --system gem update bundler
Have you tried these commands
Rename /usr/lib/ruby/site_ruby/ to site_ruby.bak/ Run the following commands:
gem install rubygems-update enter code here update_rubygems
If you get error then try the following instead:
ruby --disable-gems -S update_rubygems
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With