Monkey123 has asked for the wisdom of the Perl Monks concerning the following question:

While installing the cpan module XML::LibXSLT using the following install command. I am getting some errors. Please see the command and its output below. Please help.

cpan[1]> install XML::LibXSLT INC="-I/usr/include/" LIBS="-L/usr/lib + -lxslt -lxml2 -lz -liconv -lm" Reading '/home/krishnendu.saha/.cpan/Metadata' Database was generated on Tue, 19 Nov 2013 11:53:02 GMT Running install for module 'XML::LibXSLT' Running make for S/SH/SHLOMIF/XML-LibXSLT-1.82.tar.gz Checksum for /home/krishnendu.saha/.cpan/sources/authors/id/S/SH/SHLOM +IF/XML-LibXSLT-1.82.tar.gz ok Scanning cache /home/krishnendu.saha/.cpan/build for sizes ...................................................................... +......DONE CPAN.pm: Building S/SH/SHLOMIF/XML-LibXSLT-1.82.tar.gz running xslt-config... ok looking for -lxslt... no libxslt not found Try setting LIBS and INC values on the command line Or get libxslt and libxml2 from http://www.libxml.org/ If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are. No 'Makefile' created'YAML' not installed, will not store persistent s +tate SHLOMIF/XML-LibXSLT-1.82.tar.gz /usr/bin/perl Makefile.PL PREFIX=/opt/perl/ -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Running make for I/I//I/IN/INC=-I/usr/include/ Fetching with LWP: http://mirror.tje.me.uk/pub/mirrors/ftp.cpan.org/authors/id/I/I//I/IN/ +INC=-I/usr/include/ Fetching with LWP: http://mirror.tje.me.uk/pub/mirrors/ftp.cpan.org/authors/id/I/I//I/IN/ +INC=-I/usr/include/.gz Trying with /usr/bin/wget -O "/home/krishnendu.saha/.cpan/sources/authors/id/I +/I/I/IN/INC=-I/usr/include.tmp4256" to get http://mirror.tje.me.uk/pub/mirrors/ftp.cpan.org/authors/id/I/I//I +/IN/INC=-I/usr/include/ --2013-11-20 13:40:52-- http://mirror.tje.me.uk/pub/mirrors/ftp.cpan. +org/authors/id/I/I//I/IN/INC=-I/usr/include/ Resolving mirror.tje.me.uk (mirror.tje.me.uk)... 195.242.156.174 Connecting to mirror.tje.me.uk (mirror.tje.me.uk)|195.242.156.174|:80. +.. connected. HTTP request sent, awaiting response... 404 Not Found 2013-11-20 13:40:55 ERROR 404: Not Found. Function system("/usr/bin/wget -O "/home/krishnendu.saha/.cpan/sou +rces/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256" "http://mirror.t +je.me.uk/pub/mirrors/ftp.cpan.org/authors/id/I/I//I/IN/INC=-I/usr/inc +lude/" ") returned status 8 (wstat 2048), left /home/krishnendu.saha/.cpan/sources/authors/id/I/I/I/IN/INC=-I/usr/inc +lude.tmp4256 with size 0 Warning: no success downloading '/home/krishnendu.saha/.cpan/sourc +es/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256'. Giving up on it. Fetching with LWP: http://cpan.cpantesters.org/authors/id/I/I//I/IN/INC=-I/usr/include/ Fetching with LWP: http://cpan.cpantesters.org/authors/id/I/I//I/IN/INC=-I/usr/include/.g +z Trying with /usr/bin/wget -O "/home/krishnendu.saha/.cpan/sources/authors/id/I +/I/I/IN/INC=-I/usr/include.tmp4256" to get http://cpan.cpantesters.org/authors/id/I/I//I/IN/INC=-I/usr/includ +e/ --2013-11-20 13:40:57-- http://cpan.cpantesters.org/authors/id/I/I//I +/IN/INC=-I/usr/include/ Resolving cpan.cpantesters.org (cpan.cpantesters.org)... 5.153.225.226 Connecting to cpan.cpantesters.org (cpan.cpantesters.org)|5.153.225.22 +6|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2013-11-20 13:40:58 ERROR 404: Not Found. Function system("/usr/bin/wget -O "/home/krishnendu.saha/.cpan/sou +rces/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256" "http://cpan.cpa +ntesters.org/authors/id/I/I//I/IN/INC=-I/usr/include/" ") returned status 8 (wstat 2048), left /home/krishnendu.saha/.cpan/sources/authors/id/I/I/I/IN/INC=-I/usr/inc +lude.tmp4256 with size 0 Warning: no success downloading '/home/krishnendu.saha/.cpan/sourc +es/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256'. Giving up on it. Fetching with LWP: http://ftp.u-tx.net/CPAN/authors/id/I/I//I/IN/INC=-I/usr/include/ Fetching with LWP: http://ftp.u-tx.net/CPAN/authors/id/I/I//I/IN/INC=-I/usr/include/.gz Trying with /usr/bin/wget -O "/home/krishnendu.saha/.cpan/sources/authors/id/I +/I/I/IN/INC=-I/usr/include.tmp4256" to get http://ftp.u-tx.net/CPAN/authors/id/I/I//I/IN/INC=-I/usr/include/ --2013-11-20 13:41:00-- http://ftp.u-tx.net/CPAN/authors/id/I/I//I/IN +/INC=-I/usr/include/ Resolving ftp.u-tx.net (ftp.u-tx.net)... 78.46.93.242 Connecting to ftp.u-tx.net (ftp.u-tx.net)|78.46.93.242|:80... connecte +d. HTTP request sent, awaiting response... 404 Not Found 2013-11-20 13:41:01 ERROR 404: Not Found. Function system("/usr/bin/wget -O "/home/krishnendu.saha/.cpan/sou +rces/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256" "http://ftp.u-tx +.net/CPAN/authors/id/I/I//I/IN/INC=-I/usr/include/" ") returned status 8 (wstat 2048), left /home/krishnendu.saha/.cpan/sources/authors/id/I/I/I/IN/INC=-I/usr/inc +lude.tmp4256 with size 0 Warning: no success downloading '/home/krishnendu.saha/.cpan/sourc +es/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256'. Giving up on it. Trying with /usr/bin/wget -O "/home/krishnendu.saha/.cpan/sources/authors/id/I +/I/I/IN/INC=-I/usr/include.tmp4256" to get http://mirror.tje.me.uk/pub/mirrors/ftp.cpan.org/authors/id/I/I//I +/IN/INC=-I/usr/include/ --2013-11-20 13:41:02-- http://mirror.tje.me.uk/pub/mirrors/ftp.cpan. +org/authors/id/I/I//I/IN/INC=-I/usr/include/ Resolving mirror.tje.me.uk (mirror.tje.me.uk)... 195.242.156.174 Connecting to mirror.tje.me.uk (mirror.tje.me.uk)|195.242.156.174|:80. +.. connected. HTTP request sent, awaiting response... 404 Not Found 2013-11-20 13:41:03 ERROR 404: Not Found. Function system("/usr/bin/wget -O "/home/krishnendu.saha/.cpan/sou +rces/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256" "http://mirror.t +je.me.uk/pub/mirrors/ftp.cpan.org/authors/id/I/I//I/IN/INC=-I/usr/inc +lude/" ") returned status 8 (wstat 2048), left /home/krishnendu.saha/.cpan/sources/authors/id/I/I/I/IN/INC=-I/usr/inc +lude.tmp4256 with size 0 Trying with /usr/bin/wget -O "/home/krishnendu.saha/.cpan/sources/authors/id/I +/I/I/IN/INC=-I/usr/include.tmp4256" to get http://cpan.cpantesters.org/authors/id/I/I//I/IN/INC=-I/usr/includ +e/ --2013-11-20 13:41:03-- http://cpan.cpantesters.org/authors/id/I/I//I +/IN/INC=-I/usr/include/ Resolving cpan.cpantesters.org (cpan.cpantesters.org)... 5.153.225.226 Connecting to cpan.cpantesters.org (cpan.cpantesters.org)|5.153.225.22 +6|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2013-11-20 13:41:04 ERROR 404: Not Found. Function system("/usr/bin/wget -O "/home/krishnendu.saha/.cpan/sou +rces/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256" "http://cpan.cpa +ntesters.org/authors/id/I/I//I/IN/INC=-I/usr/include/" ") returned status 8 (wstat 2048), left /home/krishnendu.saha/.cpan/sources/authors/id/I/I/I/IN/INC=-I/usr/inc +lude.tmp4256 with size 0 Trying with /usr/bin/wget -O "/home/krishnendu.saha/.cpan/sources/authors/id/I +/I/I/IN/INC=-I/usr/include.tmp4256" to get http://ftp.u-tx.net/CPAN/authors/id/I/I//I/IN/INC=-I/usr/include/ --2013-11-20 13:41:04-- http://ftp.u-tx.net/CPAN/authors/id/I/I//I/IN +/INC=-I/usr/include/ Resolving ftp.u-tx.net (ftp.u-tx.net)... 78.46.93.242 Connecting to ftp.u-tx.net (ftp.u-tx.net)|78.46.93.242|:80... connecte +d. HTTP request sent, awaiting response... 404 Not Found 2013-11-20 13:41:05 ERROR 404: Not Found. Function system("/usr/bin/wget -O "/home/krishnendu.saha/.cpan/sou +rces/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256" "http://ftp.u-tx +.net/CPAN/authors/id/I/I//I/IN/INC=-I/usr/include/" ") returned status 8 (wstat 2048), left /home/krishnendu.saha/.cpan/sources/authors/id/I/I/I/IN/INC=-I/usr/inc +lude.tmp4256 with size 0 Warning: no success downloading '/home/krishnendu.saha/.cpan/sourc +es/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256'. Giving up on it. No external ftp command available Fetching with LWP: http://mirror.tje.me.uk/pub/mirrors/ftp.cpan.org/authors/id/I/I//I/IN/ +INC=-I/usr/include/ Fetching with LWP: http://mirror.tje.me.uk/pub/mirrors/ftp.cpan.org/authors/id/I/I//I/IN/ +INC=-I/usr/include/.gz Trying with /usr/bin/wget -O "/home/krishnendu.saha/.cpan/sources/authors/id/I +/I/I/IN/INC=-I/usr/include.tmp4256" to get http://mirror.tje.me.uk/pub/mirrors/ftp.cpan.org/authors/id/I/I//I +/IN/INC=-I/usr/include/ --2013-11-20 13:41:06-- http://mirror.tje.me.uk/pub/mirrors/ftp.cpan. +org/authors/id/I/I//I/IN/INC=-I/usr/include/ Resolving mirror.tje.me.uk (mirror.tje.me.uk)... 195.242.156.174 Connecting to mirror.tje.me.uk (mirror.tje.me.uk)|195.242.156.174|:80. +.. connected. HTTP request sent, awaiting response... 404 Not Found 2013-11-20 13:41:06 ERROR 404: Not Found. Function system("/usr/bin/wget -O "/home/krishnendu.saha/.cpan/sou +rces/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256" "http://mirror.t +je.me.uk/pub/mirrors/ftp.cpan.org/authors/id/I/I//I/IN/INC=-I/usr/inc +lude/" ") returned status 8 (wstat 2048), left /home/krishnendu.saha/.cpan/sources/authors/id/I/I/I/IN/INC=-I/usr/inc +lude.tmp4256 with size 0 Warning: no success downloading '/home/krishnendu.saha/.cpan/sourc +es/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256'. Giving up on it. Fetching with LWP: http://cpan.cpantesters.org/authors/id/I/I//I/IN/INC=-I/usr/include/ Fetching with LWP: http://cpan.cpantesters.org/authors/id/I/I//I/IN/INC=-I/usr/include/.g +z Trying with /usr/bin/wget -O "/home/krishnendu.saha/.cpan/sources/authors/id/I +/I/I/IN/INC=-I/usr/include.tmp4256" to get http://cpan.cpantesters.org/authors/id/I/I//I/IN/INC=-I/usr/includ +e/ --2013-11-20 13:41:07-- http://cpan.cpantesters.org/authors/id/I/I//I +/IN/INC=-I/usr/include/ Resolving cpan.cpantesters.org (cpan.cpantesters.org)... 5.153.225.226 Connecting to cpan.cpantesters.org (cpan.cpantesters.org)|5.153.225.22 +6|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2013-11-20 13:41:08 ERROR 404: Not Found. Function system("/usr/bin/wget -O "/home/krishnendu.saha/.cpan/sou +rces/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256" "http://cpan.cpa +ntesters.org/authors/id/I/I//I/IN/INC=-I/usr/include/" ") returned status 8 (wstat 2048), left /home/krishnendu.saha/.cpan/sources/authors/id/I/I/I/IN/INC=-I/usr/inc +lude.tmp4256 with size 0 Warning: no success downloading '/home/krishnendu.saha/.cpan/sourc +es/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256'. Giving up on it. Fetching with LWP: http://ftp.u-tx.net/CPAN/authors/id/I/I//I/IN/INC=-I/usr/include/ Fetching with LWP: http://ftp.u-tx.net/CPAN/authors/id/I/I//I/IN/INC=-I/usr/include/.gz Trying with /usr/bin/wget -O "/home/krishnendu.saha/.cpan/sources/authors/id/I +/I/I/IN/INC=-I/usr/include.tmp4256" to get http://ftp.u-tx.net/CPAN/authors/id/I/I//I/IN/INC=-I/usr/include/ --2013-11-20 13:41:09-- http://ftp.u-tx.net/CPAN/authors/id/I/I//I/IN +/INC=-I/usr/include/ Resolving ftp.u-tx.net (ftp.u-tx.net)... 78.46.93.242 Connecting to ftp.u-tx.net (ftp.u-tx.net)|78.46.93.242|:80... connecte +d. HTTP request sent, awaiting response... 404 Not Found 2013-11-20 13:41:10 ERROR 404: Not Found. Function system("/usr/bin/wget -O "/home/krishnendu.saha/.cpan/sou +rces/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256" "http://ftp.u-tx +.net/CPAN/authors/id/I/I//I/IN/INC=-I/usr/include/" ") returned status 8 (wstat 2048), left /home/krishnendu.saha/.cpan/sources/authors/id/I/I/I/IN/INC=-I/usr/inc +lude.tmp4256 with size 0 Warning: no success downloading '/home/krishnendu.saha/.cpan/sourc +es/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256'. Giving up on it. Trying with /usr/bin/wget -O "/home/krishnendu.saha/.cpan/sources/authors/id/I +/I/I/IN/INC=-I/usr/include.tmp4256" to get http://mirror.tje.me.uk/pub/mirrors/ftp.cpan.org/authors/id/I/I//I +/IN/INC=-I/usr/include/ --2013-11-20 13:41:10-- http://mirror.tje.me.uk/pub/mirrors/ftp.cpan. +org/authors/id/I/I//I/IN/INC=-I/usr/include/ Resolving mirror.tje.me.uk (mirror.tje.me.uk)... 195.242.156.174 Connecting to mirror.tje.me.uk (mirror.tje.me.uk)|195.242.156.174|:80. +.. connected. HTTP request sent, awaiting response... 404 Not Found 2013-11-20 13:41:11 ERROR 404: Not Found. Function system("/usr/bin/wget -O "/home/krishnendu.saha/.cpan/sou +rces/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256" "http://mirror.t +je.me.uk/pub/mirrors/ftp.cpan.org/authors/id/I/I//I/IN/INC=-I/usr/inc +lude/" ") returned status 8 (wstat 2048), left /home/krishnendu.saha/.cpan/sources/authors/id/I/I/I/IN/INC=-I/usr/inc +lude.tmp4256 with size 0 Trying with /usr/bin/wget -O "/home/krishnendu.saha/.cpan/sources/authors/id/I +/I/I/IN/INC=-I/usr/include.tmp4256" to get http://cpan.cpantesters.org/authors/id/I/I//I/IN/INC=-I/usr/includ +e/ --2013-11-20 13:41:11-- http://cpan.cpantesters.org/authors/id/I/I//I +/IN/INC=-I/usr/include/ Resolving cpan.cpantesters.org (cpan.cpantesters.org)... 5.153.225.226 Connecting to cpan.cpantesters.org (cpan.cpantesters.org)|5.153.225.22 +6|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2013-11-20 13:41:12 ERROR 404: Not Found. Function system("/usr/bin/wget -O "/home/krishnendu.saha/.cpan/sou +rces/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256" "http://cpan.cpa +ntesters.org/authors/id/I/I//I/IN/INC=-I/usr/include/" ") returned status 8 (wstat 2048), left /home/krishnendu.saha/.cpan/sources/authors/id/I/I/I/IN/INC=-I/usr/inc +lude.tmp4256 with size 0 Trying with /usr/bin/wget -O "/home/krishnendu.saha/.cpan/sources/authors/id/I +/I/I/IN/INC=-I/usr/include.tmp4256" to get http://ftp.u-tx.net/CPAN/authors/id/I/I//I/IN/INC=-I/usr/include/ --2013-11-20 13:41:12-- http://ftp.u-tx.net/CPAN/authors/id/I/I//I/IN +/INC=-I/usr/include/ Resolving ftp.u-tx.net (ftp.u-tx.net)... 78.46.93.242 Connecting to ftp.u-tx.net (ftp.u-tx.net)|78.46.93.242|:80... connecte +d. HTTP request sent, awaiting response... 404 Not Found 2013-11-20 13:41:13 ERROR 404: Not Found. Function system("/usr/bin/wget -O "/home/krishnendu.saha/.cpan/sou +rces/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256" "http://ftp.u-tx +.net/CPAN/authors/id/I/I//I/IN/INC=-I/usr/include/" ") returned status 8 (wstat 2048), left /home/krishnendu.saha/.cpan/sources/authors/id/I/I/I/IN/INC=-I/usr/inc +lude.tmp4256 with size 0 Warning: no success downloading '/home/krishnendu.saha/.cpan/sourc +es/authors/id/I/I/I/IN/INC=-I/usr/include.tmp4256'. Giving up on it. No external ftp command available Please check, if the URLs I found in your configuration file (http://mirror.tje.me.uk/pub/mirrors/ftp.cpan.org/, http://cpan.cpantesters.org/, http://ftp.u-tx.net/CPAN/) are valid. Th +e urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch authors/id/I/I//I/IN/INC=-I/usr/include/ Failed during this command: SHLOMIF/XML-LibXSLT-1.82.tar.gz : writemakefile NO -- No + 'Makefile' created

Replies are listed 'Best First'.
Re: Unable to install XML::LibXSLT
by choroba (Cardinal) on Nov 20, 2013 at 09:36 UTC
    Line 14 is important:
    looking for -lxslt... no

    Not related to Perl. Install the development package for libxslt.

    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      "Line 14 is important"

      Line 1 is even more so.

      use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
Re: Unable to install XML::LibXSLT
by marto (Cardinal) on Nov 20, 2013 at 10:31 UTC
    looking for -lxslt... no libxslt not found

    Prior to installing modules you have to read and understand the documentation, including README and alike, which often contain installation instructions. Ensure prerequisites are satisfied on your system prior to installation.

Re: Unable to install XML::LibXSLT (look help install)
by Anonymous Monk on Nov 20, 2013 at 09:52 UTC

    Read "help install" if you want to know whats wrong what you're typing (install takes module names, thats it)

    use  look XML::LibXSLT if you want to run  perl Makefile.PL INC...