Skip to content

Instantly share code, notes, and snippets.

@gwik
Forked from mitnick78/gist:5901312
Last active December 19, 2015 04:59
Show Gist options
  • Select an option

  • Save gwik/5901360 to your computer and use it in GitHub Desktop.

Select an option

Save gwik/5901360 to your computer and use it in GitHub Desktop.

Revisions

  1. gwik revised this gist Jul 1, 2013. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@

    sudo port install tk tcl readline apple-gcc42 openssl

    git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
    @@ -16,3 +15,9 @@ make install

    rbenv rehash
    rbenv global 2.0.0-p247

    curl -LO 'rubygems'
    tar
    rbenv exec ruby ./setup.rb
    rbenv exec gem install bundler --no-rdoc --no-ri

  2. christophemilliere created this gist Jul 1, 2013.
    18 changes: 18 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@

    sudo port install tk tcl readline apple-gcc42 openssl

    git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
    echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

    cd ~/.rbenv && mkdir src && cd src
    curl -LO 'ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz'

    tar xvzf ruby-2.0.0-p247.tar.gz
    cd ruby-2.0.0-p247
    ./configure --enable-shared --prefix=/Users/devweb/.rbenv/versions/2.0.0-p247 --with-opt-dir=/opt/local
    make
    make install

    rbenv rehash
    rbenv global 2.0.0-p247