Skip to content

Instantly share code, notes, and snippets.

@addame
Forked from ELLIOTTCABLE/build_ruby19.sh
Created January 11, 2010 03:03
Show Gist options
  • Save addame/273960 to your computer and use it in GitHub Desktop.
Save addame/273960 to your computer and use it in GitHub Desktop.

Revisions

  1. @ELLIOTTCABLE ELLIOTTCABLE revised this gist Apr 20, 2009. 1 changed file with 29 additions and 29 deletions.
    58 changes: 29 additions & 29 deletions build_ruby19.sh
    Original file line number Diff line number Diff line change
    @@ -1,29 +1,29 @@
    # This is a script to install both ruby 1.8.7 and 1.9.1, with suffixed binaries and symlinks

    mkdir -p /usr/local/src ; cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.bz2
    tar -xjvf ruby-1.8.7-p72.tar.bz2
    cd ruby-1.8.7-p72
    ./configure --prefix=/usr --program-suffix=18 --enable-shared
    make && sudo make all install

    cd /usr/local/src
    wget http://rubyforge.iasi.roedu.net/files/rubygems/rubygems-1.3.1.tgz
    tar -xzvf rubygems-1.3.1.tgz
    cd rubygems-1.3.1
    sudo /usr/bin/ruby18 setup.rb --vendor
    sudo /usr/bin/gem18 update --system

    cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.bz2
    tar -xjvf ruby-1.9.1-p0.tar.bz2
    cd ruby-1.9.1-p0
    ./configure --prefix=/usr --program-suffix=19 --enable-shared
    make && sudo make all install

    cd /usr/bin
    binaries=( erb gem irb rdoc ri ruby testrb )
    for binary in ${binaries[@]}; do
    sudo mv ${binary}{,~} # Just in case
    sudo ln -s $(pwd)/${binary}19 $(pwd)/${binary}
    done
    # This is a script to install both ruby 1.8.7 and 1.9.1, with suffixed binaries and symlinks

    mkdir -p /usr/local/src ; cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p160.tar.bz2
    tar -xjvf ruby-1.8.7-p160.tar.bz2
    cd ruby-1.8.7-p160
    ./configure --prefix=/usr --program-suffix=18 --enable-shared
    make && sudo make all install

    cd /usr/local/src
    wget http://de.mirror.rubyforge.org/rubygems/rubygems-1.3.2.tgz
    tar -xzvf rubygems-1.3.2.tgz
    cd rubygems-1.3.2
    sudo /usr/bin/ruby18 setup.rb --vendor
    sudo /usr/bin/gem18 update --system

    cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.bz2
    tar -xjvf ruby-1.9.1-p0.tar.bz2
    cd ruby-1.9.1-p0
    ./configure --prefix=/usr --program-suffix=19 --enable-shared
    make && sudo make all install

    cd /usr/bin
    binaries=( erb gem irb rdoc ri ruby testrb )
    for binary in ${binaries[@]}; do
    sudo mv ${binary}{,~} # Just in case
    sudo ln -s $(pwd)/${binary}19 $(pwd)/${binary}
    done
  2. @ELLIOTTCABLE ELLIOTTCABLE revised this gist Feb 11, 2009. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build_ruby19.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # This is a script to install both ruby 1.8.7 and 1.9.1, with suffixed binaries and aliased non-suffixed binaries
    # This is a script to install both ruby 1.8.7 and 1.9.1, with suffixed binaries and symlinks

    mkdir -p /usr/local/src ; cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.bz2
  3. @ELLIOTTCABLE ELLIOTTCABLE revised this gist Feb 11, 2009. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build_ruby19.sh
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ cd /usr/local/src
    wget http://rubyforge.iasi.roedu.net/files/rubygems/rubygems-1.3.1.tgz
    tar -xzvf rubygems-1.3.1.tgz
    cd rubygems-1.3.1
    sudo /usr/bin/ruby18 setup.rb
    sudo /usr/bin/ruby18 setup.rb --vendor
    sudo /usr/bin/gem18 update --system

    cd /usr/local/src
  4. @ELLIOTTCABLE ELLIOTTCABLE revised this gist Feb 11, 2009. 1 changed file with 16 additions and 9 deletions.
    25 changes: 16 additions & 9 deletions build_ruby19.sh
    Original file line number Diff line number Diff line change
    @@ -1,22 +1,29 @@
    # This is a script to install both ruby 1.8.7 and 1.9.1, with suffixed binaries and aliased non-suffixed binaries

    cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz
    tar -xjvf ruby-1.8.7-p72.tar.gz
    mkdir -p /usr/local/src ; cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.bz2
    tar -xjvf ruby-1.8.7-p72.tar.bz2
    cd ruby-1.8.7-p72
    ./configure --prefix=/usr --program-suffix=18 --enable-shared
    make && sudo make install
    make && sudo make all install

    mkdir -p /usr/local/src ; cd /usr/local/src
    cd /usr/local/src
    wget http://rubyforge.iasi.roedu.net/files/rubygems/rubygems-1.3.1.tgz
    tar -xzvf rubygems-1.3.1.tgz
    cd rubygems-1.3.1
    sudo /usr/bin/ruby18 setup.rb
    sudo /usr/bin/gem18 update --system

    cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.bz2
    tar -xjvf ruby-1.9.1-p0.tar.bz2
    cd ruby-1.9.1-p0
    ./configure --prefix=/usr --program-suffix=19 --enable-shared
    make && sudo make install
    make && sudo make all install

    cd /usr/local/bin
    cd /usr/bin
    binaries=( erb gem irb rdoc ri ruby testrb )
    for binary in ${binaries[@]}; do
    sudo mv ${binary}{,~}
    sudo mv ${binary}{,~} # Just in case
    sudo ln -s $(pwd)/${binary}19 $(pwd)/${binary}
    done
    done
  5. @ELLIOTTCABLE ELLIOTTCABLE revised this gist Feb 11, 2009. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build_ruby19.sh
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ cd ruby-1.9.1-p0
    make && sudo make install

    cd /usr/local/bin
    binaries=( erb gem irb rake rdoc ri ruby testrb )
    binaries=( erb gem irb rdoc ri ruby testrb )
    for binary in ${binaries[@]}; do
    sudo mv ${binary}{,~}
    sudo ln -s $(pwd)/${binary}19 $(pwd)/${binary}
  6. @ELLIOTTCABLE ELLIOTTCABLE revised this gist Feb 11, 2009. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions build_ruby19.sh
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,19 @@
    # This is a script to install both ruby 1.8.7 and 1.9.1, with suffixed binaries and aliased non-suffixed binaries

    mkdir -p /usr/local/src ; cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.bz2
    tar -xjvf ruby-1.9.1-p0.tar.bz2
    cd ruby-1.9.1-p0
    ./configure --prefix=/usr --program-suffix=19 --enable-shared
    make && sudo make install

    cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz
    tar -xjvf ruby-1.8.7-p72.tar.gz
    cd ruby-1.8.7-p72
    ./configure --prefix=/usr --program-suffix=18 --enable-shared
    make && sudo make install

    mkdir -p /usr/local/src ; cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.bz2
    tar -xjvf ruby-1.9.1-p0.tar.bz2
    cd ruby-1.9.1-p0
    ./configure --prefix=/usr --program-suffix=19 --enable-shared
    make && sudo make install

    cd /usr/local/bin
    binaries=( erb gem irb rake rdoc ri ruby testrb )
    for binary in ${binaries[@]}; do
  7. @ELLIOTTCABLE ELLIOTTCABLE revised this gist Feb 6, 2009. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions build_ruby19.sh
    Original file line number Diff line number Diff line change
    @@ -5,18 +5,18 @@ wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.bz2
    tar -xjvf ruby-1.9.1-p0.tar.bz2
    cd ruby-1.9.1-p0
    ./configure --prefix=/usr --program-suffix=19 --enable-shared
    make && make install
    make && sudo make install

    cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz
    tar -xjvf ruby-1.8.7-p72.tar.gz
    cd ruby-1.8.7-p72
    ./configure --prefix=/usr --program-suffix=18 --enable-shared
    make && make install
    make && sudo make install

    cd /usr/local/bin
    binaries=( erb gem irb rake rdoc ri ruby testrb )
    for binary in ${binaries[@]}; do
    echo mv ${binary}{,~}
    echo ln -s $(pwd)/${binary}19 $(pwd)/${binary}
    sudo mv ${binary}{,~}
    sudo ln -s $(pwd)/${binary}19 $(pwd)/${binary}
    done
  8. @ELLIOTTCABLE ELLIOTTCABLE revised this gist Feb 6, 2009. 1 changed file with 17 additions and 3 deletions.
    20 changes: 17 additions & 3 deletions build_ruby19.sh
    100755 → 100644
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,22 @@
    #!/bin/sh
    # This is a script to install both ruby 1.8.7 and 1.9.1, with suffixed binaries and aliased non-suffixed binaries

    mkdir -p /usr/local/src && cd /usr/local/src
    mkdir -p /usr/local/src ; cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.bz2
    tar -xjvf ruby-1.9.1-p0.tar.bz2
    cd ruby-1.9.1-p0
    ./configure --prefix=/usr --program-suffix=19 --enable-shared
    make && make install
    make && make install

    cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz
    tar -xjvf ruby-1.8.7-p72.tar.gz
    cd ruby-1.8.7-p72
    ./configure --prefix=/usr --program-suffix=18 --enable-shared
    make && make install

    cd /usr/local/bin
    binaries=( erb gem irb rake rdoc ri ruby testrb )
    for binary in ${binaries[@]}; do
    echo mv ${binary}{,~}
    echo ln -s $(pwd)/${binary}19 $(pwd)/${binary}
    done
  9. @postmodern postmodern revised this gist Feb 6, 2009. 1 changed file with 0 additions and 0 deletions.
    Empty file modified build_ruby19.sh
    100644 → 100755
    Empty file.
  10. @postmodern postmodern created this gist Feb 6, 2009.
    8 changes: 8 additions & 0 deletions build_ruby19.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/bin/sh

    mkdir -p /usr/local/src && cd /usr/local/src
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.bz2
    tar -xjvf ruby-1.9.1-p0.tar.bz2
    cd ruby-1.9.1-p0
    ./configure --prefix=/usr --program-suffix=19 --enable-shared
    make && make install