Install RVM Bundle without Gem Errors

Iā€™m kind of stuck in this problem. I am currently trying to host a Rails3 / Ruby1.9.3 application on a shared host (Site5). They provide 1.8.7 for Ruby. So, I tried installing RVM so that I could use Ruby 1.9.3. After successfully installing RVM, running 'bundle install', I encountered this error:

ERROR: Gem bundler is not installed, first run gem install bundler .

I already tried running the 'gem install bundler'. It says that it was installed when the command was run again, the same error appears. This error also occurs when I use: 'bundle -v'. However, what package says:

/home/MYUSER/.rvm/bin/bundle

This is the output of "rvm info":

 ruby-1.9.3-p194: rvm: version: "rvm 1.13.4 (stable) by Wayne E. Seguin < wayneeseguin@gmail.com >, Michal Papis < mpapis@gmail.com > [https://rvm.io/]" updated: "1 hour 23 minutes 15 seconds ago" ruby: interpreter: "ruby" version: "1.9.3p194" date: "2012-04-20" platform: "x86_64-linux" patchlevel: "2012-04-20 revision 35410" full_version: "ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]" homes: gem: "/home/MYUSER/.rvm/gems/ruby-1.9.3-p194" ruby: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194" binaries: ruby: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194/bin/ruby" irb: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194/bin/irb" gem: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194/bin/gem" rake: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194/bin/rake" environment: PATH: "/usr/local/jdk/bin:/home/MYUSER/.rvm/gems/ruby-1.9.3-p194/bin:/home/MYUSER/.rvm/gems/ ruby-1.9.3-p194@global /bin:/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194/bin:/home/MYUSER/.rvm/bin:/home/MYUSER/perl5/bin:/usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/MYUSER/bin" GEM_HOME: "/home/MYUSER/.rvm/gems/ruby-1.9.3-p194" GEM_PATH: "/home/MYUSER/.rvm/gems/ruby-1.9.3-p194:/home/MYUSER/.rvm/gems/ ruby-1.9.3-p194@global " MY_RUBY_HOME: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194" IRBRC: "/home/MYUSER/.rvm/rubies/ruby-1.9.3-p194/.irbrc" RUBYOPT: "" gemset: "" 

What I tried: I tried the sentences in this link , but it does not work.

Thanks.

+6
source share
5 answers
 gem uninstall bundler && rvm @global do gem install bundler && bundle -v 

bundler installs rvm by default in gglset @global, which also mixes with default. something smells like this setting, but this set of commands should fix it if all this is bad. your rvm output did not look crazy.

+9
source

Try:

 rvm all do gem install bundler 

This will set the gem in the current ruby.

+1
source

The sender's executable does not seem to be installed in the directory. / bin if you do

 bundle install --binstubs 

It looks like a bug in the kit!

0
source

For my setup, adding a user that apache works, how the rvm group works

 usermod -a -G rvm www-data 
0
source

This solution works if you also use rbenv

 $ gem uninstall rbenv (many dependencies will be unmet. Simply answer 'y') $ rbenv rehash $ gem install rbenv $ rbenv rehash 
0
source

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


All Articles