Created
February 18, 2012 01:57
-
-
Save ktham/1856859 to your computer and use it in GitHub Desktop.
Rails Installation (OS X Lion)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure xCode 4.3 is installed first!!! | |
# Command line tools no longer come bundled with xCode, install it by going to: | |
preferences -> downloads -> command line tools | |
# Install RVM | |
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
# Then restart terminal | |
# Install Ruby 1.9.3 through RVM (need to specify clang compiler) | |
rvm install 1.9.3 --with-gcc=clang | |
# Switch from System's Ruby config to our desired Ruby config (and associated gems) | |
rvm use 1.9.3 | |
# Install latest sqlite3 on this config | |
gem install sqlite3 | |
# Install Rails on this config | |
sudo gem install rails | |
# Make a test app | |
rails new testapp | |
# If everything works, you're good to go! |
Didn't see your comment until 3 months later haha, but sure, np!!
It fixed my issue as well when run "bundle install" and got the error ""libxml2 is missing" . Thanks a lot.
I update it with my version for newer OS x version and ruby version.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This Soved my problem... Thanks a lot for writing this!