Installing rvm and ruby 1.9.2 on CentOS 5…

Tried the installation process defined here: https://rvm.beginrescueend.com/rvm/install/

Didn’t work out to well. Kept getting SSL errors below, and couldn’t override with the ‘-k’ option:

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a “bundle”
of Certificate Authority (CA) public keys (CA certs). The default
bundle is named curl-ca-bundle.crt; you can specify an alternate file
using the –cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you’d like to turn off curl’s verification of the certificate, use
the -k (or –insecure) option.
Could not download ‘https://github.com/wayneeseguin/rvm/tarball/master’.

So I decided to just download the tar ball directly by pointing my browser to: https://github.com/wayneeseguin/rvm/tarball/master

I then uploaded that to my server (filename wayneeseguin-rvm-1.10.0-13-g4b75e15.tar) and then did the following:

  1. tar -xf wayneeseguin-rvm-1.10.0-13-g4b75e15.tar
  2. cd wayneeseguin-rvm-4b75e15
  3. ./install
  4. Added the following line to my ~/.bashrc:
    alias rvm=’/usr/local/rvm/bin/rvm’
  5. Logout and login again
  6. rvm install 1.9.2      (which install ruby 1.9.2…make sure gcc is installed)
  7. /usr/local/rvm/rubies/ruby-1.9.2-p290 -v     (it installs ruby in this dir)

It then installed rvm in /usr/local/rvm and the binary was under bin/ directory under that.

-H

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.