How do I install GD for Perl? - perl

I tried to install it but it gave an error. I don't know what -lwebp is.
$ cpan install GD
Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: Storable loaded ok (v2.53_01)
Reading '/home/Chloe/.cpan/Metadata'
Database was generated on Sat, 24 Dec 2016 21:17:02 GMT
Running install for module 'GD'
CPAN: Digest::SHA loaded ok (v5.96)
CPAN: Compress::Zlib loaded ok (v2.069)
Checksum for /home/Chloe/.cpan/sources/authors/id/L/LD/LDS/GD-2.56.tar.gz ok
CPAN: YAML loaded ok (v1.20)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v1.4417)
CPAN: CPAN::Meta loaded ok (v2.150005)
CPAN: Module::CoreList loaded ok (v5.20160320)
CPAN: Module::Build loaded ok (v0.4216)
Configuring L/LD/LDS/GD-2.56.tar.gz with Build.PL
CPAN: CPAN::Reporter loaded ok (v1.2018)
gdlib-config: warning: this script is deprecated; please use the pkg-config file instead.
Configuring for libgd version 2.2.3.
Checking for stray libgd header files...none found.
Included Features: GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_ZLIB GD_PNG GD_FREETYPE GD_FONTCONFIG GD_JPEG GD_XPM GD_TIFF GD_WEBP
GD library used from: /usr
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'GD' version '2.56'
(/usr/bin/perl Build.PL exited with 0)
CPAN::Reporter: Build.PL result is 'pass', No errors.
LDS/GD-2.56.tar.gz
/usr/bin/perl Build.PL -- OK
Running Build for L/LD/LDS/GD-2.56.tar.gz
Building GD
Extracting Image.pm (with variable substitutions)
gcc -I/usr/include -I/usr/lib/perl5/5.22/i686-cygwin-threads-64int/CORE -DVERSION="2.56" -DXS_VERSION="2.56" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_FONTCONFIG -c -DPERL_USE_SAFE_PUTENV -D_GNU_SOURCE -U__STRICT_ANSI__ -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/mnt/share/maint/perl.x86/build=/usr/src/debug/perl-5.22.2-1 -fdebug-prefix-map=/mnt/share/maint/perl.x86/src/perl-5.22.2=/usr/src/debug/perl-5.22.2-1 -fwrapv -fno-strict-aliasing -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O3 -o lib/GD.o lib/GD.c
lib/GD.xs: In function ‘XS_GD__Image_stringFT’:
lib/GD.xs:2187:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
img = (gdImagePtr) tmp;
^
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/GD/GD.bs')
g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector-strong -o blib/arch/auto/GD/GD.dll lib/GD.o /usr/lib/perl5/5.22/i686-cygwin-threads-64int/CORE/libperl.dll.a -L/usr/lib -lz -lpng16 -lfreetype -lfontconfig -lfreetype -ljpeg -lXpm -lX11 -ltiff -lwebp -liconv -lgd
/usr/lib/gcc/i686-pc-cygwin/5.4.0/../../../../i686-pc-cygwin/bin/ld: cannot find -lwebp
collect2: error: ld returned 1 exit status
error building blib/arch/auto/GD/GD.dll from lib/GD.o at /usr/lib/perl5/site_perl/5.22/ExtUtils/CBuilder/Base.pm line 321.
(./Build exited with 512)
CPAN::Reporter: Build result is 'unknown', Stopped with an error.
CPAN::Reporter: preparing a CPAN Testers report for GD-2.56
Do you want to review or edit the test report? (yes/no) [no] no
Do you want to send the report? (yes/no) [yes] yes
CPAN::Reporter: sending test report with 'unknown' via Metabase
LDS/GD-2.56.tar.gz
./Build -- NOT OK
I have libgd-devel installed. This is a different error than (CPAN GD module install failure using Cygwin). CPAN Testers says GD installed OK
http://www.cpantesters.org/distro/G/GD.html
Windows 8.1 64bit, Cygwin 2.6.1 32bit, Perl v5.22.2
I installed libwebp and libwebp-devel from setup-x86 and now it says it succeeded but the tests failed.
CPAN::Reporter: Build result is 'pass', No errors.
LDS/GD-2.56.tar.gz
./Build -- OK
Running Build test
# Testing using gd2 support.
# Failed test 'image comparison test 7'
# at t/GD.t line 249.
# Looks like you failed 1 test of 11.
t/GD.t ........
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/11 subtests
t/Polyline.t .. ok
Test Summary Report
-------------------
t/GD.t (Wstat: 256 Tests: 11 Failed: 1)
Failed test: 9
Non-zero exit status: 1
Files=2, Tests=12, 1 wallclock secs ( 0.03 usr 0.00 sys + 0.19 cusr 0.12 csys = 0.34 CPU)
Result: FAIL
Failed 1/2 test programs. 1/12 subtests failed.
(./Build test exited with 65280)
CPAN::Reporter: Test result is 'fail', One or more tests failed.

2.53 worked! Also this might be useful: stackoverflow.com/questions/260593/… You have to use install L/LD/LDS/GD-2.53.tar.gz from within CPAN as it doesn't work on the command line.
– Chloe

Related

Couldn't install File::Path library with cpan

I am unable to install File::Path library using cpan. What is wrong?
# perl -v
This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux
Copyright 1987-2017, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
# cpan -v
/usr/bin/cpan script version 1.66, CPAN.pm version 2.18
Is there some other way how to make it installed or is there some workaround?
# cpan install File::Path
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 01 Mar 2018 13:17:03 GMT
Running install for module 'File::Path'
CPAN: Digest::SHA loaded ok (v6.01)
CPAN: Compress::Zlib loaded ok (v2.074)
Checksum for /root/.cpan/sources/authors/id/J/JK/JKEENAN/File-Path-2.15.tar.gz ok
CPAN: YAML loaded ok (v1.24)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20180220)
Configuring J/JK/JKEENAN/File-Path-2.15.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for File::Path
Writing MYMETA.yml and MYMETA.json
JKEENAN/File-Path-2.15.tar.gz
/root/localperl/bin/perl Makefile.PL -- OK
Running make for J/JK/JKEENAN/File-Path-2.15.tar.gz
cp lib/File/Path.pm blib/lib/File/Path.pm
Manifying 1 pod document
JKEENAN/File-Path-2.15.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 "/root/localperl/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Path-Class.t .. ok
t/Path.t ........ ok
t/Path_root.t ... 1/11
# Failed test 'created a directory not owned by 1:inpuu...'
# at t/Path_root.t line 77.
# 'unable to map inpuu to a gid, group ownership not changed: at t/Path_root.t line 72.
# '
# doesn't match '(?^s:unable to map 1 to a uid, ownership not changed:)'
# Looks like you failed 1 test of 11.
t/Path_root.t ... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/11 subtests
t/Path_win32.t .. skipped: not win32
t/taint.t ....... ok
Test Summary Report
-------------------
t/Path_root.t (Wstat: 256 Tests: 11 Failed: 1)
Failed test: 8
Non-zero exit status: 1
Files=5, Tests=214, 2 wallclock secs ( 0.05 usr 0.01 sys + 0.36 cusr 0.09 csys = 0.51 CPU)
Result: FAIL
Failed 1/5 test programs. 1/214 subtests failed.
make: *** [test_dynamic] Error 255
JKEENAN/File-Path-2.15.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports JKEENAN/File-Path-2.15.tar.gz
This test failure is a known problem on centos 7, try the patch on RT.
https://rt.cpan.org/Public/Bug/Display.html?id=121967

Can't install perl package Games::Irrlicht - fatal error

