Hi folks, I installed the ruby libxml bindings on my OSX dev machine with no problem, but I'm hitting a brick wall trying to get them onto our Debian Sarge test server.
I first tried a gem install: railstest:~# gem install libxml-ruby Building native extensions. This could take a while... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. The mkmf.log file indicated that it failed on a call to atan, presumably checking for libm. I have libm.so and libm.a in /usr/lib, and /usr/lib/libm.so links to /lib/libm.so.6. Next, I downloaded the tarball and tried compiling it myself. railstest:~/libxml-ruby-0.3.8.4/ext/xml# ruby extconf.rb checking for socket() in -lsocket... no checking for gethostbyname() in -lnsl... no checking for atan() in -lm... no checking for atan() in -lm... no extconf failure: need libm *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Looks like the same problem - can't find libm. I added a few debug statements to extconf.rb, and $LIBPATH does include /usr/lib. I've been trying --with-mlib=/usr/lib, --with-mlib=/usr/lib/libm.so, and so forth, but it doesn't make a dent - same error every time. I'm running ruby 1.8.4 and gcc 3. Our admin doesn't want to upgrade to gcc4, though if it's the only way to fix this, I think I can change her mind. ;-) Is this a gcc version issue? Any ideas will be most appreciated. _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel