Ruby 1.9.2 via rvm installation woes

I’ve just had to upgrade Ruby to 1.9.2 (from 1.8.7) on the EC2 instance, but ran into a weird error while running rvm install 1.9.2:

Compiling yaml in /home/ubuntu/.rvm/src/yaml-0.1.4.
ERROR: Error running 'make ', please read /home/ubuntu/.rvm/log/ruby-1.9.2-p290/yaml/make.log
Installing yaml to /home/ubuntu/.rvm/usr
ERROR: Error running 'make install', please read /home/ubuntu/.rvm/log/ruby-1.9.2-p290/yaml/make.install.log

and in the log:

src/ Libtool library used but `LIBTOOL' is undefined
src/   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/   to `' and run `aclocal' and `autoconf' again.
src/   If `AC_PROG_LIBTOOL' is in `', make sure
src/   its definition is in aclocal's search path.

Fortunately the solution was rather simple, although Google was not really that helpful this time, hence this post:

sudo aptitude install libtool

Basically the libtool library was not installed.

Published by

Paweł Gościcki

Ruby programmer.

10 thoughts on “Ruby 1.9.2 via rvm installation woes”

Comments are closed.