I'm trying to install the CPAN module Games::Irrlicht to deal with graphics. Some file isn't getting downloaded properly or something, resulting in a fatal error.
What's wrong?
My terminal output:
cpan[1]> install Games::Irrlicht
Reading '/home/me/.cpan/Metadata'
Database was generated on Sat, 05 Mar 2016 02:17:02 GMT
Running install for module 'Games::Irrlicht'
Checksum for /home/me/.cpan/sources/authors/id/T/TE/TELS/games/Games-Irrlicht-0.04.tar.gz ok
Scanning cache /home/me/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Configuring T/TE/TELS/games/Games-Irrlicht-0.04.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Config::Simple 4.55 not found.
Warning (mostly harmless): No library found for -lIrrlicht
Generating a Unix-style Makefile
Writing Makefile for Games::Irrlicht
Writing MYMETA.yml and MYMETA.json
TELS/games/Games-Irrlicht-0.04.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for T/TE/TELS/games/Games-Irrlicht-0.04.tar.gz
---- Unsatisfied dependencies detected during ----
---- TELS/games/Games-Irrlicht-0.04.tar.gz ----
Config::Simple [requires]
Running install for module 'Config::Simple'
Checksum for /home/me/.cpan/sources/authors/id/S/SH/SHERZODR/Config-Simple-4.58.tar.gz ok
Configuring S/SH/SHERZODR/Config-Simple-4.58.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Config::Simple
Writing MYMETA.yml and MYMETA.json
SHERZODR/Config-Simple-4.58.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for S/SH/SHERZODR/Config-Simple-4.58.tar.gz
cp Simple.pm blib/lib/Config/Simple.pm
AutoSplitting blib/lib/Config/Simple.pm (blib/lib/auto/Config/Simple)
Manifying blib/man3/Config::Simple.3pm
SHERZODR/Config-Simple-4.58.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/bug.t ............. ok
t/create.t .......... ok
t/import.t .......... ok
t/ini.t ............. ok
t/is_modified.t ..... ok
t/read-rv.t ......... ok
t/simple.t .......... ok
t/simplified-ini.t .. ok
t/tie.t ............. ok
All tests successful.
Files=9, Tests=75, 1 wallclock secs ( 0.06 usr 0.00 sys + 0.24 cusr 0.04 csys = 0.34 CPU)
Result: PASS
SHERZODR/Config-Simple-4.58.tar.gz
/usr/bin/make test -- OK
Running make install
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/import_from.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/EXISTS.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/TIEHASH.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/NEXTKEY.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/hashref.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/CLEAR.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/FIRSTKEY.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/verbose.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/param_hash.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/block.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/vars.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/autosplit.ix
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/errstr.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/dump.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/import_names.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/DELETE.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/FETCH.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/write_string.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/STORE.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/error.al
Installing /usr/local/share/perl/5.20.2/Config/Simple.pm
Installing /usr/local/man/man3/Config::Simple.3pm
Appending installation info to /usr/local/lib/x86_64-linux-gnu/perl/5.20.2/perllocal.pod
SHERZODR/Config-Simple-4.58.tar.gz
/usr/bin/make install -- OK
TELS/games/Games-Irrlicht-0.04.tar.gz
Has already been unwrapped into directory /home/me/.cpan/build/Games-Irrlicht-0.04-7adKre
TELS/games/Games-Irrlicht-0.04.tar.gz
Has already been prepared
Running make for T/TE/TELS/games/Games-Irrlicht-0.04.tar.gz
cp lib/Games/Irrlicht/Group.pm blib/lib/Games/Irrlicht/Group.pm
cp lib/Games/Irrlicht/EventHandler.pm blib/lib/Games/Irrlicht/EventHandler.pm
cp lib/Games/Irrlicht/Constants.pm blib/lib/Games/Irrlicht/Constants.pm
cp lib/Games/Irrlicht/Timer.pm blib/lib/Games/Irrlicht/Timer.pm
cp lib/Games/Irrlicht/Thingy.pm blib/lib/Games/Irrlicht/Thingy.pm
cp lib/Games/Irrlicht.pm blib/lib/Games/Irrlicht.pm
Running Mkbootstrap for Games::Irrlicht ()
chmod 644 Irrlicht.bs
/usr/bin/perl /usr/share/perl/5.20/ExtUtils/xsubpp -C++ -typemap /usr/share/perl/5.20/ExtUtils/typemap Irrlicht.xs > Irrlicht.xsc && mv Irrlicht.xsc Irrlicht.c
Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT' section. in Irrlicht.xs, line 458
g++ -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.20/CORE" Irrlicht.c
Irrlicht.xs:6:31: fatal error: Irrlicht/irrlicht.h: No such file or directory
compilation terminated.
Makefile:362: recipe for target 'Irrlicht.o' failed
make: *** [Irrlicht.o] Error 1
TELS/games/Games-Irrlicht-0.04.tar.gz
/usr/bin/make -- NOT OK
Failed during this command:
TELS/games/Games-Irrlicht-0.04.tar.gz : make NO
This is in a terminal in Ubuntu 15.10
The README says to put "precompiled files" and "header files" into specific directories, but I can't find those files.
The README file says
You need to install the Irrlicht engine from http://irrlicht.sf.net
It looks from your log like you haven't done that
You should also read the rest of the README as there are a few other places where things may go wrong

Perl can't install Net::SSL

