From: Mike Dalessio Date: 2010-05-01T07:34:58+09:00 Subject: Re: installing a ruby gem with a native extension --00163630e9b13e6b7104857bda23 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Apr 30, 2010 at 2:45 PM, aj wrote: > On Apr 29, 9:43 pm, Luis Lavena wrote: > > On Apr 29, 7:56 pm, aj wrote: > > > > > I am new to ruby. I want to install a ruby gem which tries to build a > > > native extension. The gem in this case is nokogiri. If I do gem > > > install nokogiri, the native extension dynamically links against > > > libxml, libxslt libs. I want to statically link against those libs. > > > How should I go about this? > > > I am running it on a RHEL 3 machine. > > Perhaps you're trying to solve the wrong problem? If you install alternative (to the system-installed) libxml2 and libxslt shared libraries, it's very easy to tell Nokogiri to use those libraries to dynamically link -- see http://nokogiri.org/tutorials/installing_nokogiri.html for details (and a RHEL example). IMHO that's easier than trying to hack the extconf.rb to link statically. --00163630e9b13e6b7104857bda23--