Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am interested in setting up a Ruby on Rails environment on my 10.10 laptop.

Is there anything special I need to keep in mind for installation (i.e. that could be new or unique to 10.10)?

Are there any suggested walkthroughs that I could follow along with?

Thanks in advance.

share|improve this question

5 Answers

up vote 11 down vote accepted

There are many ways of install ruby.

  1. RVM. This is the 'traditional' way that is used by many rubyists.

  2. rbenv (answer coming)

  3. From packages.

  4. From source (answer coming).

share|improve this answer

This question has an answer which leads to a much more interesting "how-to" article "Ubuntu, Ruby, RVM, Rails, and You" guiding us through a fresh install of Ruby (and related things), starting from rvm. It adds insights and provides a lot of remarks for beginners -- because Ruby is truly something awful to get setup when one is without all that background knowledge and support.

The article was last updated on October 11th, 2012 and should install Ruby 1.9.3, RVM and Rails 3.2.8.

I'm posting this answer for the sake of linking the related questions.

share|improve this answer

From packages.

Install the following packages.

ruby1.9.1-full Install ruby1.9.1-full, ruby1.9.1-dev Install ruby1.9.1-dev, libpq-dev Install libpq-dev (only libpq-dev if you're doing ruby on rails development as well.)

share|improve this answer

June 2012

I've been using this fantasic one-liner for rails 3.2 w/ruby 1.9.3, RVM, etc,

wget --no-check-certificate https://raw.github.com/joshfng/railsready/master/railsready.sh && bash railsready.sh

share|improve this answer

rvm.

rvm has a really nice installer.

First, install curl Install curl.

Then you need to install the dependencies:

sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion libpq-dev

Now, you can use the automated installer:

curl -L https://get.rvm.io | bash -s stable --ruby

After that, log out and then log back in, and you're all set!

ruby -v should return something like:

ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

If it doesn't, then you should look at the troubleshooting page for RVM.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.