Install Rails installer using this link:http://railsinstaller.org/en
You can follow these below steps for installation of Ruby ,Rails through terminal.
You can follow these below steps for installation of Ruby ,Rails through terminal.
1) Download Xcode from Apple Application Store :
use this link : xcode
2) Install xcode :
a)Use finder=>applications to locate "Xcode installation icon and double-click on it to begin the installation
b.) For xcode 4.3. After installing xcode, launch it, navigate to Xcode->Preferences, Downloads tab. Install Command Line Tools. This will download and install C, compiler, loader and other command line utilities needed to compile & build the Ruby packages.
If the above option is not showing in the window go to terminal and type xcode-select --install(this will install command line tools)
3) use a terminal to install git:
gem install git
and put this line in your .bash_profile (create one if none exists) :
export PATH=$PATH:/usr/local/git/bin/
4) use a terminal to install rvm:
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
and run this command to update your .bash_profile :
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
5) use a terminal to install ruby 2.0 and rails:
rvm autolibs enable
rvm install 2.0
rvm --default 2.0
gem update
gem install rails
6)Install Sublime IDE
No comments:
Post a Comment