It is not possible to install cpanm from cpanmin.us

1,309 views
Skip to first unread message

C. L. Martinez

unread,
Aug 21, 2013, 6:38:28 AM8/21/13
to enterprise-log-s...@googlegroups.com
Hi all,

I am trying to do a fresh install in a CentOS 6.4 server, but cpanm
can not be installed.
Somebody knows how can I fix this error??

[root@cstst02 ~]# curl --insecure -L http://cpanmin.us | perl - App::cpanminus
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 261k 100 261k 0 0 183k 0 0:00:01 0:00:01 --:--:-- 930k
--> Working on App::cpanminus
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.6941.tar.gz
... OK
Configuring App-cpanminus-1.6941 ... OK
==> Found dependencies: Module::Build
--> Working on Module::Build
Fetching http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-0.4007.tar.gz
... OK
==> Found dependencies: Module::Build
Configuring Module-Build-0.4007 ... OK
==> Found dependencies: Module::Metadata, CPAN::Meta, version
--> Working on Module::Metadata
Fetching http://www.cpan.org/authors/id/B/BO/BOBTFISH/Module-Metadata-1.000014.tar.gz
... OK
Configuring Module-Metadata-1.000014 ... OK
==> Found dependencies: version
--> Working on version
Fetching http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-0.9903.tar.gz
... OK
Configuring version-0.9903 ... OK
Building and testing version-0.9903 ... FAIL
! Installing version failed. See
/root/.cpanm/work/1377081249.11700/build.log for details. Retry with
--force to force install it.
! Installing the dependencies failed: Installed version (0.77) of
version is not in range '0.87'
! Bailing out the installation for Module-Metadata-1.000014.
--> Working on CPAN::Meta
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-2.132140.tar.gz
... OK
Configuring CPAN-Meta-2.132140 ... OK
==> Found dependencies: version, CPAN::Meta::Requirements
--> Working on CPAN::Meta::Requirements
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-Requirements-2.122.tar.gz
... OK
Configuring CPAN-Meta-Requirements-2.122 ... OK
Building and testing CPAN-Meta-Requirements-2.122 ... FAIL
! Installing CPAN::Meta::Requirements failed. See
/root/.cpanm/work/1377081249.11700/build.log for details. Retry with
--force to force install it.
! Installing the dependencies failed: Installed version (0.77) of
version is not in range '0.88', Module 'CPAN::Meta::Requirements' is
not installed
! Bailing out the installation for CPAN-Meta-2.132140.
! Installing the dependencies failed: Module 'Module::Metadata' is not
installed, Module 'CPAN::Meta' is not installed, Installed version
(0.77) of version is not in range '0.87'
! Bailing out the installation for Module-Build-0.4007.
! Installing the dependencies failed: Installed version (0.35) of
Module::Build is not in range '0.36'
! Bailing out the installation for App-cpanminus-1.6941.


Example log:

cpanm (App::cpanminus) 1.6937 on perl 5.010001 built for i386-linux-thread-multi
Work directory is /root/.cpanm/work/1377081249.11700
You have make /usr/bin/make
You have LWP 5.833
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
Searching App::cpanminus on cpanmetadb ...
--> Working on App::cpanminus
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.6941.tar.gz
-> OK
Unpacking App-cpanminus-1.6941.tar.gz
Entering App-cpanminus-1.6941
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.30 ... Yes (6.55_02)
Configuring App-cpanminus-1.6941
Running Makefile.PL
Warning: prerequisite Module::Build 0.36 not found. We have 0.35.
Checking if your kit is complete...
Looks good
Writing Makefile for App::cpanminus
-> OK
Finding PREREQ from Makefile ...
Checking if you have Test::More 0 ... Yes (0.98)
Checking if you have ExtUtils::MakeMaker 6.31 ... Yes (6.55_02)
Checking if you have Module::Build 0.36 ... No (0.35 < 0.36)
Checking if you have ExtUtils::Install 1.46 ... Yes (1.54)
==> Found dependencies: Module::Build
Searching Module::Build on cpanmetadb ...
--> Working on Module::Build
Fetching http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-0.4007.tar.gz
-> OK
Unpacking Module-Build-0.4007.tar.gz
Entering Module-Build-0.4007
Checking configure dependencies from META.json
Checking if you have Module::Build 0.36 ... No (0.35 < 0.36)
==> Found dependencies: Module::Build
Already tried Module::Build. Skipping.
Configuring Module-Build-0.4007
Running Build.PL
*** BOOTSTRAPPING version ***
*** BOOTSTRAPPING Module::Metadata ***
Checking prerequisites...
requires:
! CPAN::Meta 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

