Can't locate Algorithm/ExpectationMaximization.pm in #INC [duplicate] - perl

This question already has an answer here:
cpan "Set::IntervalTree " or "Algorithm::ExpectationMaximization" doesn't work - I explain below the complete error log
(1 answer)
Closed 2 years ago.
I'm trying to use a Gitlab , where a perl module known as "Algorithm/ExpectationMaximization" is required as a dependency,
I have all the requirements installed in a virtual env. using conda on a linux op
now using the script seems to bug at the module I mentioned above for some reason I cant understand
I did cpan the module as I couldn't find it in any conda channel !
here I cpan it one more time to show you the logs of the installation, maybe you can spot the error and help me:
Running install for module 'Algorithm::ExpectationMaximization'
Checksum for ../.cpan/sources/authors/id/A/AV/AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring A/AV/AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Math::GSL 0.26 not found.
Warning: prerequisite Math::Random 0.71 not found.
Generating a Unix-style Makefile
Writing Makefile for Algorithm::ExpectationMaximization
Writing MYMETA.yml and MYMETA.json
AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz
../anaconda2/envs/py27/bin/perl Makefile.PL -- OK
Running make for A/AV/AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz
---- Unsatisfied dependencies detected during ----
---- AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz ----
Math::GSL [requires]
Math::Random [requires]
Running install for module 'Math::GSL'
Checksum for ../.cpan/sources/authors/id/H/HA/HAKONH/Math-GSL-0.42.tar.gz ok
---- Unsatisfied dependencies detected during ----
---- HAKONH/Math-GSL-0.42.tar.gz ----
Alien::GSL [build_requires]
Running install for module 'Alien::GSL'
Checksum for ../.cpan/sources/authors/id/J/JB/JBERGER/Alien-GSL-1.02.tar.gz ok
---- Unsatisfied dependencies detected during ----
---- JBERGER/Alien-GSL-1.02.tar.gz ----
Alien::Base::ModuleBuild [build_requires]
Running install for module 'Alien::Base::ModuleBuild'
Checksum for ../.cpan/sources/authors/id/P/PL/PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz ok
Configuring P/PL/PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz with Build.PL
Checking prerequisites...
requires:
! Shell::Config::Generate is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Alien-Base-ModuleBuild' version '1.14'
PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz
../anaconda2/envs/py27/bin/perl Build.PL -- OK
Running Build for P/PL/PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz
---- Unsatisfied dependencies detected during ----
---- PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz ----
# Failed test 'csh'
# at t/shell_config_generate__append_path.t line 50.
# Failed test '[bsd-csh] FOO_PATH1 = foo bar baz'
# at t/shell_config_generate__append_path.t line 47.
# +------+------------------+----+-------+
# | PATH | GOT | OP | CHECK |
# +------+------------------+----+-------+
# | [0] | baz | eq | foo |
# | [1] | <DOES NOT EXIST> | | bar |
# | [2] | <DOES NOT EXIST> | | baz |
# +------+------------------+----+-------+
# Failed test 'bsd-csh'
# at t/shell_config_generate__append_path.t line 50.
Test Summary Report
-------------------
t/shell_config_generate__append_path.t (Wstat: 1024 Tests: 5 Failed: 4)
Failed tests: 2-5
Non-zero exit status: 4
t/shell_config_generate__prepend_path.t (Wstat: 1024 Tests: 5 Failed: 4)
Failed tests: 2-5
Non-zero exit status: 4
Files=13, Tests=80, 85 wallclock secs ( 0.11 usr 0.03 sys + 125.48 cusr 15.11 csys = 140.73 CPU)
Result: FAIL
Failed 2/13 test programs. 8/80 subtests failed.
make: *** [Makefile:857: test_dynamic] Error 255
PLICEASE/Shell-Config-Generate-0.34.tar.gz
../anaconda2/envs/py27/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PLICEASE/Shell-Config-Generate-0.34.tar.gz
PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz
Has already been unwrapped into directory ../.cpan/build/Alien-Base-ModuleBuild-1.14-3
PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz
Has already been prepared
Running Build for P/PL/PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz
Warning: Prerequisite 'Shell::Config::Generate => 0' for 'PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz' failed when processing 'PLICEASE/Shell-Config-Generate-0.34.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited.
Building Alien-Base-ModuleBuild
PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz
./Build -- OK
Running Build test
t/00_diag.t .................................. 1/? #
#
#
# HARNESS_ACTIVE=1
# HARNESS_VERSION=3.38
# LANG=en_GB.UTF-8
# PERL5LIB=../.cpan/build/Alien-Base-ModuleBuild-1.14-3/blib/lib:../.cpan/build/Alien-Base-ModuleBuild-1.14-3/blib/arch:
# PERL5OPT=
# PERL5_CPANPLUS_IS_RUNNING=18483
# PERL5_CPAN_IS_RUNNING=18483
# PERL_DL_NONLAZY=1
# PERL_MM_USE_DEFAULT=1
# PERL_USE_UNSAFE_INC=1
# SHELL=/bin/bash
#
#
#
# PERL5LIB path
# ../.cpan/build/Alien-Base-ModuleBuild-1.14-3/blib/lib
# ../.cpan/build/Alien-Base-ModuleBuild-1.14-3/blib/arch
#
#
#
# perl 5.026002
# Acme::Alien::DontPanic -
# Alien::Base 2.26
# Alien::Base::PkgConfig 2.26
# Archive::Extract 0.86
# Archive::Tar 2.24
# Capture::Tiny 0.48
# Digest::SHA 5.96
# File::chdir 0.1010
# HTML::LinkExtor 3.69
# HTTP::Tiny 0.070
# Inline -
# Inline::C -
# Inline::CPP -
# LWP::UserAgent 6.15
# List::Util 1.52
# Module::Build 0.4231
# Path::Tiny 0.114
# Shell::Config::Generate -
# Shell::Guess 0.09
# Sort::Versions 1.62
# Test2::V0 0.000130
# Text::ParseWords 3.30
# URI 1.74
# URI::file 4.21
# parent 0.236
#
#
#
t/00_diag.t .................................. ok
t/alien_base_modulebuild.t ................... Can't locate Shell/Config/Generate.pm in #INC (you may need to install the Shell::Config::Generate module) (#INC contains: t/lib ../.cpan/build/Alien-Base-ModuleBuild-1.14-3/blib/lib ../.cpan/build/Alien-Base-ModuleBuild-1.14-3/blib/arch ../anaconda2/envs/py27/lib/site_perl/5.26.2/x86_64-linux-thread-multi ../anaconda2/envs/py27/lib/site_perl/5.26.2 ../anaconda2/envs/py27/lib/5.26.2/x86_64-linux-thread-multi ../anaconda2/envs/py27/lib/5.26.2 .) at ../.cpan/build/Alien-Base-ModuleBuild-1.14-3/blib/lib/Alien/Base/ModuleBuild.pm line 21.
BEGIN failed--compilation aborted at ../.cpan/build/Alien-Base-ModuleBuild-1.14-3/blib/lib/Alien/Base/ModuleBuild.pm line 21.
Compilation failed in require at t/alien_base_modulebuild.t line 4.
BEGIN failed--compilation aborted at t/alien_base_modulebuild.t line 4.
t/alien_base_modulebuild.t ................... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/alien_base_modulebuild_cabinet.t ........... ok
t/alien_base_modulebuild_file.t .............. ok
t/alien_base_modulebuild_repository.t ........ ok
t/alien_base_modulebuild_repository_ftp.t .... ok
t/alien_base_modulebuild_repository_http.t ... ok
t/alien_base_modulebuild_repository_local.t .. ok
t/alien_base_modulebuild_utils.t ............. ok
t/inline.t ................................... skipped: test requires Inline 0.56 + Inline::C + Acme::Alien::DontPanic 0.010
t/inline_cpp.t ............................... skipped: test requires Inline 0.56 + Inline::C + Acme::Alien::DontPanic 0.010
Test Summary Report
-------------------
t/alien_base_modulebuild.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=11, Tests=39, 7 wallclock secs ( 0.07 usr 0.03 sys + 3.27 cusr 0.26 csys = 3.63 CPU)
Result: FAIL
Failed 1/11 test programs. 0/39 subtests failed.
PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz
one dependency not OK (Shell::Config::Generate); additionally test harness failed
./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz
JBERGER/Alien-GSL-1.02.tar.gz
Has already been unwrapped into directory ../.cpan/build/Alien-GSL-1.02-3
Warning: Prerequisite 'Alien::Base::ModuleBuild => 0' for 'JBERGER/Alien-GSL-1.02.tar.gz' failed when processing 'PLICEASE/Alien-Base-ModuleBuild-1.14.tar.gz' with 'make_test => NO one dependency not OK (Shell::Config::Generate); additionally test harness failed'. Continuing, but chances to succeed are limited.
Configuring J/JB/JBERGER/Alien-GSL-1.02.tar.gz with Build.PL
Can't locate Alien/Base/ModuleBuild.pm in #INC (you may need to install the Alien::Base::ModuleBuild module) (#INC contains: ../anaconda2/envs/py27/lib/site_perl/5.26.2/x86_64-linux-thread-multi ../anaconda2/envs/py27/lib/site_perl/5.26.2 ../anaconda2/envs/py27/lib/5.26.2/x86_64-linux-thread-multi ../anaconda2/envs/py27/lib/5.26.2 .) at Build.PL line 4.
BEGIN failed--compilation aborted at Build.PL line 4.
Warning: No success on command[../anaconda2/envs/py27/bin/perl Build.PL]
JBERGER/Alien-GSL-1.02.tar.gz
../anaconda2/envs/py27/bin/perl Build.PL -- NOT OK
HAKONH/Math-GSL-0.42.tar.gz
Has already been unwrapped into directory ../.cpan/build/Math-GSL-0.42-3
Warning: Prerequisite 'Alien::GSL => 1.01' for 'HAKONH/Math-GSL-0.42.tar.gz' failed when processing 'JBERGER/Alien-GSL-1.02.tar.gz' with 'writemakefile => NO '../anaconda2/envs/py27/bin/perl Build.PL' returned status 512'. Continuing, but chances to succeed are limited.
Configuring H/HA/HAKONH/Math-GSL-0.42.tar.gz with Build.PL
Checking for GSL using gsl-config
Found GSL 2.4 (via gsl-config) installed in ../anaconda2/envs/py27
Checking if /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc supports "-Wall"...Can't exec "/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc": No such file or directory at Build.PL line 212.
*** The test compile of 'tmp23873.c' failed: status -1
*** (the status means: errno = 72057594037927935 or 'Unknown error -1')
*** DO NOT PANIC: this just means that you may get some innocuous
*** compiler warnings.
no
Checking if /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc supports "-Wno-sometimes-uninitialized"...Can't exec "/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc": No such file or directory at Build.PL line 212.
*** The test compile of 'tmp23873.c' failed: status -1
*** (the status means: errno = 72057594037927935 or 'Unknown error -1')
*** DO NOT PANIC: this just means that you may get some innocuous
*** compiler warnings.
no
Checking if /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc supports "-Wno-unused-function"...Can't exec "/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc": No such file or directory at Build.PL line 212.
*** The test compile of 'tmp23873.c' failed: status -1
*** (the status means: errno = 72057594037927935 or 'Unknown error -1')
*** DO NOT PANIC: this just means that you may get some innocuous
*** compiler warnings.
no
Checking if /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc supports "-Wno-unused-value"...Can't exec "/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc": No such file or directory at Build.PL line 212.
*** The test compile of 'tmp23873.c' failed: status -1
*** (the status means: errno = 72057594037927935 or 'Unknown error -1')
*** DO NOT PANIC: this just means that you may get some innocuous
*** compiler warnings.
no
Checking if /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc supports "-Wno-unused-function"...Can't exec "/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc": No such file or directory at Build.PL line 212.
*** The test compile of 'tmp23873.c' failed: status -1
*** (the status means: errno = 72057594037927935 or 'Unknown error -1')
*** DO NOT PANIC: this just means that you may get some innocuous
*** compiler warnings.
no
Checking if /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc supports "-Wno-unused-variable"...Can't exec "/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc": No such file or directory at Build.PL line 212.
*** The test compile of 'tmp23873.c' failed: status -1
*** (the status means: errno = 72057594037927935 or 'Unknown error -1')
*** DO NOT PANIC: this just means that you may get some innocuous
*** compiler warnings.
no
Checking if /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc supports "-Wno-gnu"...Can't exec "/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc": No such file or directory at Build.PL line 212.
*** The test compile of 'tmp23873.c' failed: status -1
*** (the status means: errno = 72057594037927935 or 'Unknown error -1')
*** DO NOT PANIC: this just means that you may get some innocuous
*** compiler warnings.
no
Checking if /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc supports "-g"...Can't exec "/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc": No such file or directory at Build.PL line 212.
*** The test compile of 'tmp23873.c' failed: status -1
*** (the status means: errno = 72057594037927935 or 'Unknown error -1')
*** DO NOT PANIC: this just means that you may get some innocuous
*** compiler warnings.
no
Checking prerequisites...
build_requires:
! Test::Taint is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Math-GSL' version '0.42'
Have a great day!
HAKONH/Math-GSL-0.42.tar.gz
../anaconda2/envs/py27/bin/perl Build.PL -- OK
Running Build for H/HA/HAKONH/Math-GSL-0.42.tar.gz
---- Unsatisfied dependencies detected during ----
---- HAKONH/Math-GSL-0.42.tar.gz ----
Test::Taint [build_requires]
Running install for module 'Test::Taint'
Checksum for ../.cpan/sources/authors/id/P/PE/PETDANCE/Test-Taint-1.08.tar.gz ok
Configuring P/PE/PETDANCE/Test-Taint-1.08.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Test::Taint
Writing MYMETA.yml and MYMETA.json
PETDANCE/Test-Taint-1.08.tar.gz
../anaconda2/envs/py27/bin/perl Makefile.PL -- OK
Running make for P/PE/PETDANCE/Test-Taint-1.08.tar.gz
cp Taint.pm blib/lib/Test/Taint.pm
Running Mkbootstrap for Taint ()
chmod 644 "Taint.bs"
"../anaconda2/envs/py27/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Taint.bs blib/arch/auto/Test/Taint/Taint.bs 644
"../anaconda2/envs/py27/bin/perl" "../anaconda2/envs/py27/lib/5.26.2/ExtUtils/xsubpp" -typemap '../anaconda2/envs/py27/lib/5.26.2/ExtUtils/typemap' Taint.xs > Taint.xsc
Please specify prototyping behavior for Taint.xs (see perlxs manual)
mv Taint.xsc Taint.c
/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE --sysroot=/tmp/build/80754af9/perl_1527832170752/_build_env/x86_64-conda_cos6-linux-gnu/sysroot -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC --sysroot=/tmp/build/80754af9/perl_1527832170752/_build_env/x86_64-conda_cos6-linux-gnu/sysroot "-I../anaconda2/envs/py27/lib/5.26.2/x86_64-linux-thread-multi/CORE" Taint.c
/bin/sh: 1: /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc: not found
make: *** [Makefile:331: Taint.o] Error 127
PETDANCE/Test-Taint-1.08.tar.gz
../anaconda2/envs/py27/bin/make -- NOT OK
HAKONH/Math-GSL-0.42.tar.gz
Has already been unwrapped into directory ../.cpan/build/Math-GSL-0.42-3
HAKONH/Math-GSL-0.42.tar.gz
Has already been prepared
Running Build for H/HA/HAKONH/Math-GSL-0.42.tar.gz
Warning: Prerequisite 'Test::Taint => 1.06' for 'HAKONH/Math-GSL-0.42.tar.gz' failed when processing 'PETDANCE/Test-Taint-1.08.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Building Math-GSL
Processing 2.4 XS files, GSL 2.4 (via gsl-config) at ../anaconda2/envs/py27
Can't exec "/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc": No such file or directory at inc/GSLBuilder.pm line 38.
Use of uninitialized value in concatenation (.) or string at inc/GSLBuilder.pm line 38.
Compiler =
ccflags = -fPIC --sysroot=/tmp/build/80754af9/perl_1527832170752/_build_env/x86_64-conda_cos6-linux-gnu/sysroot -I../anaconda2/envs/py27/include -D_REENTRANT -D_GNU_SOURCE --sysroot=/tmp/build/80754af9/perl_1527832170752/_build_env/x86_64-conda_cos6-linux-gnu/sysroot -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -fPIC -fno-omit-frame-pointer -I../anaconda2/envs/py27/include
ldflags = -shared -L../anaconda2/envs/py27/lib -lgsl -lgslcblas -lm -fPIC -fno-omit-frame-pointer
PERL5LIB =
LD_LIBRARY_PATH =
/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc -I.../../lib/5.26.2/x86_64-linux-thread-multi/CORE -c --sysroot=/tmp/build/80754af9/perl_1527832170752/_build_env/x86_64-conda_cos6-linux-gnu/sysroot -D_REENTRANT -D_GNU_SOURCE --sysroot=/tmp/build/80754af9/perl_1527832170752/_build_env/x86_64-conda_cos6-linux-gnu/sysroot -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -fPIC --sysroot=/tmp/build/80754af9/perl_1527832170752/_build_env/x86_64-conda_cos6-linux-gnu/sysroot -I../anaconda2/envs/py27/include -D_REENTRANT -D_GNU_SOURCE --sysroot=/tmp/build/80754af9/perl_1527832170752/_build_env/x86_64-conda_cos6-linux-gnu/sysroot -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -fPIC -fno-omit-frame-pointer -I../anaconda2/envs/py27/include -o xs/Diff_wrap.2.4.o xs/Diff_wrap.2.4.c
Can't exec "/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc": No such file or directory at ../anaconda2/envs/py27/lib/site_perl/5.26.2/Module/Build/Base.pm line 5553.
error building .o file from 'xs/Diff_wrap.2.4.c' at inc/GSLBuilder.pm line 336.
HAKONH/Math-GSL-0.42.tar.gz
./Build -- NOT OK
Running install for module 'Math::Random'
Checksum for ../.cpan/sources/authors/id/G/GR/GROMMEL/Math-Random-0.72.tar.gz ok
Configuring G/GR/GROMMEL/Math-Random-0.72.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lm
Generating a Unix-style Makefile
Writing Makefile for Math::Random
Writing MYMETA.yml and MYMETA.json
GROMMEL/Math-Random-0.72.tar.gz
../anaconda2/envs/py27/bin/perl Makefile.PL -- OK
Running make for G/GR/GROMMEL/Math-Random-0.72.tar.gz
cp test1.pl blib/lib/Math/test1.pl
cp example.pl blib/lib/Math/example.pl
cp Random.pm blib/lib/Math/Random.pm
AutoSplitting blib/lib/Math/Random.pm (blib/lib/auto/Math/Random)
cp test2.pl blib/lib/Math/test2.pl
Running Mkbootstrap for Random ()
chmod 644 "Random.bs"
"../anaconda2/envs/py27/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Random.bs blib/arch/auto/Math/Random/Random.bs 644
"../anaconda2/envs/py27/bin/perl" "../anaconda2/envs/py27/lib/5.26.2/ExtUtils/xsubpp" -typemap '../anaconda2/envs/py27/lib/5.26.2/ExtUtils/typemap' Random.xs > Random.xsc
mv Random.xsc Random.c
/tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE --sysroot=/tmp/build/80754af9/perl_1527832170752/_build_env/x86_64-conda_cos6-linux-gnu/sysroot -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"0.72\" -DXS_VERSION=\"0.72\" -fPIC --sysroot=/tmp/build/80754af9/perl_1527832170752/_build_env/x86_64-conda_cos6-linux-gnu/sysroot "-I../anaconda2/envs/py27/lib/5.26.2/x86_64-linux-thread-multi/CORE" Random.c
/bin/sh: 1: /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc: not found
make: *** [Makefile:346: Random.o] Error 127
GROMMEL/Math-Random-0.72.tar.gz
../anaconda2/envs/py27/bin/make -- NOT OK
AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz
Has already been unwrapped into directory ../.cpan/build/Algorithm-ExpectationMaximization-1.22-2
AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz
Has already been prepared
Running make for A/AV/AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz
Warning: Prerequisite 'Math::GSL => 0.26' for 'AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz' failed when processing 'HAKONH/Math-GSL-0.42.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'Math::Random => 0.71' for 'AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz' failed when processing 'GROMMEL/Math-Random-0.72.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
cp lib/Algorithm/ExpectationMaximization.pm blib/lib/Algorithm/ExpectationMaximization.pm
Manifying 1 pod document
AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz
../anaconda2/envs/py27/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 "../anaconda2/envs/py27/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/test.t .. Can't locate Math/Random.pm in #INC (you may need to install the Math::Random module) (#INC contains: ../blib/lib ../blib/arch ../.cpan/build/Algorithm-ExpectationMaximization-1.22-2/blib/lib ../.cpan/build/Algorithm-ExpectationMaximization-1.22-2/blib/arch ../anaconda2/envs/py27/lib/site_perl/5.26.2/x86_64-linux-thread-multi ../anaconda2/envs/py27/lib/site_perl/5.26.2 ../anaconda2/envs/py27/lib/5.26.2/x86_64-linux-thread-multi ../anaconda2/envs/py27/lib/5.26.2 .) at ../.cpan/build/Algorithm-ExpectationMaximization-1.22-2/blib/lib/Algorithm/ExpectationMaximization.pm line 18.
BEGIN failed--compilation aborted at ../.cpan/build/Algorithm-ExpectationMaximization-1.22-2/blib/lib/Algorithm/ExpectationMaximization.pm line 18.
Compilation failed in require at t/test.t line 5.
BEGIN failed--compilation aborted at t/test.t line 5.
# Looks like your test exited with 2 before it could output anything.
t/test.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 3/3 subtests
Test Summary Report
-------------------
t/test.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 3 tests but ran 0.
Files=1, Tests=0, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.09 cusr 0.00 csys = 0.12 CPU)
Result: FAIL
Failed 1/1 test programs. 0/0 subtests failed.
make: *** [Makefile:852: test_dynamic] Error 2
AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz
2 dependencies missing (Math::GSL,Math::Random); additionally test harness failed
../anaconda2/envs/py27/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports AVIKAK/Algorithm-ExpectationMaximization-1.22.tar.gz

