I am trying to install Unicode::Map8 module using cpan on CentOS5 with 2.6.18-371.9.1.el5 kernel. So when I do cpan> install Unicode::Map8 as sudo I get the following result:
Running install for module Unicode::Map8
Running make for G/GA/GAAS/Unicode-Map8-0.13.tar.gz
Is already unwrapped into directory /root/.cpan/build/Unicode-Map8-0.13
Has already been processed within this session
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/callback....ok
t/compat......ok
t/map8........dubious
Test returned status 0 (wstat 11, 0xb)
t/unistr......ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/map8.t 0 11 ?? ?? % ??
Failed 1/4 test scripts, 75.00% okay. 0/6 subtests failed, 100.00% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
The perl version is v5.8.8.
I tried this on my machine and on server that runs the same config.
Any Idea what might be the reason?
Unicode::Map8 is available as a pre-built package for Centos in the EPEL repository. Once you have configured your system to use EPEL (and that's well worth doing as they have a lot more CPAN modules that the standard Centos repos) you can install it using yum.
$ sudo yum install perl-Unicode-Map8
Related
I'm having troubles with Perl in my server machine I'm not an admin, but I assume I have created my environment, it was working just fine until I installed Conda.
I install Perl using brew so it can help me to configure his libraries.
brew info perl
perl: stable 5.32.0, HEAD
Highly capable, feature-rich programming language
https://www.perl.org/
/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0
If I called cpan Don't work return error below:
ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xcd00080, needed 0xed00080)
unless I unset PERL5LIB env or export it to Perl in the brew
env | grep PERL
PERL5LIB=/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/5.32.0:
PERL_MB_OPT=--install_base "/lustre/mnad/perl5"
PERL_LOCAL_LIB_ROOT=:/lustre/mnad/perl5
PERL_MM_OPT=INSTALL_BASE=/lustre/mnad/perl5
when I make I run for any Perl script an error occurs:
Can't locate local/lib.pm in #INC (you may need to install the local::lib module) (#INC contains: /lustre....
Can't locate Text/Soundex.pm in #INC (you may need to install the Text::Soundex module) ....
then I tried to
cpan[1]> install local::lib
Reading '/lustre/mnad/.cpan/Metadata'
Database was generated on Tue, 14 Jul 2020 02:17:04 GMT
Running install for module 'local::lib'
Checksum for /lustre/mnad/.cpan/sources/authors/id/H/HA/HAARG/local-lib-2.000024.tar.gz ok
Scanning cache /lustre/mnad/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Configuring H/HA/HAARG/local-lib-2.000024.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for local::lib
Writing MYMETA.yml and MYMETA.json
HAARG/local-lib-2.000024.tar.gz
/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/bin/perl Makefile.PL -- OK
Running make for H/HA/HAARG/local-lib-2.000024.tar.gz
cp lib/local/lib.pm blib/lib/local/lib.pm
cp lib/POD2/PT_BR/local/lib.pod blib/lib/POD2/PT_BR/local/lib.pod
cp lib/lib/core/only.pm blib/lib/lib/core/only.pm
cp lib/POD2/DE/local/lib.pod blib/lib/POD2/DE/local/lib.pod
Manifying 4 pod documents
HAARG/local-lib-2.000024.tar.gz
/usr/bin/make -- OK
The current configuration of allow_installing_outdated_dists is 'ask/yes', but for this option we would need 'CPAN::DistnameInfo' installed. Please install 'CPAN::DistnameInfo' as soon as possible. As long as we are not equipped with 'CPAN::DistnameInfo' this option does not take effect
Running make test for HAARG/local-lib-2.000024.tar.gz
PERL_DL_NONLAZY=1 "/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/bad_variables.t ...... ok
t/carp-mismatch.t ...... ok
t/classmethod.t ........ ok
t/de-dup.t ............. ok
t/lib-core-only.t ...... ok
t/pipeline.t ........... ok
t/shell.t .............. ok
t/stackable.t .......... ok
t/subroutine-in-inc.t .. ok
t/taint-mode.t ......... ok
All tests successful.
Files=10, Tests=220, 7 wallclock secs ( 0.08 usr 0.03 sys + 2.68 cusr 2.53 csys = 5.32 CPU)
Result: PASS
Terminal does not support GetHistory.
Lockfile removed.
HAARG/local-lib-2.000024.tar.gz
/usr/bin/make test -- OK
Running make install for HAARG/local-lib-2.000024.tar.gz
Manifying 4 pod documents
Appending installation info to /lustre/mnad/perl5/lib/perl5/x86_64-linux-thread-multi/perllocal.pod
HAARG/local-lib-2.000024.tar.gz
/usr/bin/make install -- OK
and
cpan[2]> install Text::Soundex
Running install for module 'Text::Soundex'
Checksum for /lustre/mnad/.cpan/sources/authors/id/R/RJ/RJBS/Text-Soundex-3.05.tar.gz ok
Configuring R/RJ/RJBS/Text-Soundex-3.05.tar.gz with Makefile.PL
The XS code will be compiled.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Text::Soundex
Writing MYMETA.yml and MYMETA.json
RJBS/Text-Soundex-3.05.tar.gz
/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/bin/perl Makefile.PL -- OK
Running make for R/RJ/RJBS/Text-Soundex-3.05.tar.gz
cp Soundex.pm blib/lib/Text/Soundex.pm
Running Mkbootstrap for Soundex ()
chmod 644 "Soundex.bs"
"/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Soundex.bs blib/arch/auto/Text/Soundex/Soundex.bs 644
"/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/bin/perl" "/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/5.32.0/ExtUtils/xsubpp" -typemap '/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/5.32.0/ExtUtils/typemap' Soundex.xs > Soundex.xsc
mv Soundex.xsc Soundex.c
cc -c -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/lustre/mnad/.linuxbrew/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"3.05\" -DXS_VERSION=\"3.05\" -fPIC "-I/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/5.32.0/x86_64-linux-thread-multi/CORE" Soundex.c
rm -f blib/arch/auto/Text/Soundex/Soundex.so
cc -shared -O2 -L/usr/local/lib -fstack-protector-strong Soundex.o -o blib/arch/auto/Text/Soundex/Soundex.so \
\
chmod 755 blib/arch/auto/Text/Soundex/Soundex.so
Manifying 1 pod document
RJBS/Text-Soundex-3.05.tar.gz
/usr/bin/make -- OK
The current configuration of allow_installing_outdated_dists is 'ask/yes', but for this option we would need 'CPAN::DistnameInfo' installed. Please install 'CPAN::DistnameInfo' as soon as possible. As long as we are not equipped with 'CPAN::DistnameInfo' this option does not take effect
Running make test for RJBS/Text-Soundex-3.05.tar.gz
"/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Soundex.bs blib/arch/auto/Text/Soundex/Soundex.bs 644
PERL_DL_NONLAZY=1 "/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/basic.t .. ok
All tests successful.
Files=1, Tests=18, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.01 cusr 0.02 csys = 0.07 CPU)
Result: PASS
RJBS/Text-Soundex-3.05.tar.gz
/usr/bin/make test -- OK
Running make install for RJBS/Text-Soundex-3.05.tar.gz
"/lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Soundex.bs blib/arch/auto/Text/Soundex/Soundex.bs 644
Manifying 1 pod document
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Appending installation info to /lustre/mnad/perl5/lib/perl5/x86_64-`linux-thread`-multi/perllocal.pod
RJBS/Text-Soundex-3.05.tar.gz
/usr/bin/make install -- OK
Both are installed but when I rerun the Perl tool similar error occurs:
Can't locate local/lib.pm in #INC (you may need to install the local::lib module) (#INC contains: /lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/5.32.0/x86_64-linux-thread-multi /lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/5.32.0 /lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/site_perl/5.32.0/x86_64-linux-thread-multi /lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/site_perl/5.32.0 /lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/5.32.0/x86_64-linux-thread-multi /lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/5.32.0 /lustre/mnad/.linuxbrew/lib/perl5/site_perl/5.32.0/x86_64-linux-thread-multi /lustre/mnad/.linuxbrew/lib/perl5/site_perl/5.32.0).
BEGIN failed--compilation aborted.
Can't locate Text/Soundex.pm in #INC (you may need to install the Text::Soundex module) (#INC contains: /lustre/mnad/Tools/RM /lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/5.32.0/x86_64-linux-thread-multi /lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/5.32.0 /lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/site_perl/5.32.0/x86_64-linux-thread-multi /lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/site_perl/5.32.0 /lustre/mnad/.linuxbrew/lib/perl5/site_perl/5.32.0/x86_64-linux-thread-multi /lustre/mnad/.linuxbrew/lib/perl5/site_perl/5.32.0) at /lustre/mnad/Tools/RM/Taxonomy.pm line 80.
BEGIN failed--compilation aborted at /lustre/mnad/Tools/RM/Taxonomy.pm line 80.
Compilation failed in require at ./RepeatMasker line 332.
BEGIN failed--compilation aborted at ./RepeatMasker line 332.
/usr/bin/perl: symbol lookup error: /lustre/mnad/.linuxbrew/Cellar/perl/5.32.0/lib/perl5/5.32.0/x86_64-linux-thread-multi/auto/Socket/Socket.so: undefined symbol: Perl_xs_handshake
Someone help my struggle, please.
which Perl
perl is /lustre/mnad/.linuxbrew/bin/perl
perl is /lustre/mnad/.linuxbrew/bin/perl
perl is /usr/bin/perl
perl --version
This is perl 5, version 32, subversion 0 (v5.32.0) built for x86_64-linux-thread-multi
cpan -v
ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xcd00080, needed 0xed00080)
which cpan
cpan is /lustre/mnad/.linuxbrew/bin/cpan
cpan is /lustre/mnad/.linuxbrew/bin/cpan
cpan is /lustre/mnad/perl5/bin/cpan
cpan is /usr/bin/cpan
This line able to solve it and Cpan start to work, But I still I don't have clear picture.
cd /lustre/mnad && mv perl5 perl5.old
This looks like it's been around for years - but I can't find anything recent and related to Mac, and dealing only with just installing the CPAN module DBD::mysql I've been trawling the internet for days now...
# Failed test 'use DBD::mysql;'
# at t/00base.t line 15.
# Tried to use 'DBD::mysql'.
# Error: Can't load '/Users/robert/.cpanm/work/1542100720.91387/DBD-mysql-4.048/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/robert/.cpanm/work/1542100720.91387/DBD-mysql-4.048/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Symbol not found: _mysql_affected_rows
# Referenced from: /Users/robert/.cpanm/work/1542100720.91387/DBD-mysql-4.048/blib/arch/auto/DBD/mysql/mysql.bundle
# Expected in: flat namespace
# in /Users/robert/.cpanm/work/1542100720.91387/DBD-mysql-4.048/blib/arch/auto/DBD/mysql/mysql.bundle at /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/DynaLoader.pm line 197.
# ^# at t/00base.t line 15.
# Compilation failed in require at t/00base.t line 15.
# BEGIN failed--compilation aborted at t/00base.t line 15.
Bailout called. Further testing stopped: Unable to load DBD::mysql
FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 255
-> FAIL Installing DBD::mysql failed. See /Users/robert/.cpanm/work/1542100720.91387/build.log for details. Retry with --force to force install it.
This is the cpanm line I'm using.
sudo cpanm --configure-args="--libs='-L/usr/local/opt/openssl/lib -L/usr/local/lib -L/usr/local/Cellar/mysql/8.0.12/lib' --cflags='-I/usr/local/opt/openssl/include -I/usr/local/include/mysql -I/usr/local/Cellar/mysql/8.0.12/include/mysql'" DBD::mysql
I have installed mysql with Homebrew, and everything else for that matter. I've even copied a few libs into system directories - but nothing seems to want to get this cpan module to install and work.
EDIT: Additions after this line.
Let's try Making the package by hand
sudo perl Makefile.PL --libs="-L/usr/local/opt/openssl/lib -L/usr/local/lib -L/usr/local/Cellar/mysql/8.0.12/lib -lssl -lcrypto"
The Result of Make. Looking good. I see no errors here.Apparently all libs are available for compiling.
zeus:DBD-mysql-4.048-0 robert$ sudo perl Makefile.PL --libs="-L/usr/local/opt/openssl/lib -lssl -lcrypto -L/usr/local/lib -L/usr/local/Cellar/mysql/8.0.12/lib"
I will use the following settings for compiling and testing:
cflags (mysql_config ) = -I/usr/local/Cellar/mysql/8.0.12/include/mysql
embedded (guessed ) =
libs (User's choice) = -L/usr/local/opt/openssl/lib -lssl -lcrypto -L/usr/local/lib -L/usr/local/Cellar/mysql/8.0.12/lib
mysql_config (Users choice ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
nossl (default ) = 0
testdb (User's choice) = test
testhost (default ) =
testpassword (default ) =
testport (default ) =
testsocket (default ) =
testuser (User's choice) = root
To change these settings, see 'perl Makefile.PL --help' and
'perldoc DBD::mysql::INSTALL'.
Checking if libs are available for compiling...
Looks good.
Checking if your kit is complete...
Looks good
Using DBI 1.642 (for perl 5.028000 on darwin-thread-multi-2level) installed in /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/auto/DBI/
Generating a Unix-style Makefile
Writing Makefile for DBD::mysql
Writing MYMETA.yml and MYMETA.json
zeus:DBD-mysql-4.048-0 robert$
Now let's see if a make works.
Looking good. 1 warning about WIDEST_UTYPE but it's only a warning...
Then, mysql.bundle is made
chmod 755 blib/arch/auto/DBD/mysql/mysql.bundle
Manifying 3 pod documents
Ok, now the big test. make test.
... and it fails.
zeus:DBD-mysql-4.048-0 robert$ sudo make test
"/usr/local/Cellar/perl/5.28.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- mysql.bs blib/arch/auto/DBD/mysql/mysql.bs 644
PERL_DL_NONLAZY=1 "/usr/local/Cellar/perl/5.28.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.t .............................. 1/6
# Failed test 'use DBD::mysql;'
# at t/00base.t line 15.
# Tried to use 'DBD::mysql'.
# Error: Can't load '/Users/robert/.cpan/build/DBD-mysql-4.048-0/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/robert/.cpan/build/DBD-mysql-4.048-0/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Symbol not found: _mysql_affected_rows
# Referenced from: /Users/robert/.cpan/build/DBD-mysql-4.048-0/blib/arch/auto/DBD/mysql/mysql.bundle
# Expected in: flat namespace
# in /Users/robert/.cpan/build/DBD-mysql-4.048-0/blib/arch/auto/DBD/mysql/mysql.bundle at /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/DynaLoader.pm line 197.
# at t/00base.t line 15.
# Compilation failed in require at t/00base.t line 15.
# BEGIN failed--compilation aborted at t/00base.t line 15.
Bailout called. Further testing stopped: Unable to load DBD::mysql
FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 255
... and there it is. The same error. Now I also tried MariaDB - same result, although slightly different error messages.
What am I missing here.
So I finally found it. Of course, it was locating the libraries and include files properly.
So I went into the cpan directory on my system
/Users/robert/.cpan/build/DBD-mysql-4.048-0
After checking just where the brew installations were for both openssl and mysql, I woke up.
sudo perl Makefile.PL --libs="-L/usr/local/opt/openssl/lib -lssl -lcrypto -L/usr/local/lib -L/usr/local/Cellar/mysql/8.0.12/lib -lmysqlclient"
Now. that worked because after looking in the mysaql lib directory, I see that the library is 'mysqlclient' and not mysql. As you see above.
Now that worked doing the Makefile.PL thing as above.
Then 'make' worked. As above. Not showing any errors... as above
Then sudo make test worked - this time.
All tests successful.
Files=73, Tests=9, 11 wallclock secs ( 0.24 usr 0.15 sys + 8.25 cusr 1.23 csys = 9.87 CPU)
Result: PASS
Finally - make install. Worked
zeus:DBD-mysql-4.048-0 robert$ sudo make install
"/usr/local/Cellar/perl/5.28.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- mysql.bs blib/arch/auto/DBD/mysql/mysql.bs 644
Manifying 3 pod documents
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
Installing /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/Bundle/DBD/mysql.pm
Installing /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/DBD/mysql.pm
Installing /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/DBD/mysql/INSTALL.pod
Installing /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/DBD/mysql/GetInfo.pm
Installing /usr/local/Cellar/perl/5.28.0/share/man/man3/Bundle::DBD::mysql.3
Installing /usr/local/Cellar/perl/5.28.0/share/man/man3/DBD::mysql::INSTALL.3
Installing /usr/local/Cellar/perl/5.28.0/share/man/man3/DBD::mysql.3
Appending installation info to /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/perllocal.pod
zeus:DBD-mysql-4.048-0 robert$ pwd
/Users/robert/.cpan/build/DBD-mysql-4.048-0
Well finally. Now why did I want this? I can't remember.
I'm using Perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-gnu-thread-multi and I'm trying to install UNIVERSAL::DOES from cpan (with sudo) using install UNIVERSAL::DOES and I get the following log:
Reading '/home/aris/.cpan/Metadata'
Database was generated on Tue, 10 Jun 2014 02:17:02 GMT
Running install for module 'UNIVERSAL::DOES'
Checksum for /home/aris/.cpan/sources/authors/id/G/GF/GFUJI/UNIVERSAL-DOES-0.004.tar.gz ok
Scanning cache /home/aris/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Configuring G/GF/GFUJI/UNIVERSAL-DOES-0.004.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for UNIVERSAL::DOES
Writing MYMETA.yml and MYMETA.json
GFUJI/UNIVERSAL-DOES-0.004.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for G/GF/GFUJI/UNIVERSAL-DOES-0.004.tar.gz
cp lib/UNIVERSAL/DOES.pm blib/lib/UNIVERSAL/DOES.pm
Manifying blib/man3/UNIVERSAL::DOES.3pm
GFUJI/UNIVERSAL-DOES-0.004.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, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/00_load.t ... 1/1 # Testing UNIVERSAL::DOES/0.004
t/00_load.t ... ok
t/01_basic.t .. 1/45
# Failed test at t/01_basic.t line 96.
# Failed test at t/01_basic.t line 97.
# Looks like you failed 2 tests of 45.
t/01_basic.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/45 subtests
Test Summary Report
-------------------
t/01_basic.t (Wstat: 512 Tests: 45 Failed: 2)
Failed tests: 33-34
Non-zero exit status: 2
Files=2, Tests=46, 0 wallclock secs ( 0.04 usr 0.01 sys + 0.07 cusr 0.01 csys = 0.13 CPU)
Result: FAIL
Failed 1/2 test programs. 2/46 subtests failed.
make: *** [test_dynamic] Error 2
GFUJI/UNIVERSAL-DOES-0.004.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports GFUJI/UNIVERSAL-DOES-0.004.tar.gz
Failed during this command:
GFUJI/UNIVERSAL-DOES-0.004.tar.gz : make_test NO
Is this the proper way to install it? Do I miss something? When I do sudo apt-get install perl I get that all are up to date.
The cpan module you're trying to install UNIVERSAL::DOES is specifically for versions of perl prior to v5.10 when DOES was added to Core: "UNIVERSAL::DOES()" in perl5100delta.
You can find the module and inspect it using:
perl -MUNIVERSAL -e 'print $INC{"UNIVERSAL.pm"}'
Outputs (on my system)
C:/strawberry/perl/lib/UNIVERSAL.pm
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.
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