以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML基础 』  (http://bbs.xml.org.cn/list.asp?boardid=1)
----  有用过XML::LibXML的吗,请教怎么在perl中安装这个模块  (http://bbs.xml.org.cn/dispbbs.asp?boardid=1&rootid=&id=79237)


--  作者:sydghyyh14
--  发布时间:12/21/2009 4:59:00 PM

--  有用过XML::LibXML的吗,请教怎么在perl中安装这个模块
我的操作系统是windows
perl 的版本是v5.10.0

libxml2下载:iconv-VERSION.win32.zip,libxml2-VERSION.win32.zip,zlib-VERSION.win32.zip,分别解压,将三个目录下的bin,lib和include文件夹下的内容分别拷到 C:\Prog\LibXML下的bin,lib,include文件夹中

D:\perl-code\XML\libxml2\XML-LibXML-1.70>perl Makefile.Pl INC=‘-Id:\Prog\LibXML\i
nclude’ LIBS=‘-Ld:\Prog\LibXML\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/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.

Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
to see the exact reason why the detection of libxml2 installation
failed or why Makefile.PL was not able to compile a test program.


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
7,527.344ms