Created
January 16, 2013 02:14
-
-
Save snooc/4544042 to your computer and use it in GitHub Desktop.
Revisions
-
mhutter revised this gist
Mar 27, 2012 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -49,15 +49,14 @@ test -d ~/.rbenv || git clone [email protected]:sstephenson/rbenv.git ~/.rbenv # modify $PATH and autoload rbenv grep 'rbenv/bin' $PROFILE &>/dev/null || echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> $PROFILE grep 'rbenv init' $PROFILE &>/dev/null || echo 'eval "$(rbenv init -)"' >> $PROFILE mkdir -p ~/.rbenv/plugins # reload shell source $PROFILE ### Install ruby-build test -d ~/.rbenv/plugins/ruby-build || git clone [email protected]:sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build ### Install rbenv-gemset test -d ~/.rbenv/plugins/rbenv-gemset || git clone [email protected]:jamis/rbenv-gemset.git ~/.rbenv/plugins/rbenv-gemset ### Install Ruby -
mhutter revised this gist
Mar 7, 2012 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,15 +30,17 @@ sudo aptitude update # install some dependancies sudo aptitude install -y \ build-essential zlib1g-dev \ libssl-dev openssl \ libreadline-dev \ sqlite3 libsqlite3-dev \ libxslt-dev libxml2-dev \ curl wget git-core # build-essential zlib1g-dev required to install ruby # libssl-dev openssl required for openssl extension # libreadline-dev required for IRB # sqlite3 libsqlite3-dev required for sqlite gem # libxslt-dev libxml2-dev required for nokogiri gem # curl wget git-core can i haz tools? cd -
mhutter revised this gist
Mar 6, 2012 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -54,6 +54,10 @@ source $PROFILE test -d ~/ruby-build || git clone [email protected]:sstephenson/ruby-build.git ~/ruby-build cd ~/ruby-build && sudo ./install.sh ### Install rbenv-gemset mkdir -p ~/.rbenv/plugins test -d ~/.rbenv/plugins/rbenv-gemset || git clone [email protected]:jamis/rbenv-gemset.git ~/.rbenv/plugins/rbenv-gemset ### Install Ruby rbenv install $RBVER --with-openssl-dir=/usr/local # reload binaries @@ -72,4 +76,4 @@ echo '=== end of .gemrc ===' # install bundler gem install bundler rbenv rehash grep 'BUNDLE_WITHOUT' $PROFILE &>/dev/null || echo 'export BUNDLE_WITHOUT=production' >> $PROFILE -
mhutter revised this gist
Feb 7, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -38,7 +38,7 @@ sudo aptitude install -y \ # build-essential zlib1g-dev required to install ruby # sqlite3 libsqlite3-dev required for sqlite gem # libssl-dev openssl required for openssl extension # libreadline-dev required for IRB # curl wget git-core can i haz tools? cd -
mhutter revised this gist
Feb 7, 2012 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,11 +32,13 @@ sudo aptitude install -y \ build-essential zlib1g-dev \ sqlite3 libsqlite3-dev \ libssl-dev openssl \ libreadline-dev \ curl wget git-core # build-essential zlib1g-dev required to install ruby # sqlite3 libsqlite3-dev required for sqlite gem # libssl-dev openssl required for openssl extension # libssl-dev openssl required for IRB # curl wget git-core can i haz tools? cd -
mhutter revised this gist
Jan 27, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -70,3 +70,4 @@ echo '=== end of .gemrc ===' # install bundler gem install bundler rbenv rehash grep 'BUNDLE_WITHOUT' $PROFILE &>/dev/null || echo 'export BUNDLE_WITHOUT=production' >> $PROFILE -
mhutter revised this gist
Jan 26, 2012 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ #!/bin/bash set -e # exit on error ### README -
mhutter created this gist
Jan 26, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,73 @@ #!/bin/bash set -e # exit on error ### README # * built for Ubuntu (Lucid Lynx) # * uses GIT via SSH because of !@#$% proxy at work # * installs your desired ruby version (1.9.2-p290 per default) using rbenv # ** including openssl (needed by bundler) # ** including sqlite (probably needed for rails apps) # # Before you start: # * put ssh-keys in place # * $ ssh [email protected] # * If you're behind a proxy, be sure to set $http_proxy etc! # # After the Script has run: # * reload your .profile ### /README ### CONFIG # Ruby Version to install RBVER='1.9.2-p290' ### /CONFIG PROFILE=~/.profile # update system, just in case sudo aptitude update #sudo aptitude full-upgrade # install some dependancies sudo aptitude install -y \ build-essential zlib1g-dev \ sqlite3 libsqlite3-dev \ libssl-dev openssl \ curl wget git-core # build-essential zlib1g-dev required to install ruby # sqlite3 libsqlite3-dev required for sqlite gem # libssl-dev openssl required for openssl extension # curl wget git-core can i haz tools? cd ### Install rbenv test -d ~/.rbenv || git clone [email protected]:sstephenson/rbenv.git ~/.rbenv # modify $PATH and autoload rbenv grep 'rbenv/bin' $PROFILE &>/dev/null || echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> $PROFILE grep 'rbenv init' $PROFILE &>/dev/null || echo 'eval "$(rbenv init -)"' >> $PROFILE # reload shell source $PROFILE ### Install ruby-build test -d ~/ruby-build || git clone [email protected]:sstephenson/ruby-build.git ~/ruby-build cd ~/ruby-build && sudo ./install.sh ### Install Ruby rbenv install $RBVER --with-openssl-dir=/usr/local # reload binaries rbenv rehash # set as default version rbenv global $RBVER ruby -v # set some defaults test -s ~/.gemrc || echo 'gem: --no-rdoc --no-ri' >> ~/.gemrc echo 'Here is your ~/.gemrc:' cat ~/.gemrc echo '=== end of .gemrc ===' # install bundler gem install bundler rbenv rehash