Could not create MYMETA files
Copied META.yml to MYMETA.yml for bootstrapping

These additional prerequisites must be installed:
requires:
! version (we need version 0.87)
! Module::Metadata (we need version 1.000002)
Creating new 'Build' script for 'Module-Build' version '0.4007'
-> OK
Checking dependencies from MYMETA.yml ...
Checking if you have Module::Metadata 1.000002 ... No
Checking if you have File::Spec 0.82 ... Yes (3.30)
Checking if you have ExtUtils::Install 0 ... Yes (1.54)
Checking if you have File::Compare 0 ... Yes (1.1006)
Checking if you have File::Find 0 ... Yes (1.14)
Checking if you have CPAN::Meta 2.110420 ... No
Checking if you have File::Path 0 ... Yes (2.08)
Checking if you have Perl::OSType 1 ... Yes (1.003)
Checking if you have ExtUtils::Manifest 0 ... Yes (1.56)
Checking if you have ExtUtils::CBuilder 0.27 ... Yes (0.27)
Checking if you have Getopt::Long 0 ... Yes (2.38)
Checking if you have File::Copy 0 ... Yes (2.14)
Checking if you have Parse::CPAN::Meta 1.4401 ... Yes (1.4405)
Checking if you have Test::Harness 3.16 ... Yes (3.17)
Checking if you have Text::Abbrev 0 ... Yes (1.01)
Checking if you have ExtUtils::ParseXS 2.21 ... Yes (2.2203)
Checking if you have Data::Dumper 0 ... Yes (2.124)
Checking if you have version 0.87 ... No (0.77 < 0.87)
Checking if you have Pod::Man 2.17 ... Yes (2.22)
Checking if you have CPAN::Meta::YAML 0.003 ... Yes (0.008)
Checking if you have Test::More 0.49 ... Yes (0.98)
Checking if you have Text::ParseWords 0 ... Yes (3.27)
Checking if you have File::Temp 0.15 ... Yes (0.22)
Checking if you have File::Basename 0 ... Yes (2.77)
Checking if you have Cwd 0 ... Yes (3.30)
Checking if you have ExtUtils::Mkbootstrap 0 ... Yes (6.55_02)
==> Found dependencies: Module::Metadata, CPAN::Meta, version
Searching Module::Metadata on cpanmetadb ...
--> Working on Module::Metadata
Fetching http://www.cpan.org/authors/id/B/BO/BOBTFISH/Module-Metadata-1.000014.tar.gz
-> OK
Unpacking Module-Metadata-1.000014.tar.gz
Entering Module-Metadata-1.000014
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.55_02)
Configuring Module-Metadata-1.000014
Running Makefile.PL
Warning: prerequisite version 0.87 not found. We have 0.77.
Checking if your kit is complete...
Looks good
Writing Makefile for Module::Metadata
-> OK
Finding PREREQ from Makefile ...
Checking if you have strict 0 ... Yes (1.04)
Checking if you have warnings 0 ... Yes (1.06)
Checking if you have IO::File 0 ... Yes (1.14)
Checking if you have File::Find 0 ... Yes (1.14)
Checking if you have version 0.87 ... No (0.77 < 0.87)
Checking if you have File::Spec 0 ... Yes (3.30)
Checking if you have vars 0 ... Yes (1.01)
Checking if you have Carp 0 ... Yes (1.11)
==> Found dependencies: version
Searching version on cpanmetadb ...
--> Working on version
Fetching http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-0.9903.tar.gz
-> OK
Unpacking version-0.9903.tar.gz
Entering version-0.9903
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.55_02)
Configuring version-0.9903
Running Makefile.PL
Testing if you have a C compiler
Checking if your kit is complete...
Looks good
Writing Makefile for version::vxs
Writing Makefile for version
-> OK
Finding PREREQ from Makefile ...
Checking if you have Test::More 0.45 ... Yes (0.98)
Checking if you have File::Temp 0.13 ... Yes (0.22)
Building and testing version-0.9903
cp lib/version/Internals.pod blib/lib/version/Internals.pod
cp lib/version.pm blib/lib/version.pm
cp lib/version.pod blib/lib/version.pod
cp vperl/vpp.pm blib/lib/version/vpp.pm
make[1]: Entering directory
`/root/.cpanm/work/1377081249.11700/version-0.9903/vutil'
cp lib/version/vxs.pm ../blib/lib/version/vxs.pm
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -f
stack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -DVERSION=\"0.9903\"
-DXS_VERSION=\"0.9903\" -fPIC "-I/usr/lib/perl5/CORE" vutil.c
In file included from vutil.c:10:
vutil.h: In function âPerl_ck_warnerâ:
vutil.h:43: warning: unused variable âargsâ
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap
/usr/share/perl5/ExtUtils/typemap -typemap ../lib/version/typemap
vxs.xs > vxs.xsc && mv vxs.xsc vxs.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -f
stack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -DVERSION=\"0.9903\"
-DXS_VERSION=\"0.9903\" -fPIC "-I/usr/lib/perl5/CORE" vxs.c
In file included from vxs.xs:6:
vutil.h: In function âPerl_ck_warnerâ:
vutil.h:43: warning: unused variable âargsâ
vxs.c: At top level:
vutil.h:41: warning: âPerl_ck_warnerâ defined but not used
vxs.c: In function âXS_version__vxs__VERSIONâ:
vxs.xs:231: warning: âretâ may be used uninitialized in this function
vxs.xs:231: note: âretâ was declared here
Running Mkbootstrap for version::vxs ()
chmod 644 vxs.bs
rm -f ../blib/arch/auto/version/vxs/vxs.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686
-mtune=atom -fasynchronous-unwind-tables -L/usr/local/lib vutil.o
vxs.o
-o ../blib/arch/auto/version/vxs/vxs.so \
\

chmod 755 ../blib/arch/auto/version/vxs/vxs.so
cp vxs.bs ../blib/arch/auto/version/vxs/vxs.bs
chmod 644 ../blib/arch/auto/version/vxs/vxs.bs
make[1]: Leaving directory
`/root/.cpanm/work/1377081249.11700/version-0.9903/vutil'
Manifying blib/man3/version::Internals.3pm
Manifying blib/man3/version.3pm
make[1]: Entering directory
`/root/.cpanm/work/1377081249.11700/version-0.9903/vutil'
make[1]: Leaving directory
`/root/.cpanm/work/1377081249.11700/version-0.9903/vutil'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

# Failed test 'make sure we exported qv() properly'
# at t/coretests.pm line 473.
Undefined subroutine &main::qv called at t/coretests.pm line 474.
# Looks like you failed 1 test of 119.
# Looks like your test exited with 2 just after 119.
t/01base.t ........
Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/119 subtests

# Failed test 'make sure we exported qv() properly'
# at t/coretests.pm line 473.
Undefined subroutine &main::qv called at t/coretests.pm line 474.
# Looks like you failed 1 test of 125.
# Looks like your test exited with 2 just after 125.
t/02derived.t .....
Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/125 subtests
t/03require.t ..... ok
t/04strict_lax.t .. ok
t/05sigdie.t ...... ok
t/06noop.t ........ ok
t/07locale.t ...... ok

Test Summary Report
-------------------
t/01base.t (Wstat: 512 Tests: 119 Failed: 1)
Failed test: 119
Non-zero exit status: 2
t/02derived.t (Wstat: 512 Tests: 125 Failed: 1)
Failed test: 125
Non-zero exit status: 2
Files=7, Tests=726, 1 wallclock secs ( 0.14 usr 0.02 sys + 0.66
cusr 0.06 csys = 0.88 CPU)
Result: FAIL
Failed 2/7 test programs. 2/726 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing version failed. See
/root/.cpanm/work/1377081249.11700/build.log for details. Retry with
--force to force install it.
-> FAIL Installing the dependencies failed: Installed version (0.77)
of version is not in range '0.87'
-> FAIL Bailing out the installation for Module-Metadata-1.000014.
Searching CPAN::Meta on cpanmetadb ...
--> Working on CPAN::Meta
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-2.132140.tar.gz
-> OK
Unpacking CPAN-Meta-2.132140.tar.gz
Entering CPAN-Meta-2.132140
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.30 ... Yes (6.55_02)
Configuring CPAN-Meta-2.132140
Running Makefile.PL
Warning: prerequisite CPAN::Meta::Requirements 2.121 not found.
Warning: prerequisite version 0.88 not found. We have 0.77.
Checking if your kit is complete...
Looks good
Writing Makefile for CPAN::Meta
-> OK
Finding PREREQ from Makefile ...
Checking if you have Scalar::Util 0 ... Yes (1.21)
Checking if you have File::Spec 0 ... Yes (3.30)
Checking if you have List::Util 0 ... Yes (1.21)
Checking if you have File::Find 0 ... Yes (1.14)
Checking if you have File::Spec::Functions 0 ... Yes (3.30)
Checking if you have warnings 0 ... Yes (1.06)
Checking if you have Parse::CPAN::Meta 1.4403 ... Yes (1.4405)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.55_02)
Checking if you have Data::Dumper 0 ... Yes (2.124)
Checking if you have version 0.88 ... No (0.77 < 0.88)
Checking if you have overload 0 ... Yes (1.07)
Checking if you have CPAN::Meta::YAML 0.008 ... Yes (0.008)
Checking if you have utf8 0 ... Yes (1.07)
Checking if you have Carp 0 ... Yes (1.11)
Checking if you have strict 0 ... Yes (1.04)
Checking if you have Test::More 0.88 ... Yes (0.98)
Checking if you have JSON::PP 2.27200 ... Yes (2.27202)
Checking if you have CPAN::Meta::Requirements 2.121 ... No
Checking if you have File::Temp 0.20 ... Yes (0.22)
Checking if you have File::Basename 0 ... Yes (2.77)
Checking if you have IO::Dir 0 ... Yes (1.07)
==> Found dependencies: version, CPAN::Meta::Requirements
Already tried version. Skipping.
Searching CPAN::Meta::Requirements on cpanmetadb ...
--> Working on CPAN::Meta::Requirements
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-Requirements-2.122.tar.gz
-> OK
Unpacking CPAN-Meta-Requirements-2.122.tar.gz
Entering CPAN-Meta-Requirements-2.122
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.17 ... Yes (6.55_02)
Configuring CPAN-Meta-Requirements-2.122
Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for CPAN::Meta::Requirements
-> OK
Finding PREREQ from Makefile ...
Checking if you have warnings 0 ... Yes (1.06)
Checking if you have Scalar::Util 0 ... Yes (1.21)
Checking if you have version 0.77 ... Yes (0.77)
Checking if you have Carp 0 ... Yes (1.11)
Checking if you have Test::More 0.88 ... Yes (0.98)
Checking if you have strict 0 ... Yes (1.04)
Checking if you have File::Find 0 ... Yes (1.14)
Checking if you have File::Temp 0 ... Yes (0.22)
Building and testing CPAN-Meta-Requirements-2.122
cp lib/CPAN/Meta/Requirements.pm blib/lib/CPAN/Meta/Requirements.pm
Manifying blib/man3/CPAN::Meta::Requirements.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-compile.t ........ ok
t/accepts.t ........... ok
Version string 'invalid_version' contains invalid data; ignoring:
'invalid_version' at
/root/.cpanm/work/1377081249.11700/CPAN-Meta-Requirements-2.122/blib/lib/CPAN/Meta/Requirements.pm
line 31.

