Mavericks comes with Ruby 2.0 out of the box but some of my Rails
apps are built using 1.9.3. Also, I use RVM because of its gemset
feature.
- Install Xcode. This can be found on the App Store. This isn't completely required but some packages on Homebrew require some components of it to install correctly.
- The Xcode Command Line Tools are also good to install. These can
either be installed by downloading them from the Apple Developer site or
from running
xcode-select --install. This will trigger a popup. Click on install and it will download & install the tools. - Install Homebrew -
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" - Run
brew doctorto check that Homebrew is installed correctly. It currently shows on mine that 10.9 is pre-release and not supported. - Because Mavericks, like Mountaion Lion, doesn't come with GCC 4.2,
it needs to be installed and linked to the correct place. Some packages
require it so it's best to install it now -
brew install apple-gcc42andsudo ln -s /usr/local/bin/gcc-4.2 /usr/bin/gcc-4.2 - Install RVM -
curl -L https://get.rvm.io | bash -s stable --autolibs=enabled - You may need to run
source $HOME/.rvm/scripts/rvmafter (replacing YOUR-USERNAME with the username of your machine) - To install Ruby 2.1.0 -
rvm install 2.1.0 - To install Ruby 2.0.0 -
rvm install 2.0.0 - To install Ruby 1.9.3 -
rvm install 1.9.3 - Set Ruby 2.0.0 as the default -
rvm use 2.0.0 --default - Install Rails & Bundler -
gem install rails bundler --no-ri --no-rdoc - Install Pow -
curl get.pow.cx | sh - (Optional) Install MySQL.
Thank you.Well it was nice post and very helpful information onRuby on Rails Online Course Hyderabad
ReplyDeleteI really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Ruby On Rails Training.
ReplyDeleteIt is nice blog Thank you provide important information and i am searching for same information to save my time Ruby on Rails Online Training
ReplyDeleteThanks for sharing this blog post,Nice written skill selenium Online Training Bangalore
ReplyDeleteThanks for sharing this article on ruby on rails course
ReplyDeleteThank you.Well it was nice post and very helpful information on ruby on rails online training
ReplyDeleteNice blog! Know about effective ruby on rails web development services provided by the experienced developers at RV.
ReplyDelete