Installing Ruby 1.9.3 under Ubuntu 10.04 LTS using RVM

Today when I tried to use rvm to install Ruby 1.9.3, I got errors referring  me to make.log and make.install.log:

[~]$ rvm install ruby-1.9.3
Installing Ruby from source to: /home/myuser/.rvm/rubies/ruby-1.9.3-p0, 
this may take a while depending on your cpu(s)...

ruby-1.9.3-p0 - #fetching 
ruby-1.9.3-p0 - #extracted to /home/myuser/.rvm/src/ruby-1.9.3-p0 (already extracted)
Fetching yaml-0.1.4.tar.gz to /home/myuser/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /home/myuser/.rvm/src
Configuring yaml in /home/myuser/.rvm/src/yaml-0.1.4.
Compiling yaml in /home/myuser/.rvm/src/yaml-0.1.4.
ERROR: Error running 'make ', please read /home/myuser/.rvm/log/ruby-1.9.3-p0/yaml/make.log
Installing yaml to /home/myuser/.rvm/usr
ERROR: Error running 'make install', please read /home/myuser/.rvm/log/ruby-1.9.3-p0/yaml/make.install.log
ruby-1.9.3-p0 - #configuring 
ruby-1.9.3-p0 - #compiling 
ruby-1.9.3-p0 - #installing 
Removing old Rubygems files...
Installing rubygems-1.8.10 for ruby-1.9.3-p0 ...
Installation of rubygems completed successfully.
ruby-1.9.3-p0 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p0 - #importing default gemsets (/home/myuser/.rvm/gemsets/)
Install of ruby-1.9.3-p0 - #complete 
[~]$ 

Both make.log and make.install.log had similar messages about missing LIBTOOL:

[2012-04-27 11:28:05] make 
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/myuser/.rvm/src/yaml-0.1.4/config/missing --run aclocal-1.11 
 cd . && /bin/bash /home/myuser/.rvm/src/yaml-0.1.4/config/missing --run automake-1.11 --foreign
src/Makefile.am:2: Libtool library used but `LIBTOOL' is undefined
src/Makefile.am:2:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/Makefile.am:2:   to `configure.ac' and run `aclocal' and `autoconf' again.
src/Makefile.am:2:   If `AC_PROG_LIBTOOL' is in `configure.ac', make sure
src/Makefile.am:2:   its definition is in aclocal's search path.
make: *** [Makefile.in] Error 1

Fortunately someone on StackOverflow had already found an easy answer. Just use apt-get to install LIBTOOL, then re-install Ruby 1.9.3:

sudo apt-get install libtool
rvm install ruby-1.9.3

1 thought on “Installing Ruby 1.9.3 under Ubuntu 10.04 LTS using RVM

  1. Pingback: Install Rails 3.1 for the Rails Tutorial | MCB Systems

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.