Skip to content

Instantly share code, notes, and snippets.

@pramoso
Forked from briansalvattore/ruby.bash
Last active May 2, 2016 20:08
Show Gist options
  • Save pramoso/762a70d82457369f87f920bc0a39f8b3 to your computer and use it in GitHub Desktop.
Save pramoso/762a70d82457369f87f920bc0a39f8b3 to your computer and use it in GitHub Desktop.
Ruby environment
#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 5.6
sudo apt-get update
sudo apt-get install mysql-client-5.6 mysql-client-core-5.6
sudo apt-get install mysql-server-5.6
sudo apt-get install 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