SETTING PATH ( RUBY)
The Ruby 1.8 installer for Mac OS X often leaves Ruby 1.6 the default. A lot of Mac users who are looking to play with Rails get bitten by this.
If typing ruby -v in Terminal.app tells you ‘ruby 1.6.8’ then you are having this problem. (Assuming you’ve installed Ruby 1.8—see GettingStartedWithRails)
If typing ruby -v in Terminal.app tells you ‘ruby 1.6.8’ then you are having this problem. (Assuming you’ve installed Ruby 1.8—see GettingStartedWithRails)
Assuming you use the bash shell, the easiest method to correct this is as follows:
Open a brand, spanking new Terminal.app window
echo $SHELL must read ”/bin/bash”
echo "" >> ~/.bash_profile
echo "export PATH=/usr/local/bin:\$PATH" >> ~/.bash_profile
chmod +x ~/.bash_profile
Close Terminal window and open a new one
Type ‘ruby -v’ to ensure you now have 1.8.2 working
For csh or tcsh:
Open a brand, spanking new Terminal.app window
echo $SHELL must read ”/bin/csh” or ”/bin/tcsh”
echo "" >> ~/.login
echo "setenv PATH /usr/local/bin:\$PATH" >> ~/.login
chmod +x ~/.login
Close Terminal window and open a new one
Type ‘ruby -v’ to ensure you now have 1.8.2 working
If you get into trouble, stop by the #rubyonrails irc channel.
No comments:
Post a Comment