Skip to content

Instantly share code, notes, and snippets.

@albertogg
Forked from jnx/rbenv-install-system-wide.sh
Last active December 15, 2015 16:08
Show Gist options
  • Select an option

  • Save albertogg/5286601 to your computer and use it in GitHub Desktop.

Select an option

Save albertogg/5286601 to your computer and use it in GitHub Desktop.

Revisions

  1. albertogg renamed this gist Apr 1, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nginx-mysql.sh → nginx-mysql-imagemagick .sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    apt-get install mysql-server libmysql-ruby libmysqlclient-dev nginx
    apt-get install mysql-server libmysql-ruby libmysqlclient-dev nginx imagemagick ghostscript
  2. albertogg revised this gist Apr 1, 2013. 5 changed files with 9 additions and 11 deletions.
    1 change: 1 addition & 0 deletions .gemrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    echo "gem: --no-ri --no-rdoc" > ~/.gemrc
    2 changes: 1 addition & 1 deletion Prepare-ubuntu-for-ruby.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    # as root.
    # As root.
    apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison nodejs subversion
    1 change: 1 addition & 0 deletions nginx-mysql.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    apt-get install mysql-server libmysql-ruby libmysqlclient-dev nginx
    8 changes: 3 additions & 5 deletions rbenv-install.sh → rbenv-install-for-single-user.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,6 @@
    # 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
    @@ -19,9 +17,9 @@ pushd /tmp
    ./install.sh
    popd

    # Install Ruby 1.9.2-p290:
    rbenv install 1.9.2-p290
    rbenv global 1.9.2-p290
    # Install Ruby 1.9.3p327:
    rbenv install 1.9.3p327
    rbenv global 1.9.3p327

    # Rehash:
    rbenv rehash
    8 changes: 3 additions & 5 deletions rbenv-install-system-wide.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,6 @@
    # 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
    @@ -23,9 +21,9 @@ pushd /tmp
    ./install.sh
    popd

    # Install Ruby 1.9.2-p290:
    rbenv install 1.9.2-p290
    rbenv global 1.9.2-p290
    # Install Ruby 1.9.3p327:
    rbenv install 1.9.3p327
    rbenv global 1.9.3p327

    # Rehash:
    rbenv rehash
  3. albertogg renamed this gist Apr 1, 2013. 1 changed file with 0 additions and 0 deletions.
  4. albertogg revised this gist Apr 1, 2013. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Prepare ubuntu to install ruby.
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@
    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison nodejs subversion
    # as root.
    apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison nodejs subversion
  5. albertogg revised this gist Apr 1, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Prepare ubuntu to install ruby.
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison nodejs subversion
  6. @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
  7. @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
  8. @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
  9. @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
  10. @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
  11. @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