Rails -v cannot load such a file - rails / cli (LoadError)

Ubuntu 14.04.

So, everything works fine, and I opened the terminal with two tabs - on one tab there was a web browser working on my sebcoles project, and on the other tab with which I cloned my rehearsal English_teacher. All of this loaded fine, and I went to the directory.

I just paste everything here - it's all pretty clear:

andrew:projects$ cd pinteresting RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too, you can ignore these warnings with 'rvm rvmrc warning ignore /home/andrew/projects/pinteresting/Gemfile'. To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'. ruby-2.1.5 is not installed. To install do: 'rvm install ruby-2.1.5' andrew:pinteresting$ rvm install ruby-2.1.5 Warning, new version of rvm available '1.26.11', you are using older version '1.26.10'. You can disable this warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc You can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc Searching for binary rubies, this might take some time. Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/14.04/x86_64/ruby-2.1.5.tar.bz2 Checking requirements for ubuntu. Requirements installation successful. ruby-2.1.5 - #configure ruby-2.1.5 - #download % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 23.1M 100 23.1M 0 0 1189k 0 0:00:19 0:00:19 --:--:-- 1381k No checksum for downloaded archive, recording checksum in user configuration. ruby-2.1.5 - #validate archive ruby-2.1.5 - #extract ruby-2.1.5 - #validate binary ruby-2.1.5 - #setup ruby-2.1.5 - #gemset created /home/andrew/.rvm/gems/ruby-2.1.5@global ruby-2.1.5 - #importing gemset /home/andrew/.rvm/gemsets/global.gems.................................... ruby-2.1.5 - #generating global wrappers........ ruby-2.1.5 - #gemset created /home/andrew/.rvm/gems/ruby-2.1.5 ruby-2.1.5 - #importing gemsetfile /home/andrew/.rvm/gemsets/default.gems evaluated to empty gem list ruby-2.1.5 - #generating default wrappers........ andrew:pinteresting$ heroku status === Heroku Status Development: No known issues at this time. Production: No known issues at this time. andrew:pinteresting$ rails s /home/andrew/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- rails/cli (LoadError) from /home/andrew/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /usr/bin/rails:7:in `<main>' andrew:pinteresting$ rails -v /home/andrew/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- rails/cli (LoadError) from /home/andrew/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /usr/bin/rails:7:in `<main>' 

So, basically I'll screw it up at the moment - I can't do anything. Help!

+8
ruby ruby-on-rails ruby-on-rails-4 rvm
source share
3 answers

It turns out that I just had to run to install the package and everything was fine. However, for my pinteresting repo, which uses a clip gem, I had to run sudo apt-get install imagemagick to upload images to development.

I did not dare to do something new, but to ride and deploy on the hero. I think it should be fine, though (touch the tree).

0
source share

You have installed rvm , but forget to install rails gem. Install it:

 gem install rails 
+8
source share

I also had the same error. I forgot to switch to the correct ruby ​​version and fix gemset using rvm. What is it, I was able to understand this issue.

 $rvm list $rvm use ruby version $rvm gemset use gemset-name 
0
source share

All Articles