Skip to content

Instantly share code, notes, and snippets.

@slayer
Created December 23, 2011 11:17

Revisions

  1. Vlad revised this gist Dec 23, 2011. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions rbenv-install-system-wide.sh
    Original file line number Diff line number Diff line change
    @@ -5,11 +5,11 @@ 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
    git clone git://github.com/sstephenson/rbenv.git /opt/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=/opt/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

    @@ -28,4 +28,4 @@ rbenv install 1.9.2-p290
    rbenv global 1.9.2-p290

    # Rehash:
    rbenv rehash
    rbenv rehash
  2. @fesplugas fesplugas revised this gist Sep 23, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rbenv-install-system-wide.sh
    Original 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
    /etc/profile.d/rbenv.sh
    source /etc/profile.d/rbenv.sh

    # Install ruby-build:
    pushd /tmp
  3. @fesplugas fesplugas revised this gist Sep 22, 2011. 3 changed files with 37 additions and 11 deletions.
    31 changes: 31 additions & 0 deletions rbenv-install-system-wide.sh
    Original 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
    11 changes: 6 additions & 5 deletions install-rbenv.sh → rbenv-install.sh
    Original 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

    # And now install rbenv
    # Install rbenv:
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv

    # Add rbenv to your path
    # 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
    # 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
    # Install Ruby 1.9.2-p290:
    rbenv install 1.9.2-p290
    rbenv global 1.9.2-p290

    # Rehash!
    # Rehash:
    rbenv rehash
    6 changes: 0 additions & 6 deletions rbenv-system-wide.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +0,0 @@
    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
  4. @fesplugas fesplugas revised this gist Sep 22, 2011. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions rbenv-system-wide.sh
    Original 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
  5. @fesplugas fesplugas revised this gist Sep 22, 2011. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions install-rbenv.sh
    Original 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
  6. @fesplugas fesplugas revised this gist Sep 22, 2011. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions install-rbenv.sh
    Original 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
    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
    exec
    source ~/.bash_profile

    # Install ruby-build
    pushd /tmp
  7. @fesplugas fesplugas created this gist Sep 22, 2011.
    21 changes: 21 additions & 0 deletions install-rbenv.sh
    Original 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