oyuqqw
Last Updated: February 25, 2016
·
815
· tanvirraj

rails setup for mac 10.8

you must have install xcode and xcode commnand line tool

then hombrew The best package management system on Mac OS X for this

$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

then we need to install git (i know you have :P )

$ brew install git

then we need to rvm (ruby version menager)

$ \curl -L https://get.rvm.io | bash -s stable

add this line in your .bash_proflie or .bashrc file

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"'

reload it

. ~/.bash_profile

now we intall ruby 1.9.3

$ rvm install 1.9.3

$ rvm use 1.9.3 

now we install rails with specifying version

$ gem install rails -v 3.2.14

check your rails version

$ rails -v 

rails install sqlite databage so you don't need to install databage :)
happy coding :)

3 Responses
Add your response

10332

rvm install 1.9.3 gives me the following:

mohammads-mbp:~ azamsharp$ rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3-p448.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Warning: port definitions are more than two weeks old, consider using selfupdate
Error! ncursesw was replaced by ncurses a long time ago, please uninstall 'ncursesw',
for more details check http://comments.gmane.org/gmane.os.apple.macports.user/28039
Requirements installation failed with status: 1.

over 1 year ago ·
15066

free-internet:~ wifi$ ruby -v
warning: ignoring extraneous ruby-' prefix in versionruby-2.1.2'
(set by /Users/wifi/.ruby-version)

i keep getting that message

over 1 year ago ·
15067

free-internet:~ wifi$ ruby -v
warning: ignoring extraneous ruby-' prefix in versionruby-2.1.2'
(set by /Users/wifi/.ruby-version)

i keep getting that message

over 1 year ago ·