How to install Rails 3.0 and Ruby 1.9.2 on Ubuntu

Published 9/1/2010 7:30 PM by Toran Billups 94 Comments

When ruby on rails 1.0 was released back in 2005 it was all the rage. And being someone who was often distracted by the next great web framework I decided to have a look. So in early 2006 I built a small application to see what all the hype was about. I immediately saw the value of a strongly opinionated framework, something the average asp.net developer like myself didn’t know much about at the time.

Fast-forward to August 29th 2010 - Rails 3.0 was released. Just prior to this release I started looking at the web framework again and because I always strive for the optimal developer experience it meant I would need to quit my windows addiction. Not that you can’t do ruby development on windows, but most of the time it’s not worth the pain.

With that said, I paved my development machine and installed Ubuntu 10.04. But as I started looking around for a "how-to" of sorts on installing rails 3 with ruby 1.9.2 I couldn’t find a simple guide that got me up and running error free. Each time I started with a vanilla install of Ubuntu and ended up with what felt like a "hacked together" development environment. But last night I decided to give it another try and document the steps needed for someone like me coming in with minimal linux experience.

Install RVM 1.0.1

First be sure to do a quick update before you get started.

sudo apt-get update

Next install curl and git so we can pull down ruby via rvm

sudo apt-get install curl git-core

Next you need to get the tar.gz for rvm 1.0.1

http://rvm.beginrescueend.com/releases/rvm-1.0.1.tar.gz

extract the contents and cd into the extracted directory when finished

tar xvzf rvm-1.0.1.tar.gz

Once inside the extracted directory run the installer from the command line

./install

After this is complete you need to edit your .bashrc file. First cd ~ and then Type "gedit .bashrc". Put the following at the bottom of the file.

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

after you complete the above and save your changes, close gedit. Next close your terminal window and re-open it. Now if you type "rvm -v" you should see a valid version 1.x

Install Ruby 1.8.7

First you need to pull down a few development packages

sudo apt-get install libruby1.8 zlib1g-dev libssl-dev libreadline5-dev build-essential

Next you need to install ruby 1.8.7 through rvm

rvm install ruby-1.8.7

After this is complete you need to set ruby 1.8.7 as the default for rvm

rvm use ruby-1.8.7 --default

Install rubygems and other dev essentials

first you need to add the ubuntu-on-rails ppa repository, sometimes they have newer versions of some Ruby components.

sudo add-apt-repository ppa:ubuntu-on-rails

After you add this be sure to do another update

sudo apt-get update

Next install the essential ruby packages

sudo apt-get install ruby rubygems irb ri rdoc rake

And a few more packages, odds are you will need them anyway

sudo apt-get install build-essential ruby1.8-dev libopenssl-ruby

After all the packages above are installed, add the gem path to your global PATH, so that executables new gems can be easily called from the command line.

export PATH=/var/lib/gems/1.8/bin:$PATH

After you run the above command, close the terminal window and re-open it.

Install Sqlite3

Install the sqlite development packages

sudo apt-get install sqlite3 libsqlite3-dev

Install the sqlite gem

gem install sqlite3-ruby

Install Ruby 1.9.2

Next you need to install ruby 1.9.2 through rvm

rvm install ruby-1.9.2

After this is complete you need to set ruby 1.9.2 as the default for rvm.

rvm use ruby-1.9.2 --default

Install Rails 3.0.0

Now install rails but be sure you DON’T use sudo

gem install rails --version 3.0.0

After you have both rails 3 and ruby 1.9.2 up and running, install the sqlite gem again.

gem install sqlite3-ruby

Now you should have a fully functional rails 3 + ruby 1.9.2 development environment! You can verify this by doing a simple "ruby -v" and "rails -v" from the command line.

Tags: ruby rails ubuntu

 

