Updating to Ruby 1.8.6 on Mac OS X
Posted March 15th, 2007If you were one of those people who were out somewhere, happened to catch the news that Ruby 1.8.6 was released, rushed home, compiled it, installed it only to get a NSLinkModule() error when doing anything in your Rails apps then this is for you!I feel your pain. It had been so long since I installed 1.8.4 that I forgot the key ingredient! Here’s the trick:Your
./configure
command should be:
./configure --prefix=/usr/local --with-readline-dir=/usr/local --enable-pthread
I won’t get into what this does but in a nutshell, just ‘./configure’ doesn’t work because ruby can’t find the readline libs. So we just give it a nudge in the right direction.Anyway, hope this helps.







2 Comments
Tim on March 15, 2007
This has been up on hivelogic for a long time. http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx
erb on March 15, 2007
True, and those are the instructions I used for 1.8.5, but like I said, it had been a while so I couldn’t remember where I got the instructions from.
Besides, a search for ‘NSLinkModule error ruby 1.8.6′ didn’t yield much and people upgrading who forgot where the original tutorial was (who could that be?) and blew up their local rails apps probably would appreciate a hint.
Good catch though.
At least now a search on ‘NSLinkModule ruby 1.8.6′ will lead them here and then to Hivelogic.
I suppose I could’ve just linked to the Hivelogic tutorial, but I’m not that good at this whole blogging thing yet…
Thanks for the memory jog!