Ruby: "gem install bundler" not installing the package

I am new to rails and trying to run a demo application. I am having problems with my Linux system (lubuntu, mostly a clean install) to run "bundle install". Even if this happens, if I close the terminal and start another, it will not be able to start again. The loop looks something like this:

sandbox@75bf7f3 :~/railsstuff/sample_app_2nd_ed$ bundle install ERROR: Gem bundler is not installed, run `gem install bundler` first. sandbox@75bf7f3 :~/railsstuff/sample_app_2nd_ed$ gem install bundler Successfully installed bundler-1.1.4 1 gem installed sandbox@75bf7f3 :~/railsstuff/sample_app_2nd_ed$ bundle install ERROR: Gem bundler is not installed, run `gem install bundler` first. 

As far as I can tell, I'm using the latest version of Ruby and rvm seems to work fine.

Can anyone explain what is going on here?

+3
source share
1 answer

I can confirm that this is happening in the new Linux Mint rvm installation. I am using gnome-terminal, and I applied the β€œRun command as login shell” workaround. I am using ruby ​​1.9.3 and have done nothing with gemset. When I print the β€œgem list”, I see all the rubies that I installed (the first hour I installed rvm, I played around installing some projects and seemed to be in excellent working condition).

Sounds like an add

 [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" 

to ~ / .bashrc fixes inconsistency issues. It is strange that initially it worked fine without it ... And it should only be a search for .bash_login in the first place ...

+4
source

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


All Articles