Unfortunately, the installation process is very segmented, and it is difficult to isolate what might be your problem without looking at your steps in general.
Without knowing more about your installation steps, here are a few notes that I followed and I got a stable version of Rails Mountain Lion (again, apologies for not being more specific).
Instructions for RVM, Ruby: moncefbelyamani.com
Note. Here were certain steps that I took with suggestions from brew doctor and 'rvm requirements' , which I NEVER used in previous settings.
Notes:
- Xcode 4.3+ uses only ruby-1.9.3-p125 + (and tell you if I have problems compiling to upgrade to Xcode 4.1)
- Using
brew install autoconf automake apple-gcc42 - Using
brew tap homebrew/dupes - And others...
Rails Special Instructions: railsapps.github.com
- For mysql (go to mysql install part: coolestguyplanettech.com
Note. I took an optional step: ... to use mysql commands without entering the full path to the commands you need to add to the mysql directory in my shell path ... since I found this could help during build and so .d. (some scenarios suggest ...)
Here, I tried to simply create a new rails application with the default database being mysql (which knocked out mysql2 via bundler). From there - I tried to make a test application with a quick scaffold - and mysql2 barfed.
From there, I find the error "The library is not loaded: libmysqlclient.16.dylib" and, as indicated here: https://stackoverflow.com/a/166269/2322/2000/2000.jpg I added this line to my .profile: export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
MY PATH explicitly contains rails and rubies: /Users/gabriel/.rvm/gems/ ruby-1.9.3-p194@rails327 /bin:/Users/gabriel/.rvm/gems/ ruby-1.9.3-p194@global /bin:/Users/gabriel/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/gabriel/.rvm/bin:/usr/local/mysql/bin:/usr/local/bin:/usr/bin:/usr/sbin:/opt/X11/bin:
We hope these resources provide additional help.
Gabriel
source share