# Failed test 'hook fixes invalid version'
# at t/bad_version_hook.t line 29.
# Structures begin differing at:
# $got->{Foo::Baz} = '0'
# $expected->{Foo::Baz} = '42'
Version string 'invalid_version' contains invalid data; ignoring:
'invalid_version' at
/root/.cpanm/work/1377081249.11700/CPAN-Meta-Requirements-2.122/blib/lib/CPAN/Meta/Requirements.pm
line 31.

# Failed test 'dies if hook doesn't return version object: did not die'
# at t/bad_version_hook.t line 14.
# Looks like you failed 2 tests of 2.
t/bad_version_hook.t ..
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
t/basic.t ............. ok
t/finalize.t .......... ok
Version string '= 2' contains invalid data; ignoring: '= 2' at
/root/.cpanm/work/1377081249.11700/CPAN-Meta-Requirements-2.122/blib/lib/CPAN/Meta/Requirements.pm
line 31.

# Failed test 'we die when we can't understand a version spec: did not die'
# at t/from-hash.t line 13.
# Looks like you failed 1 test of 4.
t/from-hash.t .........
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
t/merge.t ............. ok

Test Summary Report
-------------------
t/bad_version_hook.t (Wstat: 512 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
t/from-hash.t (Wstat: 256 Tests: 4 Failed: 1)
Failed test: 2
Non-zero exit status: 1
Files=7, Tests=53, 1 wallclock secs ( 0.09 usr 0.02 sys + 0.50 cusr
0.07 csys = 0.68 CPU)
Result: FAIL
Failed 2/7 test programs. 3/53 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing CPAN::Meta::Requirements failed. See
/root/.cpanm/work/1377081249.11700/build.log for details. Retry with
--force to force install it.
-> FAIL Installing the dependencies failed: Installed version (0.77)
of version is not in range '0.88', Module 'CPAN::Meta::Requirements'
is not installed
-> FAIL Bailing out the installation for CPAN-Meta-2.132140.
Already tried version. Skipping.
-> FAIL Installing the dependencies failed: Module 'Module::Metadata'
is not installed, Module 'CPAN::Meta' is not installed, Installed
version (0.77) of version is not in range '0.87'
-> FAIL Bailing out the installation for Module-Build-0.4007.
-> FAIL Installing the dependencies failed: Installed version (0.35)
of Module::Build is not in range '0.36'
-> FAIL Bailing out the installation for App-cpanminus-1.6941.


Thanks.

Martin Holste

unread,
Aug 21, 2013, 10:40:05 PM8/21/13
to enterprise-log-s...@googlegroups.com
Not sure why you're getting those errors.  The root error seems to be:

! Installing version failed. See
/root/.cpanm/work/1377081249.11700/build.log for details. Retry with
--force to force install it.
! Installing the dependencies failed: Installed version (0.77) of
version is not in range '0.87'

Can you try installing App::cpanminus using the built-in cpan utility?  If you're on Debian/Ubuntu, you can apt-get install cpanminus



--
You received this message because you are subscribed to the Google Groups "enterprise-log-search-and-archive" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enterprise-log-search-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

C. L. Martinez

unread,
Aug 22, 2013, 12:30:20 AM8/22/13
to enterprise-log-s...@googlegroups.com
It is a centos host. I can to try install via epel Repo.

C. L. Martinez

unread,
Aug 22, 2013, 3:15:01 AM8/22/13
to enterprise-log-s...@googlegroups.com
Uhmm ... The problem is more serious: you cannot install any of the
perl modules using this command to install cpanm "curl --insecure -L
http://cpanmin.us | perl - App::cpanminus" that ELSA requires under
RHEL6.x platforms (tested on CentOS 6.4, OEL 6.4 and RedHat 6.4) ....

The only option is to install cpanm using "curl -LO
http://xrl.us/cpanm". After that, you need to install these packages:
perl-CPAN and perl-Test-Simple from official repos. If these packages
are not installed prior to installing any cpan module, all cpan
modules fail in its installation (for node and web components).

Due to the change introduced some time ago in which web node needs to
be installed in the same host as ELSA node, under
"centos_get_web_packages" section, it is needed to remove
perl-Module-Build, perl-Module-Install and perl-libwww-perl packages
because they are installed previously by "build_node_perl" section ...

Another point: under RHEL-like distros, it is not need to install
Net::OpenSSH module using "-n" switch, works ok without it.

And last: Martin, Is it needed to install Test-Pod module using "cpanm
http://search.cpan.org/CPAN/authors/id/D/DW/DWHEELER/Test-Pod-1.46.tar.gz"??
It is installed without problems as a dependency during the rest of
web node modules, but with release 1.48.


Remember, all these comments are only for RHEL based distros ... I
don't know if it is applicable to ubuntu, freebsd, etc ...

P.D: This procedure is tested for new installations with r1008 release only

Martin Holste

unread,
Aug 23, 2013, 6:28:18 AM8/23/13
to enterprise-log-s...@googlegroups.com
I will do some testing on this today and get to the bottom of the issue.  Thanks for reporting it!

Martin Holste

unread,
Aug 25, 2013, 10:38:46 PM8/25/13
to enterprise-log-s...@googlegroups.com
Ok, I've changed install.sh for CentOS to install a few other modules via yum before attempting to install cpanm.  Please let me know if this works for you now.

C. L. Martinez

unread,
Aug 28, 2013, 4:04:00 AM8/28/13
to enterprise-log-s...@googlegroups.com
On Mon, Aug 26, 2013 at 2:38 AM, Martin Holste <mcho...@gmail.com> wrote:
> Ok, I've changed install.sh for CentOS to install a few other modules via
> yum before attempting to install cpanm. Please let me know if this works
> for you now.
>
>

Uhmm, there is an error:

[root@sad02 k]# curl --insecure -L http://cpanmin.us | perl - App::cpanminus
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 261k 100 261k 0 0 225k 0 0:00:01 0:00:01 --:--:-- 225k
--> Working on App::cpanminus
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.6942.tar.gz
... OK

gzip: stdin: unexpected end of file
/bin/tar: Child returned status 1
/bin/tar: Error is not recoverable: exiting now
! Failed to unpack App-cpanminus-1.6942.tar.gz: no directory
! Failed to fetch distribution App-cpanminus-1.6942

Searching in http://www.cpan.org/authors/id/M/MI/MIYAGAWA, version
1.6942 it doesn't exists ....

Martin, could be possible to use "freeze" versions for perl modules as
does Qradar, ArcSight, etc ??? This could prevent many installation
problems and incompatibilities ...

I will continue the test but using cpanm binary from http://xrl.us ...

C. L. Martinez

unread,
Aug 28, 2013, 4:51:10 AM8/28/13
to enterprise-log-s...@googlegroups.com
Ok, all is working now under CentOS 6.4 x86_64 and using cpanm binary
provided bt http://xrl.us ...

wes

unread,
Aug 28, 2013, 11:49:03 AM8/28/13
to enterprise-log-s...@googlegroups.com
lol, too funny. i've been fighting with something similar in CIF last few days. #irony

and google searches lead me to YOU wonderful people! ;)

