Installing Ruby 2.0.0 using RVM

前端 未结 5 375
天命终不由人
天命终不由人 2021-02-02 08:18

I have tried installing Ruby 2.0.0 using RVM:

  rvm install 2.0.0

Once installation is done. I did rvm list

相关标签:
5条回答
  • 2021-02-02 08:36

    There's some good instructions at https://coderwall.com/p/tptocq, includes setting up libyaml and openssl.

    0 讨论(0)
  • 2021-02-02 08:37

    When you do

    rvm list known
    

    You obtain the list of known rubies that you can install

    This list is updated at the same time you update rvm. Then you need to update rvm before installing MRI Ruby 2.0.0

    Update rvm to the latest version

    rvm get stable
    

    Then try installing ruby

    rvm install 2.0.0
    

    if there is any error, such as missing packages, it will be listed. Install those packages for debian-based systems using

    Use yum install / brew install for Fedora/CentOS/RHEL systems , Mac with Homebrew respectively

    apt-get install "your missing packges"
    
    eg:
    sudo apt-get install libsigsegv2 gawk libgdbm-dev libffi-dev
    

    once the missing packages are installed.

    try installing ruby 2.0.0

    rvm install 2.0.0
    
    0 讨论(0)
  • 2021-02-02 08:51

    Your rvm is probably not up to date, and by doing so the list of installable rubies also. Rvm probably took the best match, that was Rubinius 2

    When you do

    rvm list known
    

    You obtain the list of known rubies that you can install

    This list is updated at the same time you update rvm. Then you need to update rvm before installing MRI Ruby 2.0.0

    rvm get stable
    
    0 讨论(0)
  • 2021-02-02 08:51

    You can do rvm use 2.0.0.

    If it tells you that you have it not installed, you just do:

    rvm install ruby-2.0.0-p598

    It will install everything that you need for you and then you can select which version of Ruby to use with rvm use

    0 讨论(0)
  • 2021-02-02 08:58

    First, make sure you have the latest RVM:

    rvm get stable
    

    After installing RVM, run the relevant libyaml installation for your system:

    Debian-based systems:

    apt-get install libyaml-dev
    

    Fedora/CentOS/RHEL systems:

    yum install libyaml-devel
    

    Mac with Homebrew:

    brew install libyaml
    

    Lastly:

    rvm pkg install openssl
    rvm install 2.0.0 \ 
        --with-openssl-dir=$HOME/.rvm/usr \
        --verify-downloads 1
    rvm use 2.0.0
    
    0 讨论(0)
提交回复
热议问题