This post originated from an RSS feed registered with Agile Buzz
by Jared Richardson.
Original Post: Compiling Ruby extentsions on Solaris
Feed Title: Jared's Weblog
Feed URL: http://www.jaredrichardson.net/blog/index.rss
Feed Description: Jared's weblog.
The web site was created after the launch of the book "Ship It!" and discusses issues from Continuous Integration to web hosting providers.
I'm just passing along a tip that I had to dig out myself. This makes it easier for me to find as well. :)
When you're coding a C extension for Ruby, and you use mkmf to create your Ruby Makefile on a Solaris box, the install will fail (or at least, mine did). The compile step worked fine, but "make install" failed oddly.
Add these two bits to your generated Makefile.
-lsocket -lnsl.
I added it after -lingres and the installed worked perfectly.
I'd love to give someone credit for the tip, but I found it on Google (or was it Yahoo?) late one night and I can't find the post again. :(