Last active
October 9, 2015 17:58
-
-
Save franciscomxs/3553076 to your computer and use it in GitHub Desktop.
Instalação do Rails em redes restritas no Ubuntu 12.04
This file contains 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 characters
#!/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 |
This file contains 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 characters
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