94 Comments on "How to install Rails 3.0 and Ruby 1.9.2 on Ubuntu"

  • Dan said on 9/1/2010 6:12 PM:

    Thanks so much I'm going to follow these steps to install tonight...!

  • J-_-L said on 9/2/2010 3:56 AM:

    Hey, nice guide :). If you do not want to use RVM, checkout the alternatives: http://rbjl.net/19-rubybuntu-1-installing-ruby-and-rails-on-ubuntu (but of course, rvm is great!)

  • Raynor said on 9/2/2010 4:04 AM:

    Thanks a lot for your effort, install complete :) NB After this command: rvm use ruby-1.8.7 --default I got error: Binary 'rake' not found in path. But this is minor, rake has been installed several lines below in article.

  • Kris said on 9/4/2010 8:05 PM:

    I got the same error Raynor mentioned. Any clues?

  • Toran Billups said on 9/5/2010 10:41 AM:

    As @Raynor mentioned you will get an error that says 'rake' not found, but down below you install it and everything works as expected. Sorry I didn't document this error initially, but I found everything still works as long as you follow the guide.

  • tedstur said on 9/16/2010 4:25 AM:

    Wow. This worked the first time. In installed Ubuntu 10.4 and rails both in under 20 minutes or so. Usually I spend a few days fiddling with commands to get things just right. THANKS!

  • kalin@cs.depaul.edu said on 9/16/2010 2:15 PM:

    Thanks much! Very helpful.

  • Doctor Sushi said on 9/17/2010 8:11 AM:

    Interest, I keep getting: Using /usr/local/rvm/gems/ruby-1.8.7-p302 ln: creating symbolic link `/usr/local/rvm/bin/ruby': No such file or directory ln: creating symbolic link `/usr/local/rvm/bin/gem': No such file or directory ln: creating symbolic link `/usr/local/rvm/bin/irb': No such file or directory ln: creating symbolic link `/usr/local/rvm/bin/ri': No such file or directory ln: creating symbolic link `/usr/local/rvm/bin/rdoc': No such file or directory ln: creating symbolic link `/usr/local/rvm/bin/rake': No such file or directory ln: creating symbolic link `/usr/local/rvm/bin/erb': No such file or directory ln: creating symbolic link `/usr/local/rvm/bin/testrb': No such file or directory When I try to run rvm use ruby-1.8.7 --default Any ideas?

  • Toran Billups said on 9/17/2010 9:22 AM:

    @Doctor Sushi you must have installed rvm using super user. You installed rvm globally above so now when you run rvm it will require super user (ie- why you can't create the symbolic link above in the error message). You will need to reinstall rvm locally so I would recommend reinstalling Ubuntu fresh and following my instructions above.

  • Al said on 9/17/2010 11:39 PM:

    Thanks a milli for this awesome walkthrough

  • Josh Dressel said on 9/19/2010 2:06 AM:

    Worked perfect! Now I just hope someone has written a tutorial this straightforward for setting RoR up with Apache or lighttpd and MySQL.

  • Josh Dressel said on 9/20/2010 12:47 PM:

    I ran into a problem but I'm not sure if things are missing because Aptana RadRails installed gems during the initial setup or if they're just missing. I created a testapp and tried to initialize the WEBrick server but the script/server is missing. The only file in the script folder is rails. Is there a way to reinstall Rails so I get the WEBrick server? Even better, is there a way to install the WEBrick server and get the missing script in my testapp?

  • Toran Billups said on 9/21/2010 5:29 AM:

    @Josh you should be able to fire up WEBrick using the command "rails server" from the directory rails created for the web application.

  • Arubo said on 9/24/2010 6:05 PM:

    Thanks for this tutorial, mate! It's been a pain for me to get rails 3 to work on Linux and Mac OS lately - ruby 1.9.1 issues, sqlite3 lib missing, etc.. You've been extremely helpful.

  • manuel said on 9/30/2010 7:54 PM:

    Hi I have ruby 1.8.7 and Rails 2.3.8 running in Ubuntu 10.04. So far thy run fantastic but I want to update to Ruby 1.9 and Rails 3. Of course I don't want to mess up my working versions and don't want to run both, I just want to run the two new components. Have you any knowledge of how can I do that? Thanks in advance

  • Jason Andres said on 10/1/2010 9:03 AM:

    Great post. This was my third attempt to get Ruby 1.9.2 and Rails 3 working on Ubuntu 9.1 and it worked perfectly. There was one extra step just before running "sudo add-apt-repository ppa:ubuntu-on-rails" I needed to run "sudo apt-get install python-software-properties" Thanks!

  • jeff thurston said on 10/10/2010 1:07 PM:

    Thank you, great tutorial. I am up and running. Had the RAKE issues as mentioned above but everything is working well.

  • George said on 10/13/2010 10:26 PM:

    What's wrong with using sudo when installing the rails or sqlite gems? Thank you!

  • Even Mien said on 10/14/2010 6:11 AM:

    I just confirmed that this worked on Ubuntu 10.10 (Maverick Meerkat) too. I had tried to piece together a half dozen "How To" articles for installing RVM, Ruby 1.9.2 and Rails 3 to no avail. Thanks for putting this together.

  • Wesley said on 10/29/2010 7:59 PM:

    Thanks a lot, it worked like a charm here in my Ubuntu 10.10

  • Shruti said on 11/1/2010 12:39 PM:

    Thank you for the instructions. I'm a newbie and this definitely helped me!

  • Luke said on 11/1/2010 2:46 PM:

    Very helpful. I had trouble installing Rails, getting the message: ERROR: Loading command: install (LoadError) no such file to load -- zlib... I followed the instructions at rvm.beginrescueend.com/packages/zlib and now everything seems to be working.

  • J Hawk said on 11/3/2010 8:30 PM:

    Great stuff. I had trouble with the bashrc file, and had to type gedit ~\.bashrc in order to edit the file. Everything else went smoothly. THANKS!

  • Ryan Anklam said on 11/20/2010 7:25 PM:

    Thanks for the tutorial, excellent job. You helped me out a lot tonight. The only thing I would change is update the rails gem command to 3.0.3.

  • Seba said on 11/27/2010 9:54 AM:

    Thanks a lot!! Very helpful. Finally I'm aboard!! (I try to install on Debian Lenny but I can´t: too many troubles with sqlite3 instalation) ¿Some post about it? I wait for it! Again, thanks and Cheers!

  • Phil said on 11/29/2010 2:48 AM:

    Many thanks Toran, nice clear and easy to follow instructions - if only everything was so well documented! Keep up the great work -Phil.

  • Theodore said on 12/2/2010 12:41 PM:

    Thank you very much for sharing this... The only thing I did except your steps was: gem install mail because installing rails complained with: Error installing rails: mail requires i18n (~> 0.5.0, runtime) Everything else was accurate...

  • PandaWood said on 12/4/2010 7:47 PM:

    "You will need to reinstall rvm locally so I would recommend reinstalling Ubuntu fresh and following my instructions above." I appreciate the problem here, but this is pretty outrageous - don't you think? I can't laugh at Windows users for having to reinstall their OS anymore at any rate - that if typing 4 extra characters before installing something results in a situation where you may be better off reinstalling the OS from scratch. Surely there's a better way?

  • Sandro said on 12/8/2010 5:05 AM:

    Thank you. Worked well!

  • railsuser said on 12/9/2010 12:56 PM:

    hi...I used the above commands and to install rails I used sudo gem install rails --version 3.0.1. The command ran fine with no error. But when I do rails -v it throw error rails command not found. What could have gone wrong. Will appreciate any help on this. Thanks!

  • elmimmo said on 12/25/2010 3:13 AM:

    If your purpose is to end up with Ruby 1.9.2, and use RVM to install it, why you do previously go through installing ruby-1.8.7 with rvm, and then install yet again another version with `sudo apt-get install ruby rubygems irb ri rdoc rake`? Won't `rvm install ruby-1.9.2` right after installing rvm just install everything needed (including rubygems irb ri rdoc rake)?

  • chris said on 1/2/2011 11:36 AM:

    Thanks for this. I had to install a few gems by hand before rails 3.0.0 would install - abstract, mail, thor as I recall.

  • urbanarpad said on 1/2/2011 7:19 PM:

    @PandaWood: remember the OP said he had limited Linux experience. Clearly, installing an application incorrectly does not require the reinstall of Ubuntu. Normally you would use apt to remove the app. In this case, the install script from the rvm tarball did the installation. You need to look at that install script to see what it did and undo it if necessary. Imagine, in the Windows world, if an executable setup didn't come with an uninstaller. However, in Linux, you don't have to worry about deciphering, locating and deleting a dozen registry entries. If someone were to package rvm then it would be trivial. Maybe you only need to re-install as non-root and you'll be done.

  • Phil said on 1/6/2011 11:14 AM:

    This has been a LIFE SAVER, but I would suggest changing your rvm step to show: bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) from http://rvm.beginrescueend.com/rvm/install/

  • Jake said on 1/12/2011 7:12 PM:

    Thanks! That was really helpful.

  • JN said on 1/17/2011 5:17 PM:

    Hello, everything went well but when i type rails -v, got the message below. The program 'rails' is currently not installed. You can install it by typing: sudo apt-get install rails Please help.

  • Greg said on 1/18/2011 10:18 AM:

    I just want to note that this works for Jolicloud as well. Thank you very much for the walk through!

  • hexxen said on 1/25/2011 1:27 PM:

    nice guide. i just wanna understand why apt-get install ruby, i thought rvm took care of that.

  • PVillela said on 1/29/2011 8:02 AM:

    Many thanks for the great tutorial. A few suggestions for improvement: 1. Install RVM using "bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )", as noted on the RVM site, so the latest version is installed. 2. Follow the RVM installation's instructions to edit .bashrc to convert any [ ... ] && return expressions into if-fi pairs, with the "fi" just before "[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" at the end of the file. 3. Omit the section "Install rubygems and other dev essentials". This installs a separate copy of Ruby 1.8.7 on the system, redundant with the one installed by RVM.

  • Subramanian Vasudevan said on 1/29/2011 12:51 PM:

    Thanks for this great tutorial. Being a newbie I appreciate such crystal clear instructions. Took the pain out of the installation to be sure.

  • n0chi said on 1/31/2011 4:58 PM:

    Thanks a lot! (A fellow asp.net developer interested in RoR)

  • shajin said on 2/4/2011 2:06 AM:

    nice man..nice guide..

  • Pancho said on 2/9/2011 4:30 PM:

    Great howTo! It's been useful several times to me :)

  • Fredrik said on 2/10/2011 12:40 PM:

    Thanks a lot! grate guide.

  • Thijs Boeree said on 2/12/2011 8:37 AM:

    I thank you very very much for the walkthrough, there aren't really good ones out there... I get this error all the time: /usr/local/lib/site_ruby/1.8/rubygems.rb:861:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:255:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems.rb:1204:in `gem' from /var/lib/gems/1.8/bin/rails:18 AND if i use gem install rails --version 3.0.0 I also get an error: ERROR: Loading command: install (LoadError) no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand What am i'm doing wrong...?

  • Thijs Boeree said on 2/12/2011 8:39 AM:

    Forget to tell you when to get the error... When i do rails -v in the terminal...

  • Thijs Boeree said on 2/12/2011 10:41 AM:

    Thank god it works!! I just re-installed ubuntu again and did exactly the above and it worked!! Thanks again!!! Regards, Thijs

  • Tyrel said on 2/17/2011 1:00 AM:

    Thank you, thank you, thank you. Everything worked on the first try with my new fresh install of PinguyOS. I remember spending hours trying to get rails 3 up on Ubuntu which is why I was dreading installing Pinguy. So thank you it went smoothly. On a side not if any one needs to do a fresh install a switch to PinguyOS might not be a bad idea its freaking sweet and thanks to you its on RAILS :). God I am a geek.

  • Barney said on 2/28/2011 2:28 PM:

    Thanks man, this is awesome, bookmarked :)

  • pietro said on 3/2/2011 3:37 PM:

    very nice guide!! at the end I0ve this problem: asd@pietro-FG5L:~$ gem install rails --version 3.0.0 ERROR: While executing gem ... (Gem::DependencyError) Unable to resolve dependencies: mail requires i18n (~> 0.5.0) asd@pietro-FG5L:~$ what's that?

  • Pietro said on 3/2/2011 3:54 PM:

    [resolved] I installed also "mail": $>gem install mail ...... $>gem install rails --version 3.0.0 ....ok...

  • Adam said on 3/4/2011 10:38 AM:

    Thanks a lot!!!

  • Ethan said on 3/20/2011 12:39 PM:

    Thanks! Everything worked great. This really helped me to use rvm, too - I was missing some of the development packages in Ubuntu.

  • Gabriel said on 4/4/2011 6:58 AM:

    Thank you so much for sharing! It was really helpful Before installing Rails3 I had to update ruby to 1.9.2p180 to avoid problems, rvm update --head && rvm reload && rvm install 1.9.2 && rvm 1.9.2 --default before Rails3 install does the trick...

  • Ross said on 4/5/2011 1:29 AM:

    Terrific post (along with a few of your others as well).

  • vidyarthi said on 4/19/2011 7:15 AM:

    simply awesome... :) thanks..saved a lot of time now i wanna it for centOS

  • Joe said on 4/21/2011 3:01 PM:

    Wow, what a walk through! I didn't follow the instructions 100%, but everything worked just like you said it would.

  • Toran Billups said on 4/26/2011 6:03 PM:

    To everyone who said thanks you -it was worth the many hours I spent installing Ubuntu (over and over) to get it exactly right! Glad I was able to save someone else a lot of time and energy!

  • Raman VikramAdith said on 4/27/2011 12:11 PM:

    After yesterday's remarkably frustrating night, I realised that this was the only way to get Rails up and running on Ubuntu, and took your suggestion to reinstall the OS and followed the instructions step by step. Voila! Everything worked. Thanks a million!!!

  • Trebla said on 5/12/2011 1:44 PM:

    After this command gem install sqlite3-ruby I get error message ERROR: http://rubygems.org/ does not appear to be a repository ERROR: Could not find a valid gem 'sqlite3-ruby' (>= 0) in any repository But with a little patience and persistence it all worked out. Thanks a million times

  • leozar100 said on 5/15/2011 9:26 PM:

    @Trebla I did not get the same error as you did but when I installed rails a little message pop-upped saying that it's not called sqlite3-ruby anymore it's just sqlite3. So try to install the gem sqlite3.

  • J Amiry said on 5/18/2011 8:02 AM:

    Hi and very thanks to this article, this is helpful really (^_^) When I try to do these steps, on this command: gem install sqlite3-ruby I get this error: ERROR: Loading command: install (LoadError) no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand Help me please, I'm new to Linux and Rails ): Thank you very much Javad.Darvish.Amiry@gmail.com

  • Thiru said on 5/27/2011 4:15 PM:

    Hi, I receive below error when I install the rails. Any thoughts why I'm getting this error. thiru@ubuntu:~$ gem install rails --version 3.0.0 ERROR: Loading command: install (LoadError) no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand thiru@ubuntu:~$

  • mike said on 6/1/2011 6:11 PM:

    Thank you so much! You are the best

  • Tuomas said on 6/2/2011 9:38 AM:

    Everything works fine until I try to do gem install rails --version 3.0.0 Gives me the error as follows: ERROR: While executing gem ... (Errno::EACCES) Permission denied - /home/tuomas/.gem/specs Instructions say explicitly to not use sudo, and trying to run sudo ~/.rvm/rubies/ruby-1.9.2-p0/bin/gem update --system it gives RuntimeError saying this might break my Debian system. W/o sudoing it gives the same error as the previous one. The suggested way of getting rails from apt-get doesn't offer me 3.0. I'm quite in a loss here, please help. Thank you in advance!

  • Tuomas said on 6/2/2011 11:59 AM:

    In response to previous comment, I found solution. The ~/.gem was owned by root, so gem install couldn't use it w/o sudo, and thus couldn't install gems. sudo rm -rf ~/.gem resolved the problem, and I could finish the process. Thanks for a good guide!

  • untaldouglas said on 6/7/2011 2:49 PM:

    Excelente y Gracias ! It works without any trouble, nice written, thanks for your sharing your knowledge.

  • marvindanig said on 6/22/2011 2:12 AM:

    On this step: $ rvm use ruby-1.8.7 --default I got the following message: Database file /home/bubble/.rvm/config/user does not exist. info: Using ruby 1.8.7 p334 What does the previous message imply? Sorry I am a newbie on rails.

  • e4r said on 6/23/2011 3:07 PM:

    thank you very much! :D

  • e4r said on 6/23/2011 3:07 PM:

    thank you very much! :D

  • Bipin said on 6/30/2011 12:06 AM:

    Thank you so much for the effort taken! appreciate it :)

  • Konstantin said on 7/5/2011 8:21 AM:

    Thanks a lot!!! :-)

  • mut said on 7/8/2011 1:08 AM:

    thanks alot this was quite useful. i used instructions in other sites & they all failed but this one worked withoutb stress. keep it up!

  • The Wush said on 7/8/2011 11:22 AM:

    Boss tutorial, boss.

  • The Wush said on 7/8/2011 11:22 AM:

    Boss tutorial, boss.

  • RailsNoob said on 7/9/2011 11:29 AM:

    Thanks for documenting this process... I struggled for two days before stumbling upon this document. It helped a lot!!!

  • Daa said on 7/14/2011 8:07 PM:

    For ubuntu 11 i had to manually add the path to .bashrc. the export command did not work for me. just in case it helps anyone.

  • Philipp said on 7/15/2011 3:20 AM:

    Thank you very much for taking the time and writing this guide. Helpful and time-saving, regards.

  • Philipp said on 7/15/2011 3:20 AM:

    Thank you very much for taking the time and writing this guide. Helpful and time-saving, regards.

  • Maulik Thaker said on 7/15/2011 5:27 PM:

    Thanks a bunch, this website has the details that can install Ruby and Rails just flawlessly. Now I dont know if it's the Ruby intallation or is it my Ubuntu, but whatever it is, just turned out to be without any hassle. Thanks. Maulik

  • Peter Gledhill said on 8/10/2011 12:30 PM:

    I can't believe how obscenely difficult it is to install the latest ruby/rails on Ubuntu. Thank you very much for your walkthough. I've been tearing my hair out over this, but it worked perfectly. Cheers

  • Alex said on 8/15/2011 8:52 AM:

    Wow this guide helped me a lot! Worked on the first time! unlike most of the setup guides I found. Thanks for the great work.

  • RailsNewb said on 8/16/2011 1:37 PM:

    Thanks to this Ubuntu/Rails guide I was able to setup RVM/Ruby 1.9.2/Rails 3.0.1 with only one stumbling block. When I attempted to install rails I got the same error message mentioned by Thiru: ERROR: Loading command: install (LoadError) no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand I read Luke's post about the zlib package: rvm.beginrescueend.com/packages/zlib After reinstalling ruby 1.9.2 with zlib I determined that Ubuntu simply could not determine the path to gem in order to run the gem install command. To confirm my findings I ran the following: $ which gem Then which command returned the path to gem. I ran the gem install command again using the full path. In the command below replace "path/to" with the path returned from previous command. $ /path/to/gem install rails --version 3.0.1 Something so simple wasted a few minutes of my time but now I have everything up and running. Thanks Toran! Thank you also to all the other posters for sharing their experiences and knowledge.

  • bubuzzz said on 8/19/2011 9:14 PM:

    for anyone who don't wanna see the annoying message about file "lib" not found (believe me, dont try to solve it, coz it is not worth to do that), in the stage of installing rails framework, use gem install rails --version 3.0.10 --no-rdoc --no-ri

  • Nikolaj Sørensen said on 9/9/2011 4:36 AM:

    Great tutorial, thanks. I had problem before I saw this one. So nice :)

  • Freddi said on 9/28/2011 2:36 AM:

    Hi can anyone help me with the following problem: Ubuntu 11.04 Terminal: freddy@blabla:~$ rvm install ruby-1.8.7 info: Installing Ruby from source to: /home/freddy/.rvm/rubies/ruby-1.8.7-p302 info: Extracting ruby-1.8.7-p302 ... error: Error running 'bunzip2 < "/home/freddy/.rvm/archives/ruby-1.8.7-p302.tar.bz2" | tar xf - -C /tmp/rvm_src_1785', please check /home/freddy/.rvm/log/ruby-1.8.7-p302/extract*.log error: There has been an error while trying to extract the source. Aborting the installation. error: There has been an error fetching the ruby interpreter. Aborting the installation. freddy@freddy-Satellite-A100:~$ I keep getting these error messages andI have no clue how to fix it. Thanks very much! Freddi

  • vishal singh said on 10/14/2011 9:40 AM:

    Awesome!!!!!!!!all things are working well

  • Richard said on 10/28/2011 6:28 PM:

    Thanks! Installed perfectly. No issues with any previous semi-complete installs either.

  • bagheraa said on 11/14/2011 8:54 AM:

    Hi.Thanks for your blog entry. In Kubuntu 11.10, sslv2 has been deprecated, and the installation of ruby-1.9.2 gives a compiler error. For correcting this you must make first: rvm package install openssl rvm package install readline. After this, install ruby-1.9.2 with: rvm install 1.9.2 --with-openssl-dir=$rvm_path/usr --with-readline-dir=$rvm_path For me this has worked fine.

  • Eugene said on 11/14/2011 7:08 PM:

    Thank you Toran for providing flawless concise steps for setting up Ruby on Rails on Ubuntu 10.04.

  • Allen said on 11/18/2011 11:57 PM:

    thank you! get lots of helps

  • Gonçalo Fernandes said on 11/25/2011 9:19 AM:

    I found another way: sudo apt-get install ruby ruby-rvm nodejs sudo rvm package install openssl sudo rvm install 1.9.2 --with-openssl-dir=$rvm_path/usr sudo rvm --default use 1.9.2 rvm-shell rvmsudo gem install rails Just make sure to rvm-shell to enter the correct environment.

  • Gonçalo Fernandes said on 11/25/2011 9:22 AM:

    Sorry, I didn't know the newlines were removed. I'll separate the commands with (): (sudo apt-get install ruby ruby-rvm nodejs) (sudo rvm package install openssl) (sudo rvm install 1.9.2 --with-openssl-dir=$rvm_path/usr) (sudo rvm --default use 1.9.2) (rvm-shell) (rvmsudo gem install rails) Make sure to rvm-shell to enter the correct environment.

  • kenavik said on 1/4/2012 10:05 AM:

    great job!!

Leave a comment

Copyright © 2009 Toran Billups - Valid XHTML & CSS