Last active
October 7, 2015 09:57
-
-
Save DavidToca/3146920 to your computer and use it in GitHub Desktop.
install from zero git rvm RoR on
This file contains hidden or 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
| #Curl, Git, things for compile, libs ssl, etc | |
| sudo apt-get install curl git-core build-essential libssl-dev libreadline5-dev | |
| #making sure all dependencies, and necesary package's | |
| sudo apt-get install bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake | |
| #mysql | |
| sudo apt-get install mysql-server libmysqlclient-dev | |
| # installing rvm | |
| curl -L https://get.rvm.io | bash -s stable --ruby | |
| #Reload shell configuration (also make sure you have it into your ~/.bashrc if you use bash, or ~/.zshrc for zsh, etc...) | |
| source ~/.rvm/scripts/rvm | |
| #installing ruby 1.9.3 | |
| rvm install 1.9.3 | |
| #gem are install with rvm | |
| #update system gems | |
| gem update --system | |
| #installing rails | |
| sudo gem install rails | |
| #all set, but here is some things i thing are very useful... | |
| #extra | |
| #adding extras IRB | |
| gem install wirble hirb | |
| #open or create ~/.irbrc | |
| add to ~/.irbrc this content https://gist.github.com/3146859 | |
| #generate rdocs (so we can use ri) | |
| rvm docs generate | |
| #installing oh-my-zsh | |
| #install zsh | |
| sudo apt-get install zsh | |
| #install oh-my-zsh | |
| curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh | |
| #add the following to ~/.zshrc | |
| source ~/.rvm/scripts/rvm | |
| #add sintaxys highlight in shell https://github.com/zsh-users/zsh-syntax-highlighting | |
| With oh-my-zsh | |
| #Download the script or clone this repository in oh-my-zsh plugins directory: | |
| cd ~/.oh-my-zsh/plugins/ | |
| git clone git://github.com/zsh-users/zsh-syntax-highlighting.git | |
| #Activate the plugin in ~/.zshrc (in last position): | |
| plugins=( [plugins...] zsh-syntax-highlighting) | |
| #Source ~/.zshrc to take changes into account: | |
| source ~/.zshrc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment