tptocq
Last Updated: May 23, 2019
·
83.81K
· eriwen

Installing ruby 2.0.0 with RVM

Ruby 2.0.0 was released on February 24, 2013, on the 20th anniversary of Ruby's inception. Test out your apps and gems so you can be ready. You must install libyaml because Ruby 2.0.0 deprecated syck in favor of psych.

Make sure you have the latest RVM:

rvm get stable

Just run this in your favorite terminal after installing RVM:

# For Debian-based systems
apt-get install libyaml-dev

# For Fedora/CentOS/RHEL systems
yum install libyaml-devel

# For Mac with Homebrew
brew install libyaml

rvm pkg install openssl
rvm install 2.0.0 \ 
    --with-openssl-dir=$HOME/.rvm/usr \
    --verify-downloads 1
rvm use 2.0.0

Enjoy!

57 Responses
Add your response

1135

Nice, I've had to install this way: (maybe I have an old rvm version?)

rvm install ruby-2.0.0-preview1  --with-openssl-dir=$HOME/.rvm/usr --verify-downloads 1
over 1 year ago ·
1335

@endel same here.

over 1 year ago ·
1733

In addition, I had to use rvm master instaed of rvm latest.

over 1 year ago ·
2807

I used RVM stable. I had to export CC=clang before the RVM install on OS X.

over 1 year ago ·
3237

rvm install 2.0.0 </code> should work better.

over 1 year ago ·
4365

For Fedora/CentOS/RHEL the package should be: libyaml-devel

yum install libyaml-devel

over 1 year ago ·
4370

This worked on my mac os x moutain lion 10.8.3, resolved the openssl issue.

over 1 year ago ·
4374

rvm get stable && rvm install ruby-2.0.0

over 1 year ago ·
4380

Hey Eric. I had you pegged as more of a JRuby kind of guy :)

over 1 year ago ·
4381

@johnkpush: Love 'em both :)

over 1 year ago ·
4389
over 1 year ago ·
4430

in the latest updates for RVM it is enough to:

rvm get head
rvm pkg remove
rvm install ruby
over 1 year ago ·
4452

@mpapis hi there, I followed your steps, but still get the ssl issue, any idea?

gem install rails --version 4.0.0.beta1

ERROR: Loading command: install (LoadError) cannot load such file -- openssl ERROR: While executing gem ... (NoMethodError) undefined methodinvokewithbuild_args' for nil:NilClass`

over 1 year ago ·
4453

@i3zhe check rvm issues or open new one if the problem was not mentioned there yet => https://github.com/wayneeseguin/rvm/issues/

over 1 year ago ·
4466

hey @i3zhe I just had the same issue. Try running brew install openssl That worked for me

over 1 year ago ·
4467

@gabceb thanks, will try later at home

over 1 year ago ·
4611

rvm pkg is obsolete.
what did the trick for me in OSX was:
brew install openssl;
rvm install 2.0.0 --autolibs=1

over 1 year ago ·
4622

@rafapolo I'm getting "Unrecognized command line flag: '--autolibs=1'" when trying your solution. I have the latest stable rvm, so is there anything else we need to do for that flag?

over 1 year ago ·
4845
$ curl -L get.rvm.io | bash -s stable
$ rvm install 2.0.0

works for me.

I met SSL error when doing $ rvm get stable

over 1 year ago ·
5270

If I'm not mistaken, Rails 4.0.0 (beta) isn't using Ruby 2.0.0 (preview). Every time I followed your instructions it all worked until I checked the version number of both rails --version and ruby --version. Installing Ruby 2.0.0 forces you to use an older version of Rails, in my case Rails 3.2.13. Do you know if the final release of Rails 4.0.0 is expected to use Ruby 2.0.0?

over 1 year ago ·
5395

Worked like a charm, thank you

over 1 year ago ·
5701

For Ubuntu Also
sudo apt-get install libreadline6-dev autoconf libgdbm-dev libncurses5-dev automake libtool libffi-dev

over 1 year ago ·
5702

If got Error

Error running 'make -j8' or j2

rvm get stable
rvm autolibs enable
rvm install ruby || rvm install ruby --with-gcc=clang

over 1 year ago ·
6346

