Wie kann ich die Installation von XML::LibXML auf Ubuntu
Hier ist die Standardausgabe, die für die Installation:
$sudo cpanm XML::LibXML
--> Working on XML::LibXML
Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0014.tar.gz ... OK
Configuring XML-LibXML-2.0014 ... N/A
! Configure failed for XML-LibXML-2.0014. See /home/kahmed/.cpanm/build.log for details.
details:
Unpacking XML-LibXML-2.0014.tar.gz
Entering XML-LibXML-2.0014
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.55_02)
Configuring XML-LibXML-2.0014
Running Makefile.PL
enable native perl UTF8
running xml2-config...ok (2.9.0)
Checking for ability to link against xml2...no
Checking for ability to link against libxml2...libxml2, zlib, and/or the Math library (-lm) have not been 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.
-> N/A
-> FAIL Configure failed for XML-LibXML-2.0014. See /home/kahmed/.cpanm/build.log for details.
ich habe versucht die Installation von libxml2 manuell, aber noch immer das gleiche Problem.
auch, ich habe für libxml2-dev:
sudo apt-get install libxml2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxml2-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 78 not upgraded.
ist hier die system info:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
uname-a
Linux autobot-2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
InformationsquelleAutor der Frage kamal | 2012-12-20
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ich denke, dass die relevante Zeile ist:
So, Sie haben bedeckt, ab libxml. Haben Sie installiert die entsprechende zlib-Paket? Versuchen:
Versuchen Sie dann die Installation von XML::LibXML wieder.
InformationsquelleAutor der Antwort oalders
Warum wollen Sie verwenden, CPAN für diese überhaupt? Es ist in der Regel sehr schlechte Idee zum installieren von CPAN-Pakete, wenn Sie native-Pakete, die von standard-operating system installer.
Ubuntu bietet eine Menge von Perl-Pakete nativ, mit folgender Namenskonvention: package-name beginnt immer mit
lib
dann " Perl package-name wieXML::LibXML
ist, der in Kleinbuchstaben konvertiert und::
ersetzt dash-
(XML::LibXML
=>xml-libxml
), und schließlich-perl
suffix Hinzugefügt wird. In anderen Worten, native package-Namen fürXML::LibXML
wärelibxml-libxml-perl
.So, in deinem Fall, einfach diesen Befehl ausführen, und ziehen Sie alle notwendigen Abhängigkeiten automatisch:
Wenn Sie nicht wie dieses Paket aus irgendeinem Grund können Sie es deinstallieren mit
sudo apt-get remove
. Wenn Sie verwenden, CPAN, ist es sehr schwierig, um es zu deinstallieren zuverlässig.InformationsquelleAutor der Antwort mvp
Übersehen das offensichtliche:
dann:
funktioniert!
InformationsquelleAutor der Antwort kamal
Vielleicht ist das der neuen version. Ich habe:
Nachdem dieses Modul gebaut und installiert erfolgreich
InformationsquelleAutor der Antwort Eugen Konkov