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
Me too. I have the 'dyld: DYLD_ environment variables being ignored' message.
After checking I found out that all executable in /usr/bin and /usr/local/bin which rws are sending the same message. I tried to clean (purge) dyld cache but nothing changed.