Skip to content

Instantly share code, notes, and snippets.

@vincentlkl
Forked from m-gagne/rbenv-install.sh
Last active February 13, 2017 04:39
Show Gist options
  • Select an option

  • Save vincentlkl/d05c5b1a8bc384582a4a to your computer and use it in GitHub Desktop.

Select an option

Save vincentlkl/d05c5b1a8bc384582a4a to your computer and use it in GitHub Desktop.

Revisions

  1. vincentlkl revised this gist Feb 13, 2017. 1 changed file with 15 additions and 1 deletion.
    16 changes: 15 additions & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,18 @@
    # installing rbenv
    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs

    # Install rbenv
    cd
    git clone https://github.com/rbenv/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
    echo 'eval "$(rbenv init -)"' >> ~/.bashrc
    exec $SHELL

    git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
    exec $SHELL

    rbenv install 2.3.0
    rbenv global 2.3.0
    ruby -v
  2. vincentlkl revised this gist Feb 13, 2017. 1 changed file with 1 addition and 15 deletions.
    16 changes: 1 addition & 15 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,4 @@
    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs

    # Install rbenv
    cd
    git clone https://github.com/rbenv/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
    echo 'eval "$(rbenv init -)"' >> ~/.bashrc
    exec $SHELL

    git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
    exec $SHELL

    # installing rbenv
    rbenv install 2.3.0
    rbenv global 2.3.0
    ruby -v
  3. vincentlkl revised this gist Feb 13, 2017. 1 changed file with 0 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,3 @@
    sudo locale-gen en_US en_US.UTF-8
    sudo dpkg-reconfigure locales
    export LC_ALL="en_US.UTF-8"

    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs
  4. vincentlkl revised this gist Feb 13, 2017. 1 changed file with 13 additions and 21 deletions.
    34 changes: 13 additions & 21 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -4,36 +4,28 @@ export LC_ALL="en_US.UTF-8"

    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get -y upgrade
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx libreadline-dev rbenv
    sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs

    # Install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    cd
    git clone https://github.com/rbenv/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
    echo 'eval "$(rbenv init -)"' >> ~/.bashrc
    exec $SHELL

    # Add rbenv to the path:
    echo 'export RBENV_ROOT=~/.rbenv' >> ~/.bash_profile
    echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> ~/.bash_profile
    echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
    export PATH="$HOME/.rbenv/bin:$PATH"
    eval "$(rbenv init -)"
    source ~/.bash_profile
    git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
    exec $SHELL

    eval "$(rbenv init -)"

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

    # Install Ruby 2.1.5:
    ~/.rbenv/bin/rbenv install 2.1.5
    ~/.rbenv/bin/rbenv global 2.1.5
    rbenv install 2.3.0
    rbenv global 2.3.0
    ruby -v

    # Install bundler:
    gem install bundler

    # Rehash:
    ~/.rbenv/bin/rbenv rehash
    rbenv rehash

    # Install Phusion's PGP key to verify packages
    gpg --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7
  5. vincentlkl revised this gist Aug 18, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,8 @@ git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export RBENV_ROOT=~/.rbenv' >> ~/.bash_profile
    echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> ~/.bash_profile
    echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
    export PATH="$HOME/.rbenv/bin:$PATH"
    eval "$(rbenv init -)"
    source ~/.bash_profile

    eval "$(rbenv init -)"
  6. vincentlkl revised this gist Aug 18, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ export LC_ALL="en_US.UTF-8"
    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get -y upgrade
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx libreadline-dev
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx libreadline-dev rbenv

    # Install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
  7. vincentlkl revised this gist Aug 18, 2015. 1 changed file with 3 additions and 6 deletions.
    9 changes: 3 additions & 6 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,6 @@
    sudo localedef -i en_US -f UTF-8 en_US.UTF-8
    export LANGUAGE=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    locale-gen en_US.UTF-8
    sudo dpkg-reconfigure locales
    sudo locale-gen en_US en_US.UTF-8
    sudo dpkg-reconfigure locales
    export LC_ALL="en_US.UTF-8"

    # Update, upgrade and install development tools:
    sudo apt-get update
  8. vincentlkl revised this gist Aug 16, 2015. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,10 @@
    sudo localedef -i en_US -f UTF-8 en_US.UTF-8
    export LANGUAGE=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    locale-gen en_US.UTF-8
    sudo dpkg-reconfigure locales

    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get -y upgrade
  9. vincentlkl revised this gist Aug 16, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get -y upgrade
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx libreadline-dev

    # Install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
  10. vincentlkl revised this gist Jun 27, 2015. 1 changed file with 16 additions and 0 deletions.
    16 changes: 16 additions & 0 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -29,6 +29,22 @@ gem install bundler
    # Rehash:
    ~/.rbenv/bin/rbenv rehash

    # Install Phusion's PGP key to verify packages
    gpg --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7
    gpg --armor --export 561F9B9CAC40B2F7 | sudo apt-key add -

    # Add HTTPS support to APT
    sudo apt-get install apt-transport-https

    # Add the passenger repository
    sudo sh -c "echo 'deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main' >> /etc/apt/sources.list.d/passenger.list"
    sudo chown root: /etc/apt/sources.list.d/passenger.list
    sudo chmod 600 /etc/apt/sources.list.d/passenger.list
    sudo apt-get update

    # Install nginx and passenger
    sudo apt-get install nginx-full passenger

    # Restart nginx:
    sudo service nginx start

  11. vincentlkl revised this gist Jun 27, 2015. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -30,4 +30,7 @@ gem install bundler
    ~/.rbenv/bin/rbenv rehash

    # Restart nginx:
    sudo service nginx start
    sudo service nginx start

    # installing postgresql
    sudo apt-get install postgresql postgresql-contrib libpq-dev
  12. vincentlkl revised this gist Jun 19, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ git clone git://github.com/sstephenson/ruby-build.git
    cd ruby-build
    sudo ./install.sh

    # Install Ruby 2.0.0-p247:
    # Install Ruby 2.1.5:
    ~/.rbenv/bin/rbenv install 2.1.5
    ~/.rbenv/bin/rbenv global 2.1.5

  13. vincentlkl revised this gist Jun 19, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -20,8 +20,8 @@ cd ruby-build
    sudo ./install.sh

    # Install Ruby 2.0.0-p247:
    ~/.rbenv/bin/rbenv install 2.0.0-p451
    ~/.rbenv/bin/rbenv global 2.0.0-p451
    ~/.rbenv/bin/rbenv install 2.1.5
    ~/.rbenv/bin/rbenv global 2.1.5

    # Install bundler:
    gem install bundler
  14. @m-gagne m-gagne revised this gist Feb 27, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get -y upgrade
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx postgresql-9.1 libpq-dev
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx

    # Install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
  15. @m-gagne m-gagne revised this gist Feb 27, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get -y upgrade
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx postgresql-9.1 libpq-dev

    # Install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
  16. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get -y upgrade
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx mysql-server
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx

    # Install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
  17. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get -y upgrade
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx mysql
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx mysql-server

    # Install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
  18. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get -y upgrade
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx mysql

    # Install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
  19. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Update, upgrade and install development tools:
    sudo apt-get update
    sudo apt-get -y upgrade
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nginx
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx

    # Install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
  20. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -23,11 +23,11 @@ sudo ./install.sh
    ~/.rbenv/bin/rbenv install 2.0.0-p451
    ~/.rbenv/bin/rbenv global 2.0.0-p451

    # Rehash:
    ~/.rbenv/bin/rbenv rehash

    # Install bundler:
    gem install bundler

    # Rehash:
    ~/.rbenv/bin/rbenv rehash

    # Restart nginx:
    sudo service nginx start
  21. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -20,8 +20,8 @@ cd ruby-build
    sudo ./install.sh

    # Install Ruby 2.0.0-p247:
    ~/.rbenv/bin/rbenv install 2.0.0-p247
    ~/.rbenv/bin/rbenv global 2.0.0-p247
    ~/.rbenv/bin/rbenv install 2.0.0-p451
    ~/.rbenv/bin/rbenv global 2.0.0-p451

    # Rehash:
    ~/.rbenv/bin/rbenv rehash
  22. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ eval "$(rbenv init -)"
    # Install ruby-build:
    git clone git://github.com/sstephenson/ruby-build.git
    cd ruby-build
    ./install.sh
    sudo ./install.sh

    # Install Ruby 2.0.0-p247:
    ~/.rbenv/bin/rbenv install 2.0.0-p247
  23. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -12,17 +12,19 @@ echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> ~/.bash_profile
    echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
    source ~/.bash_profile

    eval "$(rbenv init -)"

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

    # Install Ruby 2.0.0-p247:
    rbenv install 2.0.0-p247
    rbenv global 2.0.0-p247
    ~/.rbenv/bin/rbenv install 2.0.0-p247
    ~/.rbenv/bin/rbenv global 2.0.0-p247

    # Rehash:
    rbenv rehash
    ~/.rbenv/bin/rbenv rehash

    # Install bundler:
    gem install bundler
  24. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -7,9 +7,9 @@ sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv

    # Add rbenv to the path:
    echo 'export RBENV_ROOT=~/.rbenv' >> .bash_profile
    echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> .bash_profile
    echo 'eval "$(rbenv init -)"' >> .bash_profile
    echo 'export RBENV_ROOT=~/.rbenv' >> ~/.bash_profile
    echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> ~/.bash_profile
    echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
    source ~/.bash_profile

    # Install ruby-build:
  25. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 3 additions and 9 deletions.
    12 changes: 3 additions & 9 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,7 @@
    # 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
    apt-get -y install
    apt-get -y libssl-dev
    apt-get -y libsqlite3-dev
    apt-get -y curl
    apt-get -y nginx
    sudo apt-get update
    sudo apt-get -y upgrade
    sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nginx

    # Install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
  26. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -28,4 +28,10 @@ rbenv install 2.0.0-p247
    rbenv global 2.0.0-p247

    # Rehash:
    rbenv rehash
    rbenv rehash

    # Install bundler:
    gem install bundler

    # Restart nginx:
    sudo service nginx start
  27. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 4 additions and 7 deletions.
    11 changes: 4 additions & 7 deletions rbenv-install.sh
    Original file line number Diff line number Diff line change
    @@ -13,13 +13,10 @@ apt-get -y nginx
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv

    # Add rbenv to the path:
    echo '# rbenv setup' > /etc/profile.d/rbenv.sh
    echo 'export RBENV_ROOT=~/.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
    source /etc/profile.d/rbenv.sh
    echo 'export RBENV_ROOT=~/.rbenv' >> .bash_profile
    echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> .bash_profile
    echo 'eval "$(rbenv init -)"' >> .bash_profile
    source ~/.bash_profile

    # Install ruby-build:
    git clone git://github.com/sstephenson/ruby-build.git
  28. azure provisioned user revised this gist Feb 26, 2014. 1 changed file with 0 additions and 0 deletions.
    Empty file modified rbenv-install.sh
    100644 → 100755
    Empty file.
  29. @m-gagne m-gagne renamed this gist Feb 26, 2014. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions rbenv-install-system-wide.sh → rbenv-install.sh
    100755 → 100644
    Original file line number Diff line number Diff line change
    @@ -10,11 +10,11 @@ apt-get -y curl
    apt-get -y nginx

    # Install rbenv
    git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.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 RBENV_ROOT=~/.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

    @@ -26,9 +26,9 @@ git clone git://github.com/sstephenson/ruby-build.git
    cd ruby-build
    ./install.sh

    # Install Ruby 1.9.2-p290:
    /usr/local/rbenv/bin/rbenv install 2.0.0-p247
    /usr/local/rbenv/bin/rbenv global 2.0.0-p247
    # Install Ruby 2.0.0-p247:
    rbenv install 2.0.0-p247
    rbenv global 2.0.0-p247

    # Rehash:
    /usr/local/rbenv/bin/rbenv rehash
    rbenv rehash
  30. @m-gagne m-gagne revised this gist Feb 26, 2014. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions rbenv-install-system-wide.sh
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,11 @@ apt-get update
    apt-get -y upgrade
    apt-get -y install build-essential
    apt-get -y install git-core
    apt-get -y install
    apt-get -y libssl-dev
    apt-get -y libsqlite3-dev
    apt-get -y curl
    apt-get -y nginx

    # Install rbenv
    git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv