Saturday, December 17, 2011

Issue: Installing ree ruby via rvm in ubuntu 11.10

So if you have tried installing REE on Ubuntu 11.10 something like
praveen@praveen-laptop:~$ rvm install ree
Installing Ruby Enterprise Edition from source to: /home/praveen/.rvm/rubies/ree-1.8.7-2011.03
ree-1.8.7-2011.03 - #fetching (ruby-enterprise-1.8.7-2011.03)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 107 0 0:00:01 0:00:01 --:--:-- 567
100 7713k 100 7713k 0 0 32397 0 0:04:03 0:04:03 --:--:-- 33764
ree-1.8.7-2011.03 - #extracting ruby-enterprise-1.8.7-2011.03 to /home/praveen/.rvm/src/ree-1.8.7-2011.03
Applying patch 'tcmalloc' (located at /home/praveen/.rvm/patches/ree/1.8.7/tcmalloc.patch)
Applying patch 'stdout-rouge-fix' (located at /home/praveen/.rvm/patches/ree/1.8.7/stdout-rouge-fix.patch)
Applying patch 'no_sslv2' (located at /home/praveen/.rvm/patches/ree/1.8.7/no_sslv2.diff)
ree-1.8.7-2011.03 - #installing
ERROR: Error running './installer -a /home/praveen/.rvm/rubies/ree-1.8.7-2011.03 --dont-install-useful-gems ', please read /home/praveen/.rvm/log/ree-1.8.7-2011.03/install.log
ERROR: There has been an error while trying to run the ree installer. Halting the installation.

and now that you will follow the log you will notice some dependencies not met and hence installation failed, some thing like this.
Checking for required software...
* C compiler... found at /usr/bin/gcc
* C++ compiler... found at /usr/bin/g++
* The 'make' tool... found at /usr/bin/make
* The 'patch' tool... found at /usr/bin/patch
* Zlib development headers... not found
* OpenSSL development headers... not found
* GNU Readline development headers... not found
but as per suggestion
* To install GNU Readline development headers:
Please run apt-get install libreadline5-dev as root.
Package libreadline5-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source.
So instead install libreadline-gplv2-dev
* To install GNU Readline development headers:
Please run apt-get install libreadline-gplv2-dev as root.
And you are good to go :)

These information are not tough to find but summarizing it just in case some body is in need of it in a quicky!

1 comment:

  1. Thanks for such an amazing information. I have just read it. It really helps.
    If you are looking for other articles just visit customcollegevisits.com  Thanks

    ReplyDelete

Honda Civic & A/C problems.

Hello Friends, Got a post again on to Honda Civic (The good old favorite commuter of mine). This car has been doing great except for so...