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/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.

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.

10 Responses to “Ruby 1.9.2 via rvm installation woes”

  1. Robin says:

    Thanks bro!

  2. Chris says:

    Paul – thanks to you, Google is now very helpful. This was the first result.

  3. danimajo says:

    Great. Thanks!!!!!

  4. narkisr says:

    Thanks! helped me as well

  5. Ollie says:

    Thank you too, I’d probably figure it out sooner or later but this was faster. :)

  6. sankalp says:

    Thanks a lot. This was the exact issue I was facing

  7. Chris says:

    Thank you very much

  8. Mike says:

    Duh. Thanks for saving me a LOT of time

  9. Marcel says:

    Glad you posted your solution. Thanks, it really helped save me some time.

  10. Patai says:

    Thanks a million.

Leave a Reply