Skip to content

Instantly share code, notes, and snippets.

@franciscomxs
Last active October 9, 2015 17:58
Show Gist options
  • Save franciscomxs/3553076 to your computer and use it in GitHub Desktop.
Save franciscomxs/3553076 to your computer and use it in GitHub Desktop.
Instalação do Rails em redes restritas no Ubuntu 12.04
#!/usr/bin/env bash
sudo apt-get install build-essential zlib1g-dev curl git-core libgeoip-dev imagemagick vim libxslt-dev mysql-server mysql-client libmysql-ruby libmysqlclient-dev -y
cd
git clone https://github.com/sstephenson/rbenv.git .rbenv
cd .rbenv
mkdir plugins
cd plugins
git clone https://github.com/sstephenson/rbenv-vars.git
git clone https://github.com/sstephenson/ruby-build.git
git clone https://github.com/fesplugas/rbenv-installer.git
cd
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
rbenv rehash
rbenv bootstrap-ubuntu-12-04
rbenv install 1.9.3-p194
rbenv global 1.9.3-p194
rbenv rehash
ruby -v
gem install rails
sudo apt-get install build-essential zlib1g-dev curl git-core libgeoip-dev imagemagick vim libxslt-dev mysql-server mysql-client libmysql-ruby libmysqlclient-dev -y && cd && git clone https://github.com/sstephenson/rbenv.git .rbenv && cd .rbenv && mkdir plugins && cd plugins && git clone https://github.com/sstephenson/rbenv-vars.git && git clone https://github.com/sstephenson/ruby-build.git && git clone https://github.com/fesplugas/rbenv-installer.git && cd && echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc && echo 'eval "$(rbenv init -)"' >> ~/.bashrc && exec $SHELL && rbenv rehash && rbenv bootstrap-ubuntu-12-04 && rbenv install 1.9.3-p194 && rbenv rehash && rbenv global 1.9.3-p194 && rbenv rehash && gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment