From: Ross Bamford Date: 2006-02-26T09:32:26+09:00 Subject: Re: [ANN] LibXML-Ruby 0.3.6 On Sun, 2006-02-26 at 08:04 +0900, Daniel Harple wrote: > On Feb 23, 2006, at 8:32 PM, Ross Bamford wrote: > > LibXML-Ruby 0.3.6 is now available from Rubyforge > > I am having some trouble with building. > > 1) I have two libiconvs installed, one supplied with my OS in > /usr and another in /opt/local. Using > --with-iconv-dir=/opt/local fails to locate libiconv, but > --with-iconv-dir=/usr works. I made a change to extconf.rb: > > $ diff libxml-ruby-0.3.6.orig/ext/xml/extconf.rb libxml-ruby-0.3.6/ > ext/xml/extconf.rb > 45,46c45,49 > < unless have_library('iconv','iconv_open') or have_library > ('c','iconv_open') or > < have_library('recode','iconv_open') > --- > > > > unless have_library('iconv') or > > have_library('iconv','iconv_open') or > > have_library('c','iconv_open') or > > have_library('recode','iconv_open') > > and --with-iconv-dir=/opt/local worked. > I'm not sure about this - I'm still finding my way around some things here, but I'm pretty sure we do need iconv_open(3) in libiconv. Does it compile with this change? I'm going to forward this as a possible change to the mailing list at libxml-devel@rubyforge.org . > 2) You call two shell commands, xml2-config and xslt-config. I > have two versions of libxml2 and libxslt installed, so this > command is dependent on the correct command being in my PATH > before the other one. I am not sure what to do about this > problem. If you are passing --with-xml2- settings, you should be fine to comment-out the lines that run those scripts (for both CFLAGS and LDFLAGS). If that works for you I'll fix it with a default to the dir_config and commit it. (I'm still finding new stuff in mkmf so if I'm missing anything, please let me know :)) -- Ross Bamford - rosco@roscopeco.REMOVE.co.uk