For older versions of rvm,

rvm get head
rvm reload
rvm get stable

And, on OSX, you might have to update to XCode 4.6.2

over 1 year ago ·
7076

getting error with rubygems on ubuntu, i've tried omiting ssl option and it worked

over 1 year ago ·
7349

thanks for share

over 1 year ago ·
7350

thanks for share

over 1 year ago ·
8553

nice tip

over 1 year ago ·
8601

$ rvm install 2.0.0 worked just fine for me.

over 1 year ago ·
11846

To make it default: rvm use --default 2.0.0

over 1 year ago ·
12564

rvm install 2.0.0-p353 work for me.

over 1 year ago ·
28044

I have the latest stable rvm, so is there anything else we need to do for that flag?

over 1 year ago ·
29490

good work!

over 1 year ago ·
31425
31527

Looking for Java assignment help ? A most trusted and recommended tutor service,expert service, top Java assignment writing company .For more visit ... Our assignment experts take care of all those subjects.
https://www.allassignmenthelp.com/java-assignment-help.html

5 months ago ·
31548

Essay Help is very vital term which is difficult to understand for students so Irelandassignmenthelp.com take responsibility for assignment help to betterment of college students. https://www.irelandassignmenthelp.com/essay-writing-help/

5 months ago ·
31554

Hi there! I simply would like to give an enormous thumbs up for the great info you have got here on this post. I might be coming again to your weblog for extra soon. https://www.weddinganniversarywishesmessages.com

5 months ago ·
31827

The road to the Final Four of 2019 is getting shorter as we have been working hard all winter and in the NCAA Tournament. <a href="https://marchmadness2019live.com">watch march madness 2019 live free</a> however, there are still many legal actions in the gap between the place and the great dance.

4 months ago ·
31855

Peoples have to choose their own what career should they select which matches their ability and intellectual level with no expert or expert opinion. https://www.apexessays.com/law-coursework-help-uk/ Days are gone when Peoples of faculty and faculty was helpless in their academic issues.

3 months ago ·
31963

This worked on my mac os x moutain lion 10.8.3, resolved the openssl issue.

Thank you

Regards
https://bit.ly/2H23cIL

3 months ago ·
32131

Assignment writing services at http://australiaassignmenthelp.com

2 months ago ·
32139

Great Work

Regards
Abhishek
https://callsmstracker.com/

2 months ago ·
32452

I have perused a couple of the articles on your site now, and I truly like your style of blogging. https://www.cloudwaitress.com/resellers

about 1 month ago ·
32573

This post posted at this web page is actually good.
http://www.jobz.pk/federal-public-service-commission-fpsc-vacancies/

about 1 month ago ·
32592

Really appreciate your efforts for doing such a nice work!
http://ntsresults.org/high-dofollow-blog-commenting-sites-may-2019/

about 1 month ago ·
32617

Nice article.....Thanks for sharing the post..
http://lescobills.pk

about 1 month ago ·
32664

Love this site for its informative content.
<a href="https://pakistanrailway.pk/category/nts-roll-no-slip/">NTS Roll No Slip</a>

30 days ago ·
32666

Thanks for the great post.
http://www.stockssurvey.com/

30 days ago ·
32679

I am unable to install it.
http://ntstestresults.org/

29 days ago ·
32680

Great work! keep posting such articles.
https://otsresults.org/

29 days ago ·
32711

Like your article and share it on social media.
https://prizebondlist.org/

28 days ago ·
32848

Very nice post and right to the point. also, see other posts really good content I find here. Thank you.,

http://www.mobile-phone.pk/vivo-mobiles/

20 days ago ·
32896

This is nice, and interesting.
http://www.pakistanjobs.pk/government-jobs/

15 days ago ·
32950
32964

Thanks for sharing great post
https://bit.ly/2E6kVMK

11 days ago ·
33008

Yes Work like a charm
Thanks
Via: https://sastamobile.com.pk/product/vivo-y17/

7 days ago ·
33099

Illustrious on Android? https://filmsapk.com/playbox/
No trouble – you wicker get the app on any twist including Windows, iPhone, iPad, Chromebook, Chromecast and many over-the-counter machines.

1 day ago ·