Hi all,
I would like to install XML::LibXML to a Solaris 9 machine but got some error messages. Anyone know how to fix it? Thanks!
root@bill02 # perl ./Makefile.PL LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lm' INC='-I/usr/local/include -I/usr/include -I/usr/local/include/libxml2/libxml'
enable native perl UTF8
looking for -lxml2... yes
Writing Makefile for XML::LibXML
root@bill02 # make
cc -c -I/usr/local/include -I/usr/include -I/usr/local/include/libxml2/libxml -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION=\"1.66\" -DXS_VERSION=\"1.66\" -KPIC -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DHAVE_UTF8 -DHAVE_BLANK Av_CharPtrPtr.c
cc -c -I/usr/local/include -I/usr/include -I/usr/local/include/libxml2/libxml -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION=\"1.66\" -DXS_VERSION=\"1.66\" -KPIC -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DHAVE_UTF8 -DHAVE_BLANK LibXML.c
"LibXML.xs", line 21: cannot find include file: <libxml/xmlversion.h>
"LibXML.xs", line 26: cannot find include file: <libxml/xmlversion.h>
"LibXML.xs", line 27: cannot find include file: <libxml/globals.h>
"LibXML.xs", line 28: cannot find include file: <libxml/xmlmemory.h>
"LibXML.xs", line 29: cannot find include file: <libxml/parser.h>
"LibXML.xs", line 30: cannot find include file: <libxml/parserInternals.h>
"LibXML.xs", line 31: cannot find include file: <libxml/HTMLparser.h>
"LibXML.xs", line 32: cannot find include file: <libxml/HTMLtree.h>
"LibXML.xs", line 33: cannot find include file: <libxml/c14n.h>
"LibXML.xs", line 34: cannot find include file: <libxml/tree.h>
"LibXML.xs", line 35: cannot find include file: <libxml/xpath.h>
"LibXML.xs", line 36: cannot find include file: <libxml/xpathInternals.h>
"LibXML.xs", line 37: cannot find include file: <libxml/xmlIO.h>
"LibXML.xs", line 37: fatal: too many errors
cc: acomp failed for LibXML.c
*** Error code 2
make: Fatal error: Command failed for target `LibXML.o'
root@bill02 # pwd
/tmp/perl/XML-LibXML-1.66
root@bill02 #
tikual
I would like to install XML::LibXML to a Solaris 9 machine but got some error messages. Anyone know how to fix it? Thanks!
root@bill02 # perl ./Makefile.PL LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lm' INC='-I/usr/local/include -I/usr/include -I/usr/local/include/libxml2/libxml'
enable native perl UTF8
looking for -lxml2... yes
Writing Makefile for XML::LibXML
root@bill02 # make
cc -c -I/usr/local/include -I/usr/include -I/usr/local/include/libxml2/libxml -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION=\"1.66\" -DXS_VERSION=\"1.66\" -KPIC -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DHAVE_UTF8 -DHAVE_BLANK Av_CharPtrPtr.c
cc -c -I/usr/local/include -I/usr/include -I/usr/local/include/libxml2/libxml -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION=\"1.66\" -DXS_VERSION=\"1.66\" -KPIC -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DHAVE_UTF8 -DHAVE_BLANK LibXML.c
"LibXML.xs", line 21: cannot find include file: <libxml/xmlversion.h>
"LibXML.xs", line 26: cannot find include file: <libxml/xmlversion.h>
"LibXML.xs", line 27: cannot find include file: <libxml/globals.h>
"LibXML.xs", line 28: cannot find include file: <libxml/xmlmemory.h>
"LibXML.xs", line 29: cannot find include file: <libxml/parser.h>
"LibXML.xs", line 30: cannot find include file: <libxml/parserInternals.h>
"LibXML.xs", line 31: cannot find include file: <libxml/HTMLparser.h>
"LibXML.xs", line 32: cannot find include file: <libxml/HTMLtree.h>
"LibXML.xs", line 33: cannot find include file: <libxml/c14n.h>
"LibXML.xs", line 34: cannot find include file: <libxml/tree.h>
"LibXML.xs", line 35: cannot find include file: <libxml/xpath.h>
"LibXML.xs", line 36: cannot find include file: <libxml/xpathInternals.h>
"LibXML.xs", line 37: cannot find include file: <libxml/xmlIO.h>
"LibXML.xs", line 37: fatal: too many errors
cc: acomp failed for LibXML.c
*** Error code 2
make: Fatal error: Command failed for target `LibXML.o'
root@bill02 # pwd
/tmp/perl/XML-LibXML-1.66
root@bill02 #
tikual