In order to install RT4.2, I tried to install Net::SSL, but without success. This is the output: (Ubuntu Server12.04, perl 5.14.2)
When I choice N selection that don't test connection, also can't success.
sudo cpan install Net::SSL
[sudo] password for hengaini:
Going to read '/home/hengaini/.cpan/Metadata'
Database was generated on Thu, 20 Feb 2014 09:41:02 GMT
Running install for module 'Net::SSL'
Running make for N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz
Checksum for /home/hengaini/.cpan/sources/authors/id/N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz ok
CPAN.pm: Going to build N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz
The test suite can attempt to connect to public servers to ensure that the
code is working properly. If you are behind a strict firewall or have no
network connectivity, these tests may fail (through no fault of the code).
Do you want to run the live tests (y/N)? [N] y
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lssl32
Warning (mostly harmless): No library found for -lssleay32
Warning (mostly harmless): No library found for -leay32
Generating a Unix-style Makefile
Writing Makefile for Crypt::SSLeay
Writing MYMETA.yml and MYMETA.json
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.64\" -DXS_VERSION=\"0.64\" -fPIC "-I/usr/lib/perl/5.14/CORE" SSLeay.c
rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so
LD_RUN_PATH="/lib/x86_64-linux-gnu" cc -shared -O2 -g -L/usr/local/lib -fstack-protector SSLeay.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.so \
-lz -lssl -lcrypto \
chmod 755 blib/arch/auto/Crypt/SSLeay/SSLeay.so
/usr/bin/perl -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs 644
Manifying blib/man3/Crypt::SSLeay.3pm
Manifying blib/man3/Net::SSL.3pm
NANIS/Crypt-SSLeay-0.64.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-basic.t .... ok
t/01-connect.t .. 1/8
# Failed test 'Net::SSL->new'
# at t/01-connect.t line 28.
# Connect failed: connect: 拒绝连接; 拒绝连接 at t/01-connect.t line 11.
# Looks like you failed 1 test of 8.
t/01-connect.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests
(less 7 skipped subtests: 0 okay)
t/02-live.t ..... # Reading configuration from 'test.config' on linux
# network_tests : 1
t/02-live.t ..... 1/? # [RT #73755] Cheat by disabling LWP::UserAgent host verification
t/02-live.t ..... ok
Test Summary Report
-------------------
t/01-connect.t (Wstat: 256 Tests: 8 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=3, Tests=28, 2 wallclock secs ( 0.03 usr 0.00 sys + 0.53 cusr 0.30 csys = 0.86 CPU)
Result: FAIL
Failed 1/3 test programs. 1/28 subtests failed.
make: *** [test_dynamic] 错误 255
NANIS/Crypt-SSLeay-0.64.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports NANIS/Crypt-SSLeay-0.64.tar.gz
Running make install
make test had returned bad status, won't install without force
A very old question, but I was stuck searching for this as well
Instead of attempting to install Perl's SSL modules with CPAN, you should, as #TLP stated in their comment on the original question, use the Ubuntu package manager
apt-cache search net-ssl
Will give a list of packages. For example:
apt install libnet-ssleay-perl
apt install libcrypt-ssleay-perl
These worked for me on Perl v5.20 and v5.30. You will have to search to see which libraries work for yours using apt-cache search
Better yet, I hope you are using a perlbrew or plenv based environment, and since you have at least bothered to install cpan rather than rely on the default packages.
So you seem to missing the libraries and headers for SSL on your system, fix this by:
sudo apt-get install libssl-dev
And if you haven'y already, look into setting up your environment with one of the methods as linked above and look into cpanminus as well for a very useful tool that compliments either of these.
Your problem is that testing after build was not successful and error is occurred in this file t/01-connect.t line 11.
eval {
$sock = Net::SSL->new(
PeerAddr => '127.0.0.1',
PeerPort => 443,
Timeout => 3,
);
};
I can assume that some process is already listening on 127.0.0.1 443 port. Try to stop it and reinstall it again in the way you would like. Tests should always be passed.

Installing perl/cpan from source on Centos 6 64-bit

I'm trying to install perl from source into a local directory on CentOS 6. I'm having issues installing certain packages with cpan. I solved a bunch of problems by installing some dev rpm's, I solved more problems by telling perl CentOS is 64 bit in the configure line. But I'm having a problem installing Apache2::TaintRequest that I'm not having much luck figuring out. I've been googling and recompiling for the last several days, so hopefully this isn't a dumb question...
Here is what I'm doing.
yum -y install libxml2-devel openssl-devel vsftpd emacs alpine xorg-x11-xauth
yum -y xorg-x11-fonts* gd gd-devel expat mod_perl gdbm gdbm-devel httpd-devel
yum -y mod_ssl slang slang-devel expat expat-devel gmp gmp-devel curl
yum -y curl-devel jemalloc jemalloc-devel
mkdir /local_perl
cd /root/
wget http://www.cpan.org/src/5.0/perl-5.18.0.tar.gz
tar -xzxf /root/initial_install/perl-5.18.0.tar.gz
cd perl-5.18.0
CFLAGS='-m64 -mtune=nocona' ./Configure -des -A ccflags="-fPIC -m64" \
-Dprefix=/local_perl -Aldflags='-lresolv -lnsl -ldl -lm -lcrypt -lutil -lc'
make
make test
make install
/local_perl/bin/cpan
/local_perl/bin/cpan Bundle::CPAN
/local_perl/bin/cpan -i YAML
/local_perl/bin/cpan -i Net::OpenID::Consumer
/local_perl/bin/cpan -i Apache2::RequestRec
/local_perl/bin/cpan -i Apache2::TaintRequest # fails
This is where I've gotten, here's the output
[STL root#mgs26 perl-5.18.0]# /local_perl/bin/cpan -i Apache2::TaintRequest #
CPAN: Storable loaded ok (v2.41)
Reading '/root/.cpan/Metadata'
Database was generated on Mon, 12 Aug 2013 19:53:03 GMT
Running install for module 'Apache2::TaintRequest'
Running make for P/PH/PHRED/Apache2-TaintRequest-0.01.tar.gz
CPAN: Digest::SHA loaded ok (v5.85)
CPAN: Compress::Zlib loaded ok (v2.062)
Checksum for /root/.cpan/sources/authors/id/P/PH/PHRED/Apache2-TaintRequest-0.01.tar.gz ok
CPAN: File::Temp loaded ok (v0.2301)
CPAN: Parse::CPAN::Meta loaded ok (v1.4405)
CPAN: CPAN::Meta loaded ok (v2.120921)
CPAN: Module::CoreList loaded ok (v2.90)
CPAN.pm: Building P/PH/PHRED/Apache2-TaintRequest-0.01.tar.gz
Checking if your kit is complete...
Looks good
Warning: prerequisite Taint 0 not found.
Writing Makefile for Apache2::TaintRequest
Writing MYMETA.yml and MYMETA.json
---- Unsatisfied dependencies detected during ----
---- PHRED/Apache2-TaintRequest-0.01.tar.gz ----
Taint [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'Taint'
Running make for P/PH/PHOENIX/Taint-0.09.tar.gz
Checksum for /root/.cpan/sources/authors/id/P/PH/PHOENIX/Taint-0.09.tar.gz ok
CPAN.pm: Building P/PH/PHOENIX/Taint-0.09.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Taint
Writing MYMETA.yml and MYMETA.json
cp Taint.pm blib/lib/Taint.pm
Manifying blib/man3/Taint.3
PHOENIX/Taint-0.09.tar.gz
/usr/bin/make -- OK
CPAN: YAML loaded ok (v0.84)
Running make test
PERL_DL_NONLAZY=1 /local_perl/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/0-basic.t .... Failed 4/52 subtests
t/no-taint.t ... ok
t/tied.t ....... All 11 subtests passed
t/u-untaint.t .. ok
Test Summary Report
-------------------
t/0-basic.t (Wstat: 0 Tests: 52 Failed: 4)
Failed tests: 32, 38-40
t/tied.t (Wstat: 0 Tests: 12 Failed: 1)
Failed test: 12
Parse errors: Bad plan. You planned 11 tests but ran 12.
Files=4, Tests=78, 0 wallclock secs ( 0.07 usr 0.02 sys + 0.07 cusr 0.04 csys = 0.20 CPU)
Result: FAIL
Failed 2/4 test programs. 5/78 subtests failed.
make: *** [test_dynamic] Error 255
PHOENIX/Taint-0.09.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PHOENIX/Taint-0.09.tar.gz
Running make install
make test had returned bad status, won't install without force
Running make for P/PH/PHRED/Apache2-TaintRequest-0.01.tar.gz
Has already been unwrapped into directory /root/.cpan/build/Apache2-TaintRequest-0.01-Hq_Pbt
CPAN.pm: Building P/PH/PHRED/Apache2-TaintRequest-0.01.tar.gz
Warning: Prerequisite 'Taint => 0' for 'PHRED/Apache2-TaintRequest-0.01.tar.gz' failed when processing 'PHOENIX/Taint-0.09.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited.
CPAN: Time::HiRes loaded ok (v1.9725)
cp lib/Apache2/TaintRequest.pm blib/lib/Apache2/TaintRequest.pm
Manifying blib/man3/Apache2::TaintRequest.3
PHRED/Apache2-TaintRequest-0.01.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /local_perl/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Apache2-TaintRequest.t .. 1/1
# Failed test 'use Apache2::TaintRequest;'
# at t/Apache2-TaintRequest.t line 7.
# Tried to use 'Apache2::TaintRequest'.
# Error: Can't locate Taint.pm in #INC (you may need to install the Taint module) (#INC contains: /root/.cpan/build/Apache2-TaintRequest-0.01-Hq_Pbt/blib/lib /root/.cpan/build/Apache2-TaintRequest-0.01-Hq_Pbt/blib/arch /local_perl/lib/site_perl/5.18.0/x86_64-linux /local_perl/lib/site_perl/5.18.0 /local_perl/lib/5.18.0/x86_64-linux /local_perl/lib/5.18.0) at /root/.cpan/build/Apache2-TaintRequest-0.01-Hq_Pbt/blib/lib/Apache2/TaintRequest.pm line 29.
# BEGIN failed--compilation aborted at /root/.cpan/build/Apache2-TaintRequest-0.01-Hq_Pbt/blib/lib/Apache2/TaintRequest.pm line 29.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
# Looks like you failed 1 test of 1.
t/Apache2-TaintRequest.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
Test Summary Report
-------------------
t/Apache2-TaintRequest.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=1, Tests=1, 0 wallclock secs ( 0.04 usr 0.01 sys + 0.04 cusr 0.01 csys = 0.10 CPU)
Result: FAIL
Failed 1/1 test programs. 1/1 subtests failed.
make: *** [test_dynamic] Error 1
PHRED/Apache2-TaintRequest-0.01.tar.gz
one dependency not OK (Taint); additionally test harness failed
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PHRED/Apache2-TaintRequest-0.01.tar.gz
Running make install
make test had returned bad status, won't install without force
I'm at a loss, any help would be greatly appreciated. Thanks.
Have you seen if perlbrew sets the right flags and just works?
Force install the Taint module first:
cpan[1]> force install Taint
Then: cpan Apache2::TaintRequest

Issue installing PAR::Packer with strawberry Perl

I'm struggling for two days now to get the PAR::Packer module installed. I'm new to CPAN, and this is the first module I want to install, so I first thought it is me. But I reinstalled strawberry Perl a few times now and also used an older versions. The installation always fails with:
windres: unexpected version string length 68 != 32 + 8
I found a few hits on this string and it appears to be an issue with MingW (whatever this is):
http://mingw.5.n7.nabble.com/Wine-crosstest-build-fails-with-quot-unexpected-version-string-length-68-32-8-quot-td29953.html#a29975
But I do not know how to get this patch and how to install it.
Below the hole capture of the installation:
C:\Documents and Settings\shepp>cpan PAR::Packer CPAN: CPAN::SQLite
loaded ok (v0.202) Database was generated on Tue, 27 Nov 2012 20:58:53
GMT Running install for module 'PAR::Packer' Running make for
R/RS/RSCHUPP/PAR-Packer-1.013.tar.gz CPAN: LWP::UserAgent loaded ok
(v6.04) CPAN: Time::HiRes loaded ok (v1.9725) Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/R/RS/RSCHUPP/PAR-Packer-1.013.tar.gz
CPAN: YAML::XS loaded ok (v0.38) CPAN: Digest::SHA loaded ok (v5.72)
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/R/RS/RSCHUPP/CHECKSUMS CPAN:
Compress::Zlib loaded ok (v2.055) Checksum for
C:\strawberry\cpan\sources\authors\id\R\RS\RSCHUPP\PAR-Packer-1.013
.tar.gz ok CPAN: Archive::Tar loaded ok (v1.90) CPAN: File::Temp
loaded ok (v0.22) CPAN: Parse::CPAN::Meta loaded ok (v1.4404) CPAN:
CPAN::Meta loaded ok (v2.120921) CPAN: Module::CoreList loaded ok
(v2.74)
CPAN.pm: Building R/RS/RSCHUPP/PAR-Packer-1.013.tar.gz
Checking if your kit is complete... Looks good Warning: prerequisite
Getopt::ArgvFile 1.07 not found. Warning: prerequisite
Module::ScanDeps 1.05 not found. Prototype mismatch: sub main::prompt:
none vs ($;$) at C:/strawberry/perl/lib/Ex tUtils/MakeMaker.pm line
219. Writing Makefile for par.exe Writing MYMETA.yml and MYMETA.json Writing Makefile for PAR::Packer Writing MYMETA.yml and MYMETA.json
---- Unsatisfied dependencies detected during ----
---- RSCHUPP/PAR-Packer-1.013.tar.gz ----
Getopt::ArgvFile [requires]
Module::ScanDeps [requires] Running make test Delayed until after prerequisites Running make install Delayed until after
prerequisites Running install for module 'Getopt::ArgvFile' Running
make for J/JS/JSTENZEL/Getopt-ArgvFile-1.11.tar.gz Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile-1.11.tar
.gz Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/J/JS/JSTENZEL/CHECKSUMS
Checksum for
C:\strawberry\cpan\sources\authors\id\J\JS\JSTENZEL\Getopt-ArgvFile
-1.11.tar.gz ok
CPAN.pm: Building J/JS/JSTENZEL/Getopt-ArgvFile-1.11.tar.gz
Checking if your kit is complete... Looks good Writing Makefile for
Getopt::ArgvFile Writing MYMETA.yml and MYMETA.json cp ArgvFile.pm
blib\lib\Getopt\ArgvFile.pm JSTENZEL/Getopt-ArgvFile-1.11.tar.gz
C:\strawberry\c\bin\dmake.exe -- OK Running make test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/base.t ...........
ok t/expandenv.t ...... ok t/fileopt.t ........ ok t/noHOMEvar.t
...... ok t/pod-coverage.t ... skipped: Test::Pod::Coverage 1.00
required for testing POD coverage t/pod.t ............ skipped:
Test::Pod 1.00 required for testing POD t/prefix.t ......... ok
t/resolvepathes.t .. ok t/use1.t ........... ok t/use2.t ...........
ok All tests successful. Files=10, Tests=43, 3 wallclock secs ( 0.08
usr + 0.09 sys = 0.17 CPU) Result: PASS
JSTENZEL/Getopt-ArgvFile-1.11.tar.gz C:\strawberry\c\bin\dmake.exe
test -- OK Running make install Installing
C:\strawberry\perl\site\lib\Getopt\ArgvFile.pm Appending installation
info to C:\strawberry\perl\lib/perllocal.pod
JSTENZEL/Getopt-ArgvFile-1.11.tar.gz C:\strawberry\c\bin\dmake.exe
install UNINST=1 -- OK Running install for module 'Module::ScanDeps'
Running make for R/RS/RSCHUPP/Module-ScanDeps-1.10.tar.gz Fetching
with LWP:
http://cpan.strawberryperl.com/authors/id/R/RS/RSCHUPP/Module-ScanDeps-1.10.tar.
gz Checksum for
C:\strawberry\cpan\sources\authors\id\R\RS\RSCHUPP\Module-ScanDeps-
1.10.tar.gz ok
CPAN.pm: Building R/RS/RSCHUPP/Module-ScanDeps-1.10.tar.gz
Checking if your kit is complete... Looks good Writing Makefile for
Module::ScanDeps Writing MYMETA.yml and MYMETA.json cp
lib/Module/ScanDeps/Cache.pm blib\lib\Module\ScanDeps\Cache.pm cp
lib/Module/ScanDeps/DataFeed.pm blib\lib\Module\ScanDeps\DataFeed.pm
cp lib/Module/ScanDeps.pm blib\lib\Module\ScanDeps.pm
C:\strawberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp --
script/scan deps.pl blib\script\scandeps.pl pl2bat.bat
blib\script\scandeps.pl RSCHUPP/Module-ScanDeps-1.10.tar.gz
C:\strawberry\c\bin\dmake.exe -- OK Running make test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t t/0-pod.t
....................................... skipped: Test::Pod 1.00 requir
ed for testing POD t/1-static_functional_interface_real.t ..........
ok t/10-case-insensitive-keys.t .................... ok
t/12-ScanFileRE.t ............................... ok
t/13-static_prefork_test.t ...................... skipped: This test
requires pr efork.pm which is not installed. Skipping.
t/14-scan_chunk.t ............................... ok
t/14-static_functional_cached.t ................. 1/? 0 Couldn't
retrieve data from file deps_cache.dat. Building new cache.
t/14-static_functional_cached.t ................. ok t/16-scan_line.t
................................ ok t/17-private_methods.t
.......................... ok t/2-static_functional_interface_fake.t
.......... ok t/3-static_oo_interface_real.t .................. ok
t/4-static_functional_interface_options_fake.t .. ok
t/5-pluggable_fake.t ............................ ok t/6-file-glob.t
................................. ok t/7-check-dynaloader.t
.......................... # dynamic modules used for tes t: Cwd
File::Glob Data::Dumper List::Util Time::HiRes Compress::Raw::Zlib
t/7-check-dynaloader.t .......................... 1/36
C:\DOCUME~1\shepp\LOCALS~ 1\Temp\5xtWJc0E06 syntax OK
C:\DOCUME~1\shepp\LOCALS~1\Temp\JzIXUYCKFa syntax OK
t/7-check-dynaloader.t .......................... 11/36
C:\DOCUME~1\shepp\LOCALS ~1\Temp\jGWh6j7CQ_ syntax OK
C:\DOCUME~1\shepp\LOCALS~1\Temp\vHQnTPJrl3 syntax OK
t/7-check-dynaloader.t .......................... 21/36
C:\DOCUME~1\shepp\LOCALS ~1\Temp\4nv64Rabo3 syntax OK
t/7-check-dynaloader.t .......................... 29/36
C:\DOCUME~1\shepp\LOCALS ~1\Temp\tX8ukeJjGy syntax OK
t/7-check-dynaloader.t .......................... ok
t/8-check_duplicated_entries.t .................. ok
t/9-check_path_to_inc_name.t .................... ok All tests
successful. Files=17, Tests=17352, 67 wallclock secs ( 1.89 usr +
0.22 sys = 2.11 CPU) Result: PASS RSCHUPP/Module-ScanDeps-1.10.tar.gz C:\strawberry\c\bin\dmake.exe
test -- OK Running make install Installing
C:\strawberry\perl\site\lib\Module\ScanDeps.pm Installing
C:\strawberry\perl\site\lib\Module\ScanDeps\Cache.pm Installing
C:\strawberry\perl\site\lib\Module\ScanDeps\DataFeed.pm Installing
C:\strawberry\perl\site\bin\scandeps.bat Installing
C:\strawberry\perl\site\bin\scandeps.pl Appending installation info to
C:\strawberry\perl\lib/perllocal.pod
RSCHUPP/Module-ScanDeps-1.10.tar.gz C:\strawberry\c\bin\dmake.exe
install UNINST=1 -- OK Running make for
R/RS/RSCHUPP/PAR-Packer-1.013.tar.gz Has already been unwrapped into
directory C:\strawberry\cpan\build\PAR-Packer-
1.013-PEitq2
CPAN.pm: Building R/RS/RSCHUPP/PAR-Packer-1.013.tar.gz
cp lib/App/Packer/PAR.pm blib\lib\App\Packer\PAR.pm cp
lib/PAR/Packer.pm blib\lib\PAR\Packer.pm cp
lib/PAR/Filter/Obfuscate.pm blib\lib\PAR\Filter\Obfuscate.pm cp
lib/PAR/Filter/PodStrip.pm blib\lib\PAR\Filter\PodStrip.pm cp
lib/PAR/StrippedPARL/Base.pm blib\lib\PAR\StrippedPARL\Base.pm cp
lib/PAR/Filter.pm blib\lib\PAR\Filter.pm cp
lib/PAR/Filter/PatchContent.pm blib\lib\PAR\Filter\PatchContent.pm cp
lib/PAR/Filter/Bytecode.pm blib\lib\PAR\Filter\Bytecode.pm cp
lib/pp.pm blib\lib\pp.pm cp lib/PAR/Filter/Bleach.pm
blib\lib\PAR\Filter\Bleach.pm C:\strawberry\perl\bin\perl.exe
file2c.pl -s ..\script\par.pl my_par_pl.c load_m y_par_pl
C:\strawberry\perl\bin\perl.exe sha1.c.PL gcc -c -s -O2 -DWIN32
-DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IM PLICIT_SYS -fno-strict-aliasing -mms-bitfields -I"C:\strawberry\perl\lib\CORE" -DLOAD_MY_LIBGCC -DPARL_EXE=\"parl.exe\" -s -O2 main.c windres -F pei-i386 -i winres\pp.rc -o winres\pp.res windres -o ppresource.coff
winres\pp.res windres: unexpected version string length 68 != 32 + 8
dmake: Error code 129, while making 'ppresource.coff' dmake.exe:
Error code 255, while making 'subdirs'
RSCHUPP/PAR-Packer-1.013.tar.gz C:\strawberry\c\bin\dmake.exe -- NOT
OK Running make test Can't test without successful make Running make
install Make had returned bad status, install seems impossible
Stopping: 'install' failed for 'R/RS/RSCHUPP/PAR-Packer-1.013.tar.gz'.
Bug #77408 for PAR-Packer: Cannot build on Win64/Perl64
update: Strawberryperl/Dwimperl uses the MinGW compiler, and the above bug report includes a patch for this issue
I finally got it working using the patched version of PAR:Packer :
http://strawberryperl.com/package/kmx/perl-modules-patched/PAR-Packer-1.013_patched.tar.gz
Thanks
Siegfried