Closed coltzhao closed 10 years ago
Thank you. I also have problem with this.
Sorry, for delayed answer. Yes I can add this to cpan cookbook, if it's still actual
I just tested with Debian 7 and it works only with CPAN::Meta.
At the moment I am using it like this in my recipe:
node.force_override[:cpan_client][:bootstrap][:cpan_packages] = ['Time::HiRes', 'CPAN::Meta', 'CPAN', 'local::lib', 'App::pmuninstall']
include_recipe "cpan::bootstrap"
patched - 1b387274597ed33bf1c235b0bc5759d80b5b0b77
released at version 0.0.32
Hi,
I am seeing this error while installing CPAN on CentOS 6.5
CPAN.pm: Going to build A/AN/ANDK/CPAN-2.05.tar.gz
Can't locate CPAN/Meta/Requirements.pm in @INC (@INC contains: /root/.cpan/build/CPAN-2.05-oB1I1w/lib /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /root/.cpan/build/CPAN-2.05-oB1I1w) at /root/.cpan/build/CPAN-2.05-oB1I1w/lib/CPAN/Distribution.pm line 7. BEGIN failed--compilation aborted at /root/.cpan/build/CPAN-2.05-oB1I1w/lib/CPAN/Distribution.pm line 7. Compilation failed in require at lib/CPAN.pm line 25. BEGIN failed--compilation aborted at lib/CPAN.pm line 25. Compilation failed in require at Makefile.PL line 34. Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] ANDK/CPAN-2.05.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: ANDK/CPAN-2.05.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512
Any suggestions?
I am seeing this error while installing CPAN on CentOS 6.5
please specify, which command do you use for install ?
I have the same problem on CentOS 6.5 when I try upgrade CPAN from v1.9402 to v2.05. I used the command within CPAN:
install CPAN
I then get the error:
Can't locate CPAN/Meta/Requirements.pm in @INC
Guys, it's not what cpan cookbook responsible for, I guess, this is missed dependency, you may create an issue for CPAN module maintainer, but before this please check - https://rt.cpan.org/Public/Bug/Display.html?id=97121.
But ... do you think I should add CPAN::Meta::Requirements to dependencies list in cpan::bootstrap recipe, as workaround?
For the original request, I think it is already solved.
include_recipe "cpan::bootstrap" and chef run on AWS ubuntu instance storage AMI: ubuntu-precise-daily-amd64-server-20140421 ami-005d2830
has the error as:
and the cpanm error log:
The error can be fixed by change
to