Skip to content

Instantly share code, notes, and snippets.

@redfit
Forked from masa-ita/compile_ruby_on_centos.sh
Created August 16, 2012 16:39
Show Gist options
  • Select an option

  • Save redfit/3371540 to your computer and use it in GitHub Desktop.

Select an option

Save redfit/3371540 to your computer and use it in GitHub Desktop.

Revisions

  1. redfit revised this gist Oct 18, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion compile_ruby_on_centos.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash
    # install packages needed to compile ruby
    sudo yum -y install make gcc zlib-devel openssl-devel \
    sudo yum -y install make gcc-c++ zlib-devel openssl-devel \
    readline-devel gdbm-devel bison \
    libffi-devel wget
    # you should register EPEL repository to install libyaml
  2. redfit revised this gist Aug 16, 2012. 1 changed file with 6 additions and 5 deletions.
    11 changes: 6 additions & 5 deletions compile_ruby_on_centos.sh
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,16 @@
    #!/bin/bash
    # install packages needed to compile ruby
    yum -y install make gcc zlib-devel openssl-devel \
    sudo yum -y install make gcc zlib-devel openssl-devel \
    readline-devel gdbm-devel bison \
    libffi-devel wget
    # you should register EPEL repository to install libyaml
    rpm -Uvh http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm
    yum -y install libyaml-devel
    sudo rpm -Uvh http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm
    sudo yum -y install libyaml-devel
    cd /tmp
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
    tar xvzf ruby-1.9.3-p194.tar.gz
    cd ruby-1.9.3-p194
    ./configure --prefix=/usr/local
    make
    make install
    sudo make
    sudo make install
    sudo yum update
  3. redfit revised this gist Aug 16, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions compile_ruby_on_centos.sh
    Original file line number Diff line number Diff line change
    @@ -4,12 +4,12 @@ yum -y install make gcc zlib-devel openssl-devel \
    readline-devel gdbm-devel bison \
    libffi-devel wget
    # you should register EPEL repository to install libyaml
    rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
    rpm -Uvh http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm
    yum -y install libyaml-devel
    cd /tmp
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
    tar xvzf ruby-1.9.3-p194.tar.gz
    cd ruby-1.9.3-p194
    ./configure --prefix=/usr/local
    make
    make install
    make install
  4. @masa-ita masa-ita revised this gist Jul 20, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion compile_ruby_on_centos.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # install packages needed to compile ruby
    yum -y install make gcc zlib-devel openssl-devel \
    readline-devel gdbm-devel bison \
    libffi-devel
    libffi-devel wget
    # you should register EPEL repository to install libyaml
    rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
    yum -y install libyaml-devel
  5. @masa-ita masa-ita created this gist Jun 30, 2012.
    15 changes: 15 additions & 0 deletions compile_ruby_on_centos.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/bin/bash
    # install packages needed to compile ruby
    yum -y install make gcc zlib-devel openssl-devel \
    readline-devel gdbm-devel bison \
    libffi-devel
    # you should register EPEL repository to install libyaml
    rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
    yum -y install libyaml-devel
    cd /tmp
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
    tar xvzf ruby-1.9.3-p194.tar.gz
    cd ruby-1.9.3-p194
    ./configure --prefix=/usr/local
    make
    make install