Skip to content

Instantly share code, notes, and snippets.

@thelinuxlich
Forked from AstonJ/gist:2896818
Created April 17, 2014 19:30

Revisions

  1. @AstonJ AstonJ revised this gist Jun 8, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -29,6 +29,7 @@ $ gem update --system
    $ gem install bundler

    #Test ruby and rubygems are working
    #Close shell and reopen for changes to take effect
    $ruby -v
    $gem --version

  2. @AstonJ AstonJ created this gist Jun 8, 2012.
    38 changes: 38 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    #get root access
    $su -
    $ cd /tmp

    #Remove old Ruby
    $ yum remove ruby

    # Install dependencies
    $ yum groupinstall "Development Tools"
    $ yum install zlib zlib-devel
    $ yum install openssl-devel
    $ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
    $ tar xzvf yaml-0.1.4.tar.gz
    $ cd yaml-0.1.4
    $ ./configure
    $ make
    $ make install

    # Install ruby
    $ wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
    $ tar zxf ruby-1.9.3-p194.tar.gz
    $ cd ruby-1.9.3-p194
    $ ./configure
    $ make
    $ make install

    # Update rubygems
    $ gem update --system
    $ gem install bundler

    #Test ruby and rubygems are working
    $ruby -v
    $gem --version

    # Rails
    $ yum install sqlite-devel
    $ gem install rails
    $ gem install sqlite3