Forked from jpfuentes2/rbenv-install-system-wide.sh
Last active
August 29, 2015 14:05
Revisions
-
Michael Dec revised this gist
Sep 4, 2014 . 1 changed file with 2 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 @@ -74,10 +74,11 @@ pushd /tmp fi cd ruby-build ./install.sh > ruby-build.install.log.$JOB_PID popd echo '---------------------------------' echo ' rbenv installed system wide to /usr/local/rbenv' echo " For your convenience, ruby-install log is in ruby-build.install.log.$JOB_PID" echo ' Remember to restart your shell for the changes to take effect!' echo '---------------------------------' -
Michael Dec revised this gist
Sep 4, 2014 . 1 changed file with 7 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 @@ -14,7 +14,13 @@ fi # Install pre-requirements if [ "$DISTRO" == "Redhat" ]; then yum install -y -q gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ make bzip2 autoconf automake libtool bison iconv-devel git-core > rbenv.yum.$JOB_PID if [ `grep -E Package.*'gcc-c\+\+|patch|readline|zlib-|zlib-devel|make|bzip2|autoconf|automake|libtool|bison|git'.*already\ installed\ and\ latest\ version rbenv.yum.$JOB_PID | wc -l` -eq "12" ]; then rm -f rbenv.yum.$JOB_PID else echo "While installing rbenv, yum behaved differently than before groupinstalling devtools" echo "Check rbenv.yum.$JOB_PID" fi elif [ "$DISTRO" == "Debian" ]; then # Needs testing aptitude install gcc patch readline readline-dev zlib1g zlib1g-dev libyaml-dev libffi-dev openssl-dev \ -
Michael Dec revised this gist
Sep 4, 2014 . 1 changed file with 2 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 @@ -12,10 +12,10 @@ elif command -v aptitude >/dev/null 2>&1; then fi # Install pre-requirements if [ "$DISTRO" == "Redhat" ]; then yum install -y -q gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ make bzip2 autoconf automake libtool bison iconv-devel git-core elif [ "$DISTRO" == "Debian" ]; then # Needs testing aptitude install gcc patch readline readline-dev zlib1g zlib1g-dev libyaml-dev libffi-dev openssl-dev \ make bzip2 autoconf automake libtool bison iconv-dev git -
Michael Dec revised this gist
Sep 4, 2014 . 1 changed file with 2 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 @@ -12,10 +12,10 @@ elif command -v aptitude >/dev/null 2>&1; then fi # Install pre-requirements if["$DISTRO" == "Redhat"]; then yum install -y -q gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ make bzip2 autoconf automake libtool bison iconv-devel git-core elif["$DISTRO" == "Debian"]; then # Needs testing aptitude install gcc patch readline readline-dev zlib1g zlib1g-dev libyaml-dev libffi-dev openssl-dev \ make bzip2 autoconf automake libtool bison iconv-dev git -
Michael Dec revised this gist
Sep 4, 2014 . 1 changed file with 8 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 @@ -2,6 +2,7 @@ # rbenv system wide installation script # Forked from https://gist.github.com/jpfuentes2/2002954 JOB_PID=$$ # Installs rbenv system wide on CentOS 5/6 and Debian, also allows single user installs. if command -v yum >/dev/null 2>&1; then @@ -12,7 +13,7 @@ fi # Install pre-requirements if["$DISTRO" = "Redhat"]; then yum install -y -q gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ make bzip2 autoconf automake libtool bison iconv-devel git-core elif["$DISTRO" = "Debian"]; then # Needs testing @@ -33,12 +34,14 @@ if [[ -d "/usr/local/rbenv" ]]; then fi # Install rbenv git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv > git.rbenv.$JOB_PID # Check if clone succesful if [ $? -gt 0 ]; then echo >&2 "Error: Git clone error! See above."; exit 1; else rm -f git.rbenv.$JOB_PID fi # Add rbenv to the path @@ -54,12 +57,14 @@ chmod +x /etc/profile.d/rbenv.sh # Install ruby-build: pushd /tmp rm -rf /tmp/ruby-build git clone git://github.com/sstephenson/ruby-build.git > git.ruby-build.$JOB_PID # Check if clone succesful if [ $? -gt 0 ]; then echo >&2 "Error: Git clone error! See above."; exit 1; else rm -f git.ruby-build.$JOB_PID fi cd ruby-build -
Michael Dec revised this gist
Aug 27, 2014 . 1 changed file with 2 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 @@ -11,10 +11,10 @@ elif command -v aptitude >/dev/null 2>&1; then fi # Install pre-requirements if["$DISTRO" = "Redhat"]; then yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ make bzip2 autoconf automake libtool bison iconv-devel git-core elif["$DISTRO" = "Debian"]; then # Needs testing aptitude install gcc patch readline readline-dev zlib1g zlib1g-dev libyaml-dev libffi-dev openssl-dev \ make bzip2 autoconf automake libtool bison iconv-dev git -
Michael Dec revised this gist
Aug 27, 2014 . 1 changed file with 16 additions and 5 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 @@ -1,13 +1,24 @@ #!/bin/bash # rbenv system wide installation script # Forked from https://gist.github.com/jpfuentes2/2002954 # Installs rbenv system wide on CentOS 5/6 and Debian, also allows single user installs. if command -v yum >/dev/null 2>&1; then DISTRO="Redhat" elif command -v aptitude >/dev/null 2>&1; then DISTRO="Debian" fi # Install pre-requirements if["$DISTRO" -eq "Redhat"]; then yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ make bzip2 autoconf automake libtool bison iconv-devel git-core elif["$DISTRO" -eq "Debian"]; then # Needs testing aptitude install gcc patch readline readline-dev zlib1g zlib1g-dev libyaml-dev libffi-dev openssl-dev \ make bzip2 autoconf automake libtool bison iconv-dev git fi # Check if Git is installed hash git 2>&- || { -
Egg-McMuffin revised this gist
Feb 2, 2012 . 1 changed file with 15 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 @@ -6,7 +6,8 @@ # Installs rbenv system wide on CentOS 5/6, also allows single user installs. # Install pre-requirements yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ make bzip2 autoconf automake libtool bison iconv-devel git-core # Check if Git is installed hash git 2>&- || { @@ -23,6 +24,12 @@ fi # Install rbenv git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv # Check if clone succesful if [ $? -gt 0 ]; then echo >&2 "Error: Git clone error! See above."; exit 1; fi # Add rbenv to the path echo '# rbenv setup - only add RBENV PATH variables if no single user install found' > /etc/profile.d/rbenv.sh echo 'if [[ ! -d "${HOME}/.rbenv" ]]; then' >> /etc/profile.d/rbenv.sh @@ -37,6 +44,13 @@ chmod +x /etc/profile.d/rbenv.sh pushd /tmp rm -rf /tmp/ruby-build git clone git://github.com/sstephenson/ruby-build.git # Check if clone succesful if [ $? -gt 0 ]; then echo >&2 "Error: Git clone error! See above."; exit 1; fi cd ruby-build ./install.sh popd -
Egg-McMuffin revised this gist
Feb 1, 2012 . 1 changed file with 1 addition 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 @@ -6,8 +6,7 @@ # Installs rbenv system wide on CentOS 5/6, also allows single user installs. # Install pre-requirements yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel git-core # Check if Git is installed hash git 2>&- || { -
Egg-McMuffin revised this gist
Jan 30, 2012 . 2 changed files with 19 additions and 6 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 @@ -6,14 +6,21 @@ # Installs rbenv system wide on CentOS 5/6, also allows single user installs. # Install pre-requirements yum -y groupinstall "Development Tools" yum -y install git-core openssl-devel readline-devel # Check if Git is installed hash git 2>&- || { echo >&2 "Error: Git not found. Hint: Try installing the RPMForge or EPEL package repository."; exit 1; } # Check if /usr/local/rbenv already exists if [[ -d "/usr/local/rbenv" ]]; then echo >&2 "Error: /usr/local/rbenv already exists. Aborting installation."; exit 1; fi # Install rbenv git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv @@ -29,12 +36,13 @@ chmod +x /etc/profile.d/rbenv.sh # Install ruby-build: pushd /tmp rm -rf /tmp/ruby-build git clone git://github.com/sstephenson/ruby-build.git cd ruby-build ./install.sh popd echo '---------------------------------' echo ' rbenv installed system wide to /usr/local/rbenv' echo ' Remember to restart your shell for the changes to take effect!' echo '---------------------------------' 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 @@ -5,6 +5,11 @@ # Installs rbenv to user home on CentOS 5/6. if [[ -d "${HOME}/.rbenv" ]]; then echo >&2 "Error: ${HOME}/.rbenv already exists. Aborting installation."; exit 1; fi # Install rbenv git clone git://github.com/sstephenson/rbenv.git ~/.rbenv @@ -14,5 +19,5 @@ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile echo '---------------------------------' echo " rbenv installed to $HOME/.rbenv" echo ' Remember to restart your shell for the changes to take effect!' echo '---------------------------------' -
Egg-McMuffin revised this gist
Jan 30, 2012 . 2 changed files with 9 additions and 9 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 @@ -1,3 +1,5 @@ #!/bin/bash # CentOS rbenv system wide installation script # Forked from https://gist.github.com/1237417 @@ -24,7 +26,6 @@ echo ' eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh echo 'fi' >> /etc/profile.d/rbenv.sh chmod +x /etc/profile.d/rbenv.sh # Install ruby-build: pushd /tmp @@ -33,9 +34,7 @@ pushd /tmp ./install.sh popd echo '---------------------------------' echo ' rbenv installed system wide to /usr/local/rbenv' echo ' Please restart your shell: exec $SHELL' echo '---------------------------------' 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,3 +1,5 @@ #!/bin/bash # CentOS rbenv installation script # Forked from https://gist.github.com/1237417 @@ -9,9 +11,8 @@ git clone git://github.com/sstephenson/rbenv.git ~/.rbenv # Add rbenv to the path echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(rbenv init -)"' >> ~/.bash_profile echo '---------------------------------' echo " rbenv installed to $HOME/.rbenv" echo ' Please restart your shell: exec $SHELL' echo '---------------------------------' -
Egg-McMuffin revised this gist
Jan 30, 2012 . 2 changed files with 2 additions and 4 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 @@ -1,6 +1,5 @@ # CentOS rbenv system wide installation script # Forked from https://gist.github.com/1237417 # Installs rbenv system wide on CentOS 5/6, also allows single user installs. 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,15 +1,14 @@ # CentOS rbenv installation script # Forked from https://gist.github.com/1237417 # Installs rbenv to user home on CentOS 5/6. # Install rbenv git clone git://github.com/sstephenson/rbenv.git ~/.rbenv # Add rbenv to the path echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(rbenv init -)"' >> ~/.bash_profile source ~/.bash_profile echo '---------------------------------' -
Egg-McMuffin revised this gist
Jan 30, 2012 . 2 changed files 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 @@ -1,5 +1,6 @@ # CentOS rbenv system wide installation script # Forked from https://gist.github.com/1237417 # bash < <( curl -s https://raw.github.com/gist/1699769/rbenv-install-system-wide.sh ) # Installs rbenv system wide on CentOS 5/6, also allows single user installs. 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,5 +1,6 @@ # CentOS rbenv installation script # Forked from https://gist.github.com/1237417 # bash < <( curl -s https://raw.github.com/gist/1699769/rbenv-install.sh ) # Installs rbenv to user home on CentOS 5/6. -
Egg-McMuffin revised this gist
Jan 30, 2012 . 1 changed file with 5 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 @@ -1,3 +1,8 @@ # CentOS rbenv installation script # Forked from https://gist.github.com/1237417 # Installs rbenv to user home on CentOS 5/6. # Install rbenv git clone git://github.com/sstephenson/rbenv.git ~/.rbenv -
Egg-McMuffin revised this gist
Jan 30, 2012 . 2 changed files with 29 additions and 34 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 @@ -1,17 +1,27 @@ # CentOS rbenv system wide installation script # Forked from https://gist.github.com/1237417 # Installs rbenv system wide on CentOS 5/6, also allows single user installs. # Install pre-requirements yum groupinstall "Development Tools" yum install git-core openssl-devel readline-devel # Check Git has been installed hash git 2>&- || { echo >&2 "Error: Git not found. Hint: Try installing the RPMForge or EPEL package repository."; exit 1; } # Install rbenv git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv # Add rbenv to the path echo '# rbenv setup - only add RBENV PATH variables if no single user install found' > /etc/profile.d/rbenv.sh echo 'if [[ ! -d "${HOME}/.rbenv" ]]; then' >> /etc/profile.d/rbenv.sh echo ' export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh echo ' export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh echo ' eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh echo 'fi' >> /etc/profile.d/rbenv.sh chmod +x /etc/profile.d/rbenv.sh source /etc/profile.d/rbenv.sh @@ -23,9 +33,9 @@ pushd /tmp ./install.sh popd # Install Ruby 1.9.3-p0 rbenv install 1.9.3-p0 rbenv global 1.9.3-p0 # Rehash: rbenv rehash 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,27 +1,12 @@ # Install rbenv git clone git://github.com/sstephenson/rbenv.git ~/.rbenv # Add rbenv to the path echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile echo 'eval "$(rbenv init -)"' >> .bash_profile source ~/.bash_profile echo '---------------------------------' echo " rbenv installed to $HOME/.rbenv" echo " Restart your shell if an existing system wide installation exists!" echo '---------------------------------' -
fesplugas revised this gist
Sep 23, 2011 . 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 @@ -14,7 +14,7 @@ echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh chmod +x /etc/profile.d/rbenv.sh source /etc/profile.d/rbenv.sh # Install ruby-build: pushd /tmp -
fesplugas revised this gist
Sep 22, 2011 . 3 changed files with 37 additions and 11 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 @@ -0,0 +1,31 @@ # Update, upgrade and install development tools: apt-get update apt-get -y upgrade apt-get -y install build-essential apt-get -y install git-core # Install rbenv git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv # Add rbenv to the path: echo '# rbenv setup' > /etc/profile.d/rbenv.sh echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh chmod +x /etc/profile.d/rbenv.sh /etc/profile.d/rbenv.sh # Install ruby-build: pushd /tmp git clone git://github.com/sstephenson/ruby-build.git cd ruby-build ./install.sh popd # Install Ruby 1.9.2-p290: rbenv install 1.9.2-p290 rbenv global 1.9.2-p290 # Rehash: rbenv rehash 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,26 +1,27 @@ # Update, upgrade and install development tools: apt-get update apt-get -y upgrade apt-get -y install build-essential apt-get -y install git-core # Install rbenv: git clone git://github.com/sstephenson/rbenv.git ~/.rbenv # Add rbenv to the path: echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile echo 'eval "$(rbenv init -)"' >> .bash_profile source ~/.bash_profile # Install ruby-build: pushd /tmp git clone git://github.com/sstephenson/ruby-build.git cd ruby-build ./install.sh popd # Install Ruby 1.9.2-p290: rbenv install 1.9.2-p290 rbenv global 1.9.2-p290 # Rehash: rbenv rehash 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,6 +0,0 @@ -
fesplugas revised this gist
Sep 22, 2011 . 1 changed file with 6 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 @@ -0,0 +1,6 @@ echo '# rbenv setup' > /etc/profile.d/rbenv.sh echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh chmod +x /etc/profile.d/rbenv.sh -
fesplugas revised this gist
Sep 22, 2011 . 1 changed file with 3 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 @@ -21,3 +21,6 @@ popd # Install Ruby 1.9.2-p290 rbenv install 1.9.2-p290 rbenv global 1.9.2-p290 # Rehash! rbenv rehash -
fesplugas revised this gist
Sep 22, 2011 . 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 @@ -4,10 +4,12 @@ apt-get -y install build-essential apt-get -y install git-core # And now install rbenv git clone git://github.com/sstephenson/rbenv.git ~/.rbenv # Add rbenv to your path echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile echo 'eval "$(rbenv init -)"' >> .bash_profile source ~/.bash_profile # Install ruby-build pushd /tmp -
fesplugas created this gist
Sep 22, 2011 .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,21 @@ apt-get update apt-get -y upgrade apt-get -y install build-essential apt-get -y install git-core # And now install rbenv git clone git://github.com/sstephenson/rbenv.git .rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile echo 'eval "$(rbenv init -)"' >> .bash_profile exec # Install ruby-build pushd /tmp git clone git://github.com/sstephenson/ruby-build.git cd ruby-build ./install.sh popd # Install Ruby 1.9.2-p290 rbenv install 1.9.2-p290 rbenv global 1.9.2-p290