Skip to content

Instantly share code, notes, and snippets.

@aribeiro
Created March 3, 2012 19:37

Revisions

  1. @HatemMahmoud HatemMahmoud revised this gist Sep 7, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions ruby-openssl-ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ cd ruby-build
    # $ which openssl
    # /usr/bin/openssl

    # Install
    # Install Ruby with OpenSSL option
    ruby-build 1.9.2-p290 ~/.rbenv/versions/1.9.2-p290 --with-openssl-dir=/usr/local

    # Install shims for all Ruby binaries
    @@ -27,4 +27,4 @@ ruby -v #ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

    # Check OpenSSL
    irb
    irb(main):001:0> require 'openssl' # => true
    require 'openssl' # => true
  2. @HatemMahmoud HatemMahmoud revised this gist Sep 7, 2011. 2 changed files with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion Ubunturbenv
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    # for more info: https://gist.github.com/1120938
    File renamed without changes.
  3. @HatemMahmoud HatemMahmoud revised this gist Sep 7, 2011. 2 changed files with 30 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions ruby-192-Ubuntu-1104.rb
    Original file line number Diff line number Diff line change
    @@ -1,2 +0,0 @@
    # for more info: https://gist.github.com/1120938
    cd
    30 changes: 30 additions & 0 deletions ruby-openssl-ubuntu.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    # For more info: https://gist.github.com/1120938

    cd
    git clone git@github.com:sstephenson/rbenv.git ~/.rbenv
    # Add rbenv to your PATH
    echo 'export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"' >> ~/.bash_profile
    # Install ruby-build
    git clone [email protected]:sstephenson/ruby-build.git
    cd ruby-build
    ./install.sh

    # $ which openssl
    # /usr/bin/openssl

    # Install
    ruby-build 1.9.2-p290 ~/.rbenv/versions/1.9.2-p290 --with-openssl-dir=/usr/local

    # Install shims for all Ruby binaries
    rbenv rehash

    # Set default Ruby version
    rbenv global 1.9.2-p290

    # Check Ruby
    ruby -v #ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

    # Check OpenSSL
    irb
    irb(main):001:0> require 'openssl' # => true
  4. @HatemMahmoud HatemMahmoud revised this gist Sep 7, 2011. 2 changed files with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Ubunturbenv
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    # for more info: https://gist.github.com/1120938
    File renamed without changes.
  5. @HatemMahmoud HatemMahmoud revised this gist Sep 7, 2011. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ruby-192-Ubuntu-1104
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # for more info: https://gist.github.com/1120938
    cd
  6. @HatemMahmoud HatemMahmoud created this gist Sep 7, 2011.
    1 change: 1 addition & 0 deletions Ubuntu rbenv
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    # for more info: https://gist.github.com/1120938