Last active
May 2, 2016 19:57
-
-
Save briansalvattore/4e341d516bf1bc3a8734 to your computer and use it in GitHub Desktop.
Ruby environment
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
#Ruby | |
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 | |
cd | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile | |
source ~/.bash_profile | |
rbenv install -v 2.2.3 | |
rbenv global 2.2.3 | |
echo "gem: --no-document" > ~/.gemrc | |
gem install bundler | |
#Mysql | |
sudo apt-get install mysql-server mysql-client libmysqlclient-dev | |
gem install mysql2 | |
#For error pass | |
http://ubuntu.flowconsult.at/en/mysql-set-change-reset-root-password/ | |
#Sinatra | |
gem install sinatra | |
#For error port | |
http://stackoverflow.com/questions/9346211/how-to-kill-a-process-on-a-port-on-ubuntu | |
#For generate | |
https://github.com/bosko/rmre |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment