-
Install rbenv.
-
Download and compile OpenSSL 0.9.8x:
$ tar zxvf openssl-0.9.8x.tar.gz $ cd openssl-0.9.8x $ ./config $ make $ make test $ make install
-
Download Ruby 1.8.5 and extract the archive:
$ tar zxvf ruby-1.8.5.tar.gz
-
Fix typo in
ruby-1.8.5/math.c
:$ cd ruby-1.8.5 $ nano -c math.c // Change line 37 from this: #elif define(ERANGE) // To this: #elif defined(ERANGE)
-
Comment out lines in
openssl/bn.h
:$ sudo nano -c /usr/local/ssl/include/openssl/bn.h // Comment out lines 411 and 412.
-
Compile Ruby 1.8.5:
$ ./configure --prefix=$HOME/.rbenv/versions/1.8.5 --with-openssl-dir=/usr/local/ssl $ make $ make install
Created
January 4, 2013 12:11
-
-
Save eerohele/4452180 to your computer and use it in GitHub Desktop.
Installing Ruby 1.8.5 on Ubuntu with rbenv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment