Sudo gem install mysql2 -with-mysql-config=/opt/local/lib/mysql55/bin/mysql_config This is normal, just restart your mac and try again. Install Xcode from the Mac App Store (v4.6.3)Ī) Install command line tools: Xcode > Preferences > Downloads > Command Line Tools (Install)ĭownload and install Railsinstaller from Ī) There will be an error the first time you try. This causes problems when installing the gems (such as mysql2) as the location of the new ruby installation is not in the same location as the native ruby on OS X. In order to install rails (as will be shown below), an newer version of ruby must be installed. Hence installing Rails by itself is not ordinarily possible. The version of ruby that comes preinstalled on OS X 10.8 is outdated relative to the version of Rails that has to be installed. I will first break down all the issues that have caused me problems A long, hard and uneasy process for pretty much everyone on a new mac (as of today).Īfter about 10-15 different methods, a couple of complete re-installations of Mac OS, I have finally been able to pinpoint exactly what it takes to get Rails fully up and running on the Mac.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |