The gem program can be found in the following packages

I am installing Ruby on Rails on Virtual Box / Ubuntu 13.10. Following are the steps

  • ruby -v

    => The ruby ​​program can be found in the following packages ... Try: sudo apt-get install

  • source / my account / ...

    ==> Good.

  • \ curl -L https://get.rvm.io | bash

    => I have a message thanks to which I use RVM. In case of problems, I should consult their website or twitter.

  • Rvm requirements

    ==> Successful installation.

  • rvm type | head -n 1

    ==> rvm is a function

  • Famous rvm list

    ==> I get a list of ruby ​​versions

  • rvm install 2.0.0 -C --enable-shared, --with-openssl-dir = / usr / local

    == > ruby ​​2.0.0 . , ruby ​​2.1.0...

  • rvm list

    == > rvm rubies = * ruby-2.0.0-p353 [i686]

    # => - current

    # =* - current && default

    # * - current

  • rvm use 2.0.0@railstutorial_rails_4_0 --create --default

    == > ok.

  • gemset rvm

    == > gemsets ruby-2.0.0-p353...

    ( )

    = > railstutorial_rails_4_0

  • gem -v

    = > "gem" :

    • ruby1.9.1
    • RubyGems : sudo apt-get install

ruby? , 7. , , , ruby.

+4
3

"" "" > " " > " " " ". ruby ​​-v gem -v. . , .

+23

, rvm . ruby -v, ? , , . , $PATH ?

/bin/bash --login , ?

+6

check what returns rvm list.

I had several versions of ruby, but did not select the ruby ​​version.

I did rvm use <ruby_version> --default, then ruby, and also executed the command gem.

+2
source

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


All Articles