Skip to content

Instantly share code, notes, and snippets.

@ktham
Created February 18, 2012 01:57
Show Gist options
  • Save ktham/1856859 to your computer and use it in GitHub Desktop.
Save ktham/1856859 to your computer and use it in GitHub Desktop.
Rails Installation (OS X Lion)
# 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!
@johnwake
Copy link

This Soved my problem... Thanks a lot for writing this!

@ktham
Copy link
Author

ktham commented Dec 19, 2012

Didn't see your comment until 3 months later haha, but sure, np!!

@ozbillwang
Copy link

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.

https://gist.github.com/ozbillwang/e85a4e49a0cffd2c7cb1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment