Amazon Linux AMI release 2013.03 issue #303

Closed
vsespb opened this Issue Aug 14, 2013 · 3 comments

Projects

None yet

2 participants

@vsespb
vsespb commented Aug 14, 2013

Amazon Linux AMI release 2013.03 is pretty much same as CentOS 6.x

$ curl -L http://cpanmin.us | perl - --sudo App::cpanminus
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   303    0   303    0     0    538      0 --:--:-- --:--:-- --:--:--  1000
100  261k  100  261k    0     0   327k      0 --:--:-- --:--:-- --:--:-- 4754k
--> Working on App::cpanminus
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.6940.tar.gz ... OK
==> Found dependencies: ExtUtils::MakeMaker
--> Working on ExtUtils::MakeMaker
Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-6.72.tar.gz ... OK
Configuring ExtUtils-MakeMaker-6.72 ... OK
Can't locate ExtUtils/Manifest.pm in @INC (@INC contains: CODE(0x821b130) /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /loader/0x821b130/App/cpanminus/script.pm line 99.

if installed manually using

cd /opt/
curl https://raw.github.com/miyagawa/cpanminus/master/cpanm > cpanm
chmod +x cpanm
ln -s /opt/cpanm /usr/bin/

same issue happening when trying to install something:

$ cpanm 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 ... N/A
Can't locate ExtUtils/Manifest.pm in @INC (@INC contains: CODE(0x8cf4138) /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /loader/0x8cf4138/App/cpanminus/script.pm line 99.
@miyagawa
Owner

That's lame, since ExtUtils::Manifest has been in core since perl 5.001 and CentOS strips them.

@miyagawa
Owner

install perl(ExtUtils::Manifest) package first.

@miyagawa miyagawa closed this Aug 14, 2013
@vsespb
vsespb commented Aug 14, 2013

That's lame, since ExtUtils::Manifest has been in core since perl 5.001 and CentOS strips them.

ah, that's probably the root of problem, ok. I think RHEL just decouples perl to perl and perl-core

I was confused by this line

(@INC contains: CODE(0x8cf4138)

and thought it's just a bug, now I realize that INC can contain coderefs and it's just RHEL issue probably

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment