Rahul Tapali
Rahul Tapali

Reputation: 10137

Installing Ruby 2.0.0 using RVM

I have tried installing Ruby 2.0.0 using RVM:

  rvm install 2.0.0

Once installation is done. I did rvm list. It shown like below:

rvm rubies

   jruby-1.6.5.1 [ i386 ]
   /home/username/.rvm/scripts/list: line 294: /home/username/.rvm/rubies/rbx-2.0.0/config: No such file or directory
rbx-2.0.0 [  ]
=* ree-1.8.7-2011.12 [ i686 ]
   ruby-1.9.3-p0 [ i686 ]

# => - current
# =* - current && default
#  * - default

Why did it install Rubinius 2.0-rc1 ?? did anyone face this issue?? Any help??

Thanks :)

Upvotes: 32

Views: 39784

Answers (5)

Nicolas Yuste
Nicolas Yuste

Reputation: 743

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

Upvotes: 0

RubyMiner
RubyMiner

Reputation: 311

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

Upvotes: 2

dayanthan
dayanthan

Reputation: 51

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

Upvotes: 5

opsb
opsb

Reputation: 30211

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

Upvotes: 0

toch
toch

Reputation: 3945

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

Upvotes: 79

Related Questions