Subject: | Use of uninitialized value / need a valid pathname in CPAN::FirstTime |
Using Amazon Linux AMI release 2018.03, when I try to install cpanm (via ansible, inside of a docker bash shell, yeah I know) I get the attached and below error. Interestingly it doesn't seem to be nearly as upset when I do the same thing via ansible's ssh commands instead of locally via the bash shell, so maybe the root cause is a null path somewhere?
```
Use of uninitialized value $_[0] in substitution (s///) at /usr/share/perl5/File/Basename.pm line 341.
fileparse(): need a valid pathname at /usr/share/perl5/CPAN/FirstTime.pm line 1354.
```
FYI `cpan --version` outputs
```
/usr/bin/cpan version 1.57 calling Getopt::Std::getopts (version 1.07 [paranoid]),
running under Perl version 5.16.3.
```
These are the packages installed immediately prior to trying to install cpanminus:
- perl
- perl-core
- perl-libwww-perl
- perl-CGI
- perl-Time-Piece
- perl-DBI
- perl-DBD-MySQL
- perl-CPAN
- perl-Env
- perl-Test-Fatal
- gmp-devel
- gcc
I am going to try just using the perl-App-cpanminus package instead, but the error was such an oddball and my environment is so clean/reproducable I figured it's a good thing to report, because if I didn't have alternatives I'd really be stuck right now.
Subject: | err.txt |
Message body is not shown because it is too large.