2016-07-19 4 views
0

ActiveState Perl 버전 5.16.0에서 LibXML 설정에 어려움을 겪고 있습니다.ActiveState Perl 5.16.0에서 XML :: LibXML 설치 관련 문제. Windows에서

지금까지이 게시물 How can I install Lib::XML on ActiveState Perl 5.20?에서 instrutions 다음 : 나는 makefile.pl

를 실행할 수 있습니다

First, get the libxml2 binaries from http://xmlsoft.org/sources/win32/ (currently also available at http://www.zlatkovic.com/pub/libxml/). 

You need: 

iconv-VERSION.win32.zip 
libxml2-VERSION.win32.zip 
zlib-VERSION.win32.zip 
Download the latest version of each. (Each package will probably have a different version.) When you extract them, you'll get directories named iconv-VERSION.win32, libxml2-VERSION.win32, and zlib-VERSION.win32, each containing bin, lib, and include directories. 

Combine all the bin, include, and lib directories under c:\Prog\LibXML. (You can use any directory you prefer; just adjust the instructions accordingly.) 

Get the latest version of XML-LibXML from CPAN. Extract it. 

Issue these commands in the XML-LibXML-VERSION directory: 

perl Makefile.PL INC=-Ic:\Prog\LibXML\include LIBS=-Lc:\Prog\LibXML\lib 
dmake 
copy c:\Prog\LibXML\bin\*.dll blib\arch\auto\XML\LibXML 
dmake test 
dmake install 

그래서 나는 모든 패키지를 다운로드하고 모든게 잘 작동을하지만 지금하려고 할 때 dmake를 실행하면 다음 오류가 발생합니다.

Devel.o:Devel.c:(.text+0x985): undefined reference to `_imp__xmlMemStrdup' 
LibXML.o:LibXML.c:(.text+0x4374): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x4d5b): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x513c): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x52bb): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x5c23): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x5d13): more undefined references to `_imp__xmlFree' follow 
LibXML.o:LibXML.c:(.text+0xef7a): undefined reference to `_imp__xmlMalloc' 
LibXML.o:LibXML.c:(.text+0xefb6): undefined reference to `_imp__xmlMalloc' 
LibXML.o:LibXML.c:(.text+0xf042): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0xf053): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0xf907): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x10384): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x10399): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x106f9): more undefined references to `_imp__xmlFree' follow 
LibXML.o:LibXML.c:(.text+0x2a092): undefined reference to `_imp__xmlIsBaseCharGroup' 
LibXML.o:LibXML.c:(.text+0x2a171): undefined reference to `_imp__xmlIsDigitGroup' 
LibXML.o:LibXML.c:(.text+0x2a1d4): undefined reference to `_imp__xmlIsCombiningGroup' 
LibXML.o:LibXML.c:(.text+0x2a1ed): undefined reference to `_imp__xmlIsExtenderGroup' 
LibXML.o:LibXML.c:(.text+0x2a211): undefined reference to `_imp__xmlIsBaseCharGroup' 
LibXML.o:LibXML.c:(.text+0x2a374): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x2a4b7): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x2a60c): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x2a720): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x2a72a): undefined reference to `_imp__xmlFree' 
LibXML.o:LibXML.c:(.text+0x2a76f): more undefined references to `_imp__xmlFree' follow 
perl-libxml-mm.o:perl-libxml-mm.c:(.text+0x7fa): undefined reference to `_imp__xmlMalloc' 
perl-libxml-mm.o:perl-libxml-mm.c:(.text+0x831): undefined reference to `_imp__xmlMalloc' 
perl-libxml-mm.o:perl-libxml-mm.c:(.text+0x97d): undefined reference to `_imp__xmlFree' 
perl-libxml-mm.o:perl-libxml-mm.c:(.text+0xfa4): undefined reference to `_imp__xmlMalloc' 
perl-libxml-mm.o:perl-libxml-mm.c:(.text+0x1004): undefined reference to `_imp__xmlFree' 
perl-libxml-mm.o:perl-libxml-mm.c:(.text+0x168c): undefined reference to `_imp__xmlFree' 
perl-libxml-mm.o:perl-libxml-mm.c:(.text+0x16a5): undefined reference to `_imp__xmlFree' 
perl-libxml-mm.o:perl-libxml-mm.c:(.text+0x1795): undefined reference to `_imp__xmlFree' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x1a34): undefined reference to `_imp__xmlMalloc' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x1a65): undefined reference to `_imp__xmlMalloc' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x1aab): undefined reference to `_imp__xmlFree' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x1af4): undefined reference to `_imp__xmlFree' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x1b67): undefined reference to `_imp__xmlMalloc' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x1bf0): undefined reference to `_imp__xmlMalloc' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x1d04): undefined reference to `_imp__xmlFree' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x271a): undefined reference to `_imp__xmlFree' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x272f): undefined reference to `_imp__xmlFree' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x2839): undefined reference to `_imp__xmlFree' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x2847): undefined reference to `_imp__xmlFree' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x28e1): more undefined references to `_imp__xmlFree' follow 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x5ce5): undefined reference to `_imp__xmlMalloc' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x5d94): undefined reference to `_imp__xmlMalloc' 
perl-libxml-sax.o:perl-libxml-sax.c:(.text+0x5efc): undefined reference to `_imp__xmlFree' 
xpath.o:xpath.c:(.text+0x260): undefined reference to `_imp__xmlFree' 
xpath.o:xpath.c:(.text+0x2ab): undefined reference to `_imp__xmlFree' 
xpath.o:xpath.c:(.text+0x3e7): undefined reference to `_imp__xmlFree' 
collect2.exe: error: ld returned 1 exit status 
dmake.exe: Error code 129, while making 'blib\arch\auto\XML\LibXML\LibXML.dll' 

누구든지이 문제를 해결하는 방법을 알고 있습니까? 어떤 도움이라도 대단히 감사합니다!

감사합니다.

+0

당신은 프록시 아래 위치 :

set http_proxy=http://xxx.xxx.xxx.x:yyyy (xxx is your system proxy and yyyy is port) set http_proxy_user=username (system login username) set http_proxy_pass=password (login password) 

은 CPAN 유형에서 모듈을 설치하려면? 어떻게 설치하고 있습니까? – serenesat

+1

경험 : 그것은 엄청난 고통이지만, 딸기 펄에 번들되었습니다. 그래서 내가 전환했다. – Sobrique

+0

'makefile.pl'을 실행할 수 있습니다. 어떻게 실행했는지 보여줍니다. 당신이 prereqs에 대한 다양한 바이너리를 결합하는 방법을 보여줍니다. 더 많은 정보가 필요합니다 –

답변

0

프록시를 사용한다고 말했던 것처럼. Go with this :

이 명령을 사용하여 ppm 또는 cpan에서 모듈을 설치할 수 있습니다.

열기

명령 프롬프트를 실행 다음 명령 :

cpan install modulename 
+0

시도해 보았지만 xml2 또는 libxml2를 찾지 못했습니다. xml2 ... no에 링크 할 수 있는지 확인합니다. libxml2 ... libxml2, zlib 및/또는 Math 라이브러리 (-lm)에 대한 링크 기능 검사 찾지 못했습니다. – user6608600

+0

그리고 ppm으로 시도해도 "누락 된 패키지 없음" – user6608600