Skip to content

Instantly share code, notes, and snippets.

@canweriotnow
Forked from havenwood/chruby_ruby-build.sh
Last active August 13, 2019 10:46
Show Gist options
  • Select an option

  • Save canweriotnow/da94e1fd000fbbfb2d5411efbb049d78 to your computer and use it in GitHub Desktop.

Select an option

Save canweriotnow/da94e1fd000fbbfb2d5411efbb049d78 to your computer and use it in GitHub Desktop.

Revisions

  1. canweriotnow revised this gist Sep 19, 2016. 1 changed file with 17 additions and 7 deletions.
    24 changes: 17 additions & 7 deletions chruby_ruby-build.sh
    Original file line number Diff line number Diff line change
    @@ -3,29 +3,39 @@ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl

    # Install chruby:
    cd
    wget https://github.com/downloads/postmodern/chruby/chruby-0.2.3.tar.gz
    tar -xzvf chruby-0.2.3.tar.gz
    wget https://github.com/downloads/postmodern/chruby/chruby-0.3.9.tar.gz
    tar -xzvf chruby-0.3.9.tar.gz
    cd chruby-0.2.3
    sudo make install

    # Install ruby-install:
    cd
    wget -O ruby-install-0.6.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.6.0.tar.gz
    tar -xzvf ruby-install-0.6.0.tar.gz
    cd ruby-install-0.6.0/
    sudo make install

    # Install ruby-build:
    cd
    git clone https://github.com/sstephenson/ruby-build.git
    cd ruby-build
    sudo ./install.sh

    # Install 1.9.3 with OpenSSL:
    ruby-build 1.9.3-p327 ~/usr/local/1.9.3-p327 --with-openssl-dir=`which openssl`
    # Install gem_home:


    # Install 2.3.1 with OpenSSL:
    ruby-build 2.3.1 ~/usr/local/2.3.1 --with-openssl-dir=`which openssl`

    # Add the following to .bashrc (or .zshrc whatev):
    . /usr/local/share/chruby/chruby.sh # Load chruby
    RUBIES=(
    ~/usr/local/1.9.3-p327
    ~/usr/local/2.3.1
    # Path to other Rubies here...
    )
    chruby 1.9.3 # Select default Ruby
    chruby 2.3.1 # Select default Ruby

    # Close and reopen terminal.

    chruby
    #=> * 1.9.3-p327
    #=> * 2.3.1
  2. @havenwood havenwood revised this gist Nov 27, 2012. No changes.
  3. @havenwood havenwood revised this gist Nov 27, 2012. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions chruby_ruby-build.sh
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@ RUBIES=(
    )
    chruby 1.9.3 # Select default Ruby

    # You may need to source some files or simply close and reopen terminal.
    # Close and reopen terminal.

    # Check that OpenSSL Works:
    irb -r openssl
    chruby
    #=> * 1.9.3-p327
  4. @havenwood havenwood revised this gist Nov 27, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions chruby_ruby-build.sh
    Original file line number Diff line number Diff line change
    @@ -25,5 +25,7 @@ RUBIES=(
    )
    chruby 1.9.3 # Select default Ruby

    # You may need to source some files or simply close and reopen terminal.

    # Check that OpenSSL Works:
    irb -r openssl
  5. @havenwood havenwood revised this gist Nov 27, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion chruby_ruby-build.sh
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ cd
    wget https://github.com/downloads/postmodern/chruby/chruby-0.2.3.tar.gz
    tar -xzvf chruby-0.2.3.tar.gz
    cd chruby-0.2.3
    make install
    sudo make install

    # Install ruby-build:
    cd
  6. @havenwood havenwood revised this gist Nov 27, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions chruby_ruby-build.sh
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,7 @@ cd chruby-0.2.3
    make install

    # Install ruby-build:
    cd
    git clone https://github.com/sstephenson/ruby-build.git
    cd ruby-build
    sudo ./install.sh
  7. @havenwood havenwood revised this gist Nov 27, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion chruby_ruby-build.sh
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ make install
    # Install ruby-build:
    git clone https://github.com/sstephenson/ruby-build.git
    cd ruby-build
    ./install.sh
    sudo ./install.sh

    # Install 1.9.3 with OpenSSL:
    ruby-build 1.9.3-p327 ~/usr/local/1.9.3-p327 --with-openssl-dir=`which openssl`
  8. @havenwood havenwood revised this gist Nov 27, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion chruby_ruby-build.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ cd chruby-0.2.3
    make install

    # Install ruby-build:
    git clone git@github.com:sstephenson/ruby-build.git
    git clone https://github.com/sstephenson/ruby-build.git
    cd ruby-build
    ./install.sh

  9. @havenwood havenwood revised this gist Nov 27, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion chruby_ruby-build.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Install apt-get packages:
    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkgconfig
    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config

    # Install chruby:
    cd
  10. @havenwood havenwood revised this gist Nov 27, 2012. No changes.
  11. @havenwood havenwood revised this gist Nov 27, 2012. 1 changed file with 4 additions and 5 deletions.
    9 changes: 4 additions & 5 deletions chruby_ruby-build.sh
    Original file line number Diff line number Diff line change
    @@ -8,12 +8,12 @@ tar -xzvf chruby-0.2.3.tar.gz
    cd chruby-0.2.3
    make install

    # Install ruby-build
    # Install ruby-build:
    git clone git@github.com:sstephenson/ruby-build.git
    cd ruby-build
    ./install.sh

    # Install 1.9.3 with OpenSSL
    # Install 1.9.3 with OpenSSL:
    ruby-build 1.9.3-p327 ~/usr/local/1.9.3-p327 --with-openssl-dir=`which openssl`

    # Add the following to .bashrc (or .zshrc whatev):
    @@ -24,6 +24,5 @@ RUBIES=(
    )
    chruby 1.9.3 # Select default Ruby

    # Check OpenSSL
    irb
    require 'openssl' # => true
    # Check that OpenSSL Works:
    irb -r openssl
  12. @havenwood havenwood revised this gist Nov 27, 2012. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions chruby_ruby-build.sh
    Original file line number Diff line number Diff line change
    @@ -27,5 +27,3 @@ chruby 1.9.3 # Select default Ruby
    # Check OpenSSL
    irb
    require 'openssl' # => true
    delete this gist
    Comments are parsed with GitHub Flavored Markdown
  13. @havenwood havenwood renamed this gist Nov 27, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  14. @havenwood havenwood created this gist Nov 27, 2012.
    31 changes: 31 additions & 0 deletions chruby_ruby-build
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    # Install apt-get packages:
    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkgconfig

    # Install chruby:
    cd
    wget https://github.com/downloads/postmodern/chruby/chruby-0.2.3.tar.gz
    tar -xzvf chruby-0.2.3.tar.gz
    cd chruby-0.2.3
    make install

    # Install ruby-build
    git clone git@github.com:sstephenson/ruby-build.git
    cd ruby-build
    ./install.sh

    # Install 1.9.3 with OpenSSL
    ruby-build 1.9.3-p327 ~/usr/local/1.9.3-p327 --with-openssl-dir=`which openssl`

    # Add the following to .bashrc (or .zshrc whatev):
    . /usr/local/share/chruby/chruby.sh # Load chruby
    RUBIES=(
    ~/usr/local/1.9.3-p327
    # Path to other Rubies here...
    )
    chruby 1.9.3 # Select default Ruby

    # Check OpenSSL
    irb
    require 'openssl' # => true
    delete this gist
    Comments are parsed with GitHub Flavored Markdown