It is a bit dense, but the most important statement in the output is this:
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
For starters, go back and install those modules. In this case:
Shell::Config::Generate
Test::Taint
Math::Random
Math::GSL
Now, what I don't know is why they weren't automatically installed as pre-requisites. I looked at cpamn and App::cpanminus and I didn't see where you would tell cpanm to recursively download and install all dependencies. Maybe someone else can help out with that.

Related

How do I install GD for 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

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.

Unable To Install LWP::Simple (Perl module) On Solaris 11

I'm running...
Perl 5.12
Solaris 11.1
... and I can't seem to get LWP::Simple installed by using the "cpan" tool. When I attempt to do so, I receive...
cpan[1]> install LWP::Simple
Reading '/root/.cpan/Metadata'
Database was generated on Mon, 20 Jan 2014 11:17:02 GMT
Running install for module 'LWP::Simple'
Running make for G/GA/GAAS/libwww-perl-6.05.tar.gz
Checksum for /root/.cpan/sources/authors/id/G/GA/GAAS/libwww-perl-6.05.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
CPAN.pm: Building G/GA/GAAS/libwww-perl-6.05.tar.gz
Can't connect: IO::Socket::INET: connect: Invalid argument
The can-we-talk-to-ourself test failed.
Checking if your kit is complete...
Looks good
Warning: prerequisite HTML::Entities 0 not found.
Warning: prerequisite HTML::HeadParser 0 not found.
Writing Makefile for LWP
Could not read metadata file. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- GAAS/libwww-perl-6.05.tar.gz ----
HTML::Entities [requires]
HTML::HeadParser [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'HTML::Entities'
Running make for G/GA/GAAS/HTML-Parser-3.71.tar.gz
Checksum for /root/.cpan/sources/authors/id/G/GA/GAAS/HTML-Parser-3.71.tar.gz ok
CPAN.pm: Building G/GA/GAAS/HTML-Parser-3.71.tar.gz
Checking if your kit is complete...
Looks good
Processing hints file hints/solaris.pl
Writing Makefile for HTML::Parser
cp lib/HTML/PullParser.pm blib/lib/HTML/PullParser.pm
cp Parser.pm blib/lib/HTML/Parser.pm
cp lib/HTML/Entities.pm blib/lib/HTML/Entities.pm
cp lib/HTML/LinkExtor.pm blib/lib/HTML/LinkExtor.pm
cp lib/HTML/TokeParser.pm blib/lib/HTML/TokeParser.pm
cp lib/HTML/HeadParser.pm blib/lib/HTML/HeadParser.pm
cp lib/HTML/Filter.pm blib/lib/HTML/Filter.pm
/usr/perl5/5.12/bin/perl mkhctype >hctype.h
/usr/perl5/5.12/bin/perl mkpfunc >pfunc.h
/usr/perl5/5.12/bin/perl /usr/perl5/5.12/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.12/lib/ExtUtils/typemap -typemap typemap Parser.xs > Parser.xsc && mv Parser.xsc Parser.c
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -xO4 -DVERSION=\"3.71\" -DXS_VERSION=\"3.71\" -KPIC "-I/usr/perl5/5.12/lib/sun4-solaris-64int/CORE" -DMARKED_SECTION Parser.c
sh: line 1: cc: not found
*** Error code 127
make: Fatal error: Command failed for target `Parser.o'
GAAS/HTML-Parser-3.71.tar.gz
/usr/bin/make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Running install for module 'HTML::HeadParser'
Running make for G/GA/GAAS/HTML-Parser-3.71.tar.gz
Has already been unwrapped into directory /root/.cpan/build/HTML-Parser-3.71-gMF8Mw
Could not make: Unknown error
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Running make for G/GA/GAAS/libwww-perl-6.05.tar.gz
Has already been unwrapped into directory /root/.cpan/build/libwww-perl-6.05-HwKLBD
CPAN.pm: Building G/GA/GAAS/libwww-perl-6.05.tar.gz
Warning: Prerequisite 'HTML::Entities => 0' for 'GAAS/libwww-perl-6.05.tar.gz' failed when processing 'GAAS/HTML-Parser-3.71.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'HTML::HeadParser => 0' for 'GAAS/libwww-perl-6.05.tar.gz' failed when processing 'GAAS/HTML-Parser-3.71.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
cp lib/LWP/RobotUA.pm blib/lib/LWP/RobotUA.pm
cp lib/LWP/Debug.pm blib/lib/LWP/Debug.pm
cp lib/LWP/Authen/Ntlm.pm blib/lib/LWP/Authen/Ntlm.pm
cp lib/LWP.pm blib/lib/LWP.pm
cp lib/LWP/Protocol.pm blib/lib/LWP/Protocol.pm
cp lib/LWP/ConnCache.pm blib/lib/LWP/ConnCache.pm
cp lwptut.pod blib/lib/lwptut.pod
cp lib/LWP/Protocol/ftp.pm blib/lib/LWP/Protocol/ftp.pm
cp lib/LWP/Authen/Digest.pm blib/lib/LWP/Authen/Digest.pm
cp lib/LWP/Protocol/gopher.pm blib/lib/LWP/Protocol/gopher.pm
cp lib/LWP/Protocol/cpan.pm blib/lib/LWP/Protocol/cpan.pm
cp lwpcook.pod blib/lib/lwpcook.pod
cp lib/LWP/Protocol/file.pm blib/lib/LWP/Protocol/file.pm
cp lib/LWP/Protocol/GHTTP.pm blib/lib/LWP/Protocol/GHTTP.pm
cp lib/LWP/DebugFile.pm blib/lib/LWP/DebugFile.pm
cp lib/LWP/Protocol/data.pm blib/lib/LWP/Protocol/data.pm
cp lib/LWP/Protocol/nogo.pm blib/lib/LWP/Protocol/nogo.pm
cp lib/LWP/Authen/Basic.pm blib/lib/LWP/Authen/Basic.pm
cp lib/LWP/Protocol/nntp.pm blib/lib/LWP/Protocol/nntp.pm
cp lib/LWP/UserAgent.pm blib/lib/LWP/UserAgent.pm
cp lib/LWP/Simple.pm blib/lib/LWP/Simple.pm
cp lib/LWP/Protocol/loopback.pm blib/lib/LWP/Protocol/loopback.pm
cp lib/LWP/Protocol/mailto.pm blib/lib/LWP/Protocol/mailto.pm
cp lib/LWP/Protocol/http.pm blib/lib/LWP/Protocol/http.pm
cp lib/LWP/MemberMixin.pm blib/lib/LWP/MemberMixin.pm
cp bin/lwp-dump blib/script/lwp-dump
/usr/perl5/5.12/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-dump
cp bin/lwp-mirror blib/script/lwp-mirror
/usr/perl5/5.12/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-mirror
cp bin/lwp-download blib/script/lwp-download
/usr/perl5/5.12/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-download
cp bin/lwp-request blib/script/lwp-request
/usr/perl5/5.12/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-request
Manifying blib/man1/lwp-dump.1
Manifying blib/man1/lwp-mirror.1
Manifying blib/man1/lwp-download.1
Manifying blib/man1/lwp-request.1
Manifying blib/man3/LWP::RobotUA.3
Manifying blib/man3/LWP::Debug.3
Manifying blib/man3/lwpcook.3
Manifying blib/man3/LWP::Authen::Ntlm.3
Manifying blib/man3/LWP.3
Manifying blib/man3/LWP::ConnCache.3
Manifying blib/man3/LWP::Protocol.3
Manifying blib/man3/lwptut.3
Manifying blib/man3/LWP::Simple.3
Manifying blib/man3/LWP::UserAgent.3
Manifying blib/man3/LWP::MemberMixin.3
GAAS/libwww-perl-6.05.tar.gz
/usr/bin/make -- OK
Running make test
/usr/perl5/5.12/bin/perl t/TEST 0
base/protocols.t ...... ok
base/ua.t ............. 1/35 # Failed test 13 in base/ua.t at line 56
# base/ua.t line 56 is: ok($res->header("Content-Style-Type", "text/css"));
# Failed test 14 in base/ua.t at line 57
# base/ua.t line 57 is: ok($res->header("Content-Script-Type", "text/javascript"));
base/ua.t ............. Failed 2/35 subtests
robot/ua-get.t ........ skipped: Can't talk to ourself (misconfigured system)
robot/ua.t ............ skipped: Can't talk to ourself (misconfigured system)
local/autoload-get.t .. Failed 1/1 subtests
local/autoload.t ...... 1/1 # Failed test 1 in local/autoload.t at line 22
# local/autoload.t line 22 is: ok($response->is_success);
local/autoload.t ...... Failed 1/1 subtests
local/get.t ........... ok
local/http.t .......... skipped: Can't talk to ourself (misconfigured system)
local/protosub.t ...... ok
Test Summary Report
-------------------
base/ua.t (Wstat: 0 Tests: 35 Failed: 2)
Failed tests: 13-14
local/autoload-get.t (Wstat: 0 Tests: 1 Failed: 1)
Failed test: 1
local/autoload.t (Wstat: 0 Tests: 1 Failed: 1)
Failed test: 1
Files=9, Tests=51, 4 wallclock secs ( 0.27 usr 0.09 sys + 3.04 cusr 0.34 csys = 3.74 CPU)
Result: FAIL
Failed 3/9 test programs. 4/51 subtests failed.
*** Error code 255
make: Fatal error: Command failed for target `test'
GAAS/libwww-perl-6.05.tar.gz
2 dependencies missing (HTML::HeadParser,HTML::Entities); additionally test harness failed
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports GAAS/libwww-perl-6.05.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
GAAS/HTML-Parser-3.71.tar.gz : make NO
GAAS/libwww-perl-6.05.tar.gz : make_test NO 2 dependencies missing (HTML::HeadParser,HTML::Entities); additionally test harness failed
cpan[2]>
What gives?
I realize there may be a few failures contributing to this.
Thanks in advance,
Gary
Look at your first error message:
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -xO4 -DVERSION=\"3.71\" -DXS_VERSION=\"3.71\" -KPIC "-I/usr/perl5/5.12/lib/sun4-solaris-64int/CORE" -DMARKED_SECTION Parser.c
sh: line 1: cc: not found
*** Error code 127
Some parts of HTML::Parser, which is a prerequisite to LWP::Simple, are written in C and need a c compiler, which you don't have installed.
Ran across this post when i was having a similar problem with openindiana and compiling lwp. The wrapper in the blog below actually solved all my problems I just put in /usr/bin/cc and have had great luck. Hope it helps anyone else having the problem.
http://blog.zorinaq.com/?e=30
In case the blog ever goes away here is the python code wrapper
#!/usr/bin/python
# cc(1) wrapper to build CPAN Perl modules with GCC on OpenSolaris. -mrb
import os, sys
path = '/usr/bin/gcc'
args = []
i = 0
while i < len(sys.argv):
if i == 0:
args.append(path)
elif sys.argv[i] == '-KPIC':
args.append('-fPIC')
elif sys.argv[i] == '-xO3':
args.append('-O3')
elif sys.argv[i] == '-xspace':
pass
elif sys.argv[i] == '-xildoff':
pass
else:
args.append(sys.argv[i])
i += 1
os.execv(path, args)
If you want to build CPAN modules to install in the supported perl tree, then you need to use Solaris Studio 12.1 ( for Solaris 11 and 11.1). You can download this from the url which Guntram mentioned.

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

Perl Event::Lib install fails all tests in OSX 10.8

I'm running Mac OSX 10.8.3; I installed libevent 2.0.21 (universal) with homebrew; I manage a private Perl 5.16 environment with perlbrew. I'm having trouble installing the CPAN module Event::Lib -- specifically, every single test fails.
When I force installation, perl -e 'use Event::Lib;' segfaults.
I suspect this has something to do with the libevent installation: in the attached log, there are warnings about directories not being found when checking for the existence of libevent, but nothing definitively stating that libevent couldn't be found.
This describes a similar sounding problem, but the solution involved compiling libevent as a universal, which I've tried.
Any suggestions? Install log follows.
~🍔 cpanm --reinstall Event::Lib
--> Working on Event::Lib
Fetching http://www.cpan.org/authors/id/V/VP/VPARSEVAL/Event-Lib-1.03.tar.gz ... OK
Configuring Event-Lib-1.03 ... OK
Building and testing Event-Lib-1.03 ... FAIL
! Installing Event::Lib failed. See /Users/chap/.cpanm/build.log for details.
~🍔 cat .cpanm/build.log
cpanm (App::cpanminus) 1.5018 on perl 5.016001 built for darwin-2level
Work directory is /Users/chap/.cpanm/work/1370047478.40810
You have make /usr/bin/make
You have LWP 6.04
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching Event::Lib on cpanmetadb ...
--> Working on Event::Lib
Fetching http://www.cpan.org/authors/id/V/VP/VPARSEVAL/Event-Lib-1.03.tar.gz
-> OK
Unpacking Event-Lib-1.03.tar.gz
Entering Event-Lib-1.03
Checking configure dependencies from META.yml
Configuring Event-Lib-1.03
Running Makefile.PL
Checking existance of libevent...ld: warning: directory not found for option '-L/sw/lib'
ld: warning: directory not found for option '-L/opt/local/lib'
yes
Checking capabilities...
event_set_log_callback...yes
event_priority_init...yes
Additional defines: -DHAVE_LOG_CALLBACKS -DHAVE_PRIORITIES
Checking if your kit is complete...
Looks good
Writing Makefile for Event::Lib
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.63_02)
Building and testing Event-Lib-1.03
cp Lib/Event/Lib.pm blib/lib/Event/Lib.pm
Skip blib/lib/Event/Lib.pm (unchanged)
/Users/chap/perl5/perlbrew/perls/perl-5.16.1/bin/perl /Users/chap/perl5/perlbrew/perls/perl-5.16.1/lib/site_perl/5.16.1/ExtUtils/xsubpp -typemap /Users/chap/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1/ExtUtils/typemap -typemap typemap Lib.xs > Lib.xsc && mv Lib.xsc Lib.c
cc -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O3 -DVERSION=\"1.03\" -DXS_VERSION=\"1.03\" "-I/Users/chap/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1/darwin-2level/CORE" -DHAVE_CONFIG_H -DHAVE_LOG_CALLBACKS -DHAVE_PRIORITIES Lib.c
Running Mkbootstrap for Event::Lib ()
chmod 644 Lib.bs
rm -f blib/arch/auto/Event/Lib/Lib.bundle
LD_RUN_PATH="/usr/local/lib" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector Lib.o -o blib/arch/auto/Event/Lib/Lib.bundle \
-levent -lm \
chmod 755 blib/arch/auto/Event/Lib/Lib.bundle
cp Lib.bs blib/arch/auto/Event/Lib/Lib.bs
chmod 644 blib/arch/auto/Event/Lib/Lib.bs
Manifying blib/man3/Event::Lib::Event::Lib.3
Manifying blib/man3/Event::Lib.3
PERL_DL_NONLAZY=1 /Users/chap/perl5/perlbrew/perls/perl-5.16.1/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_pod.t ....................... ok
t/00_pod_coverage.t .............. ok
t/01_event-lib.t .................
Failed 2/2 subtests
t/10_event.t .....................
[*** snip ***]
t/62_events_readded.t ............
No subtests run
t/63_events_readded.t ............
No subtests run
t/64_pending_events_destroyed.t ..
No subtests run
t/65_stress_no_clone.t ...........
No subtests run
t/70_misc.t ......................
Failed 4/4 subtests
t/71_misc.t ......................
Failed 2/2 subtests
t/72_misc.t ......................
Failed 1/1 subtests
t/73_misc.t ......................
Failed 26/26 subtests
t/80_processes.t .................
No subtests run
t/90_leak.t ......................
No subtests run
t/91_leak.t ......................
No subtests run
t/92_leak.t ......................
No subtests run
t/93_leak.t ......................
No subtests run
Test Summary Report
-------------------
t/01_event-lib.t (Wstat: 11 Tests: 0 Failed: 0)
Non-zero wait status: 11
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/10_event.t (Wstat: 11 Tests: 0 Failed: 0)
Non-zero wait status: 11
Parse errors: Bad plan. You planned 2 tests but ran 0.
[*** snip ***]
t/93_leak.t (Wstat: 11 Tests: 0 Failed: 0)
Non-zero wait status: 11
Parse errors: No plan found in TAP output
Files=36, Tests=2, 6 wallclock secs ( 0.10 usr 0.06 sys + 0.59 cusr 0.11 csys = 0.86 CPU)
Result: FAIL
Failed 34/36 test programs. 0/2 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing Event::Lib failed. See /Users/chap/.cpanm/build.log for details.
~🍔
Try the patch in this bug report?