In message <[EMAIL PROTECTED]>
"Nick Black" <[EMAIL PROTECTED]> wrote:
> Thanks for the replies.
>
> Tom: I have glibc-devel version 2.5 installed already.
>
> Todd: I have also tried passing a directory to extconf (
> --with-mlib=/lib/) but still no luck.
Looking at the output, that is wrong - it is passing what give there
to the compiler as an argument to -l and it is wrong to give a full
path there. You just want --with-mlib=m I think but that should be
the default anyway I would imagine.
What happens if you don't give a --with-mlib switch?
Tom
> On Jan 13, 2008 12:34 AM, Tom Hughes <[EMAIL PROTECTED]> wrote:
> > In message <[EMAIL PROTECTED]>
> > "Nick Black" <[EMAIL PROTECTED]> wrote:
> >
> > > I'm trying to build libxml-ruby on Fedora Core 6, but get the following
> > > errors:
> > >
> > > bash-3.1# ruby extconf.rb --with-zlib-dir=/usr/lib64/
> > > --with-zlib-include=/usr/include/bzlib.h --with-mlib=/lib/libm.so.6
> > > checking for socket() in -lsocket... no
> > > checking for gethostbyname() in -lnsl... no
> > > checking for atan() in -l/lib/libm.so.6... no
> > > checking for atan() in -l/lib/libm.so.6... 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.
> > >
> > >
> > > I've tried with all the different libm directories I can find using #
> > > locate libm (/lib /lib64 /usr/lib /usr/lib64)- but I keep getting this
> > > error. I guess this is a problem with some compiler flags, but don't
> > > really know where to start.
> >
> > Make sure you've got the glibc-devel package installed - that should
> > be all you need to build against libm on Fedora.
--
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel