Trying to make my Ruby environment happy under OS X 10.8 Mountain Lion
A few notes. I had:
- installed XCode 2.4 Preview as well as its command line tools (which are found separately in Preferences -> Downloads)
- updated rvm (
rvm get latest
)
and my issue was:
- system ruby installed every gem with native extensions I threw at it
- under rvm, MRI 1.8.7 & 1.9.2 both failed to install nokogiri & gherkin
- rvm failed to upgrade MRI 1.8.7
Update: Just tried this after reading this failure, and now both gems install fine under rvm's 1.8.7 (nokogiri still fails under rvm 1.9.2). Presumably, Apple upgraded /usr/bin/gcc, obviating the separate binary with the version name:
$ sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
As a result, I opened this issue on rvm.
Update 2: Earlier, while fighting this issue I had used brew link libxml2 libxslt
; when I went back and ran brew unlink libxml2 libxslt
, then nokogiri finally installed using rvm 1.9.2
*dyld: DYLD environment variables being ignored... *_ is due to the
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/
you probably have in your bash profile from way back when you installed MySQL (or some other package that requires it). While the condition isn't new to 10.8, the warning IS. While it can be ignored for now, it IS extremely annoying, as it appears (and is logged) every time you try to access certain files (usually in /usr/bin and /usr/local/bin).A bug report has been filed with Apple, and an OpenRadar report can be seen here: http://openradar.appspot.com/11894054