wes

unread,
Aug 28, 2013, 11:54:59 AM8/28/13
to enterprise-log-s...@googlegroups.com
my guess is that it has something to do with:

Martin Holste

unread,
Sep 2, 2013, 1:33:47 PM9/2/13
to enterprise-log-s...@googlegroups.com
I'm going to be working on using Perl's Carton module to set static Perl module versions in the near future.  It's a terrific module by my hero Miyagawa that authored many of the most important Perl modules that ELSA uses, such as Plack and cpanm.  Even better, I'm going to be working on having a stable and dev branch for ELSA versions, which will be important with the upcoming major refactor.


--

Wes Young

unread,
Sep 3, 2013, 6:12:13 AM9/3/13
to enterprise-log-s...@googlegroups.com
neato.

it seems as if the thing here is (and i've seen this in the past with CIF and RHEL), it ends up being RHEL release engineers making certain assumptions about things, and then perl authors making other assumptions that clash...

usually it's fairly easy to work-around, but sometimes they are low level enough to make you want to scream. i've considered trying to package as many of the libs into a package to make things stable, but then you run into other lower level issues that rely on XS (TLS, INET, etc) where the underlying distro/arch comes into play...

not impossible, but also why we're gonna move some of the lower level stuff to C in the future and reduce some of the complexity that comes with the higher level languages (different set of problems, but reducing complexity seems to always help at some level...).

i'm starting to notice this as a trend as "it becomes easier to build applications rapidly a-top of things like perl", interesting to see this (and other) ways authors are starting to identify and work-around the problem (something unique to the open-source space).

this topic should be interesting moving forward. if you do stuff like you're suggesting, i'd be interested in how it works out for you (maybe we can work together on a community doc or something, lower the barrier for other security devs in this space).

cheers,

On Sep 2, 2013, at 1:33 PM, Martin Holste <mcho...@gmail.com> wrote:

> Even better, I'm going to be working on having a stable and dev branch for ELSA versions, which will be important with the upcoming major refactor.

--
wes
wesyoung.me

signature.asc
Reply all
Reply to author
Forward
0 new messages