1. Check Apache and Mysql existed in your machine.
- Type http://localhost or http://127.0.0.1 on your browser to check apache running.
- Check /var/www/ directory.
- In /var/www/index.html type <?php phpinfo(); ?> , then type http://localhost or http://127.0.0.1 on your browser. If apache installation in your machine already correct, your browser will load PHP informations installed on your machine
-
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer
)
source ~/.bash_profile
.N
ote : This command is for reload opened terminal.- rvm requirements
. Note : This command is for searching all libs that still needed, and then install the lib.
rvm install 1.9.3
4.Install another version of ruby with this method.
5. To view all installed RVM
rvm list
6.To use specifics RVM
rvm use 1.9.3
7.
If there is an error when running rvm use 1.9.3
try
open file ~/.bashrc
and ~/.bash_profile
and then add this script :[[
-s "$HOME/.rvm/scripts/rvm" ]] && source
"$HOME/.rvm/scripts/rvm" # Load RVM into a shell
session
8. To use Specifics Gemset
rvm use 1.9.3
rvm gemset use rails3.2
rvm use 1.9.3@rails3.2
9. Set Default RVM
rvm use 1.9.3@rails3.2 --default