I'm unable to install XML::LIbXML either via CPAN or by compiling the source
directly. 
 
I'm running WXP Home, cygwin, and WebServe (ActivePerl). Perl version 5.8.7.

 
When I try to compile/install it tells me it can't find -lxml2 and
-llibxml2. I have installed both of these ( c libraries ) in my cygwin
installation and tried passing the path to them on the command line with
LIBS='-l/cygdrive/c/cygwin/lib' and LIBS='c:\cygwin\lib'
 
CPAN: 

cpan> install XML::LibXML
Running install for module XML::LibXML
Running make for P/PH/PHISH/XML-LibXML-1.58.tar.gz
  Is already unwrapped into directory \.cpan\build\XML-LibXML-1.58
  Makefile.PL returned status 512
Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won't install
 
...when I pass along the path to the LIBS like this: 

cpan> install XML::LibXML  LIBS='-l/cygdrive/c/cygwin/lib'
It still fails but it invokes ncftp and goes off somewhere and gets lost:
 

Guest login ok, access restrictions apply.
Logging in...
Logged in to  <http://archive.progeny.com/> archive.progeny.com.
 
Could not chdir to L: server said: L: No such file or directory.
Current remote directory is /CPAN/authors/id/L.
ncftp /CPAN/authors/id/L > quit

 
When trying to compile from the cygwin command line:
 

Ed <mailto:[EMAIL PROTECTED]> @Xeric cd /cygdrive/d/src/perl/XML-LibXML-1.58
$ perl Makefile.PL
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 from
   <http://xmlsoft.org/> http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.
 
Ed <mailto:[EMAIL PROTECTED]> @Xeric cd /cygdrive/d/src/perl/XML-LibXML-1.58
$ perl Makefile.PL LIBS='-l/cygdrive/c/cygwin/lib/'
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 from
   <http://xmlsoft.org/> http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.

In each case it seems the compile is failing because the compile process
can't find the libxml2 library. I'm unfamiliar with perl compiles, so I may
be issuing the library path directive incorrectly. 
 
Please advise. 
 
Thanks in advance. 

Reply via email to