|Subject:||Can't compile in Solaris 5.8: Makefile.PL can't find libxml2 which IS installed|
I'm trying to install XML::LibXML from Activeperl 5.7.8's CPAN on Solaris 5.8. It failed with this mesage: (....) CPAN.pm: Going to build P/PH/PHISH/XML-LibXML-1.58.tar.gz enable native perl UTF8 looking for -lxml2... no looking for -llibxml2... no libxml2 not found Try setting LIBS and INC values on the command line Or get libxml2 fromIf you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are. Running make test Make had some problems, maybe interrupted? Won't test Running make install Make had some problems, maybe interrupted? Won't install --------------- Ok, so I sucessfully compiled libxml2 from source, using Sun's C compiler like this: (I'm installing libxml2 to /home4/thirdparty/software/libxml2/2.4.22/SunOS/5.8) CC=/opt/SUNWspro/bin/cc ./configure \ --prefix=/home4/thirdparty/software/libxml2/2.4.22/SunOS/5.8 make make install -------- Then I added /home4/thirdparty/software/libxml2/2.4.22/SunOS/5.8/bin to my PATH, so when I compiled XML::LibXML, libxml2 could be found, using these commands: cd /home4/thirdparty/software/activeperl/5.8.7/SunOS/5.8 cd .cpan/build/XML-LibXML-1.58 CC=/opt/SUNWspro/bin/cc \ /home4/thirdparty/software/activeperl/5.8.7/SunOS/5.8/bin/perl \ Makefile.PL \ LIBS='-L/home4/thirdparty/software/libxml2/2.6.7/SunOS/5.8/lib' \ INC='-I/home4/thirdparty/software/libxml2/2.6.7/SunOS/5.8/include' \ XMLPREFIX=/home4/thirdparty/software/libxml2/2.6.7/SunOS/5.8 ...but the same error message persists! libxml2 is still "not found"! Any advice to get around this? The checking for libxml2 seems to be buggy somehow. Yes, I've scoured the included README file for help. It seems like the version of libxml2 this has been tested against is 2.6.8, which is back from 2004. What about supporting/finding the latest version of libxml2, which is 2.6.24?