Skip to content

Instantly share code, notes, and snippets.

@crsuarez
Forked from slouma2000/install_ruby_1.9.3
Created June 20, 2017 21:15
Show Gist options
  • Select an option

  • Save crsuarez/c7fb20ef628f86b968f45c14406b172f to your computer and use it in GitHub Desktop.

Select an option

Save crsuarez/c7fb20ef628f86b968f45c14406b172f to your computer and use it in GitHub Desktop.

Revisions

  1. @slouma2000 slouma2000 revised this gist Jan 25, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install_ruby_1.9.3
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    Step 1: Upgrade Packages
    # yum update
    # yum groupinstall "Development Tools"

    Step 2: Installing Recommended Packages
    # yum install gcc-c++ patch readline readline-devel zlib zlib-devel
  2. @slouma2000 slouma2000 renamed this gist Jan 25, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @slouma2000 slouma2000 created this gist Jan 25, 2014.
    40 changes: 40 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    Step 1: Upgrade Packages
    # yum update

    Step 2: Installing Recommended Packages
    # yum install gcc-c++ patch readline readline-devel zlib zlib-devel
    # yum install libyaml-devel libffi-devel openssl-devel make
    # yum install bzip2 autoconf automake libtool bison iconv-devel

    Step 3: Install RVM ( Ruby Version Manager )
    curl -L get.rvm.io | bash -s stable

    Step 4: Setup RVM Environment
    source /etc/profile.d/rvm.sh

    Step 5: Install Required Ruby Version
    # rvm install 1.9.3

    Step 6: Install Another Version ( if Required )
    # rvm install 1.8.6

    Step 7: Setup Default Ruby Version
    rvm use 1.9.3 --default

    Step 8: Check Current Ruby Version
    # ruby --version


    Update rubygems
    $ 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
    # Rails
    $ yum install sqlite-devel
    $ gem install rails
    $ gem install sqlite3