This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id:
131313
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
will [...] zyphon.com
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
1.51
Fixed in:
(no value)



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
bash-4.2# export PERL_MM_USE_DEFAULT=1 && cpan App::cpanminus CPAN.pm requires configuration, but most of it can be done automatically. If you answer 'no' below, you will enter an interactive dialog for each configuration option instead. Would you like to configure as much as possible automatically? [yes] yes <install_help> Warning: You do not have write permission for Perl library directories. To install modules, you need to configure a local Perl library directory or escalate your privileges. CPAN can help you by bootstrapping the local::lib module or by configuring itself to use 'sudo' (if available). You may also resolve this problem manually if you need to customize your setup. What approach do you want? (Choose 'local::lib', 'sudo' or 'manual') [local::lib] local::lib Autoconfigured everything but 'urllist'. Now you need to choose your CPAN mirror sites. You can let me pick mirrors for you, you can select them from a list or you can enter them by hand. Would you like me to automatically choose some CPAN mirror sites for you? (This means connecting to the Internet) [yes] yes Trying to fetch a mirror list from the Internet Fetching with LWP: http://www.perl.org/CPAN/MIRRORED.BY Fetching with LWP: http://www.perl.org/CPAN/MIRRORED.BY.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY Looking for CPAN mirrors near you (please be patient) ......................... done! New urllist http://cpan.cs.utah.edu/ http://searchcpan.org/CPAN/ http://cpan.mirrors.hoobly.com/ Autoconfiguration complete. Attempting to bootstrap local::lib... Writing /root/.cpan/CPAN/MyConfig.pm for bootstrap... commit: wrote '/root/.cpan/CPAN/MyConfig.pm' Fetching with LWP: http://cpan.cs.utah.edu/authors/01mailrc.txt.gz Reading '/root/.cpan/sources/authors/01mailrc.txt.gz' ............................................................................DONE Fetching with LWP: http://cpan.cs.utah.edu/modules/02packages.details.txt.gz Reading '/root/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Tue, 31 Dec 2019 09:17:02 GMT ............. New CPAN.pm version (v2.27) available. [Currently running version is v1.9800] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the current session. ...............................................................DONE Fetching with LWP: http://cpan.cs.utah.edu/modules/03modlist.data.gz Reading '/root/.cpan/sources/modules/03modlist.data.gz' DONE Writing /root/.cpan/Metadata Running make for H/HA/HAARG/local-lib-2.000024.tar.gz Fetching with LWP: http://cpan.cs.utah.edu/authors/id/H/HA/HAARG/local-lib-2.000024.tar.gz Fetching with LWP: http://cpan.cs.utah.edu/authors/id/H/HA/HAARG/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/H/HA/HAARG/local-lib-2.000024.tar.gz ok CPAN.pm: Building H/HA/HAARG/local-lib-2.000024.tar.gz Attempting to create directory /root/perl5 Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConfig Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConfig Reading '/root/.cpan/Metadata' Database was generated on Tue, 31 Dec 2019 09:17:02 GMT Running install for module 'ExtUtils::MakeMaker' Running make for B/BI/BINGOS/ExtUtils-MakeMaker-7.42.tar.gz Fetching with LWP: http://cpan.cs.utah.edu/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.42.tar.gz Fetching with LWP: http://cpan.cs.utah.edu/authors/id/B/BI/BINGOS/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.42.tar.gz ok CPAN.pm: Building B/BI/BINGOS/ExtUtils-MakeMaker-7.42.tar.gz Using included version of CPAN::Meta::YAML (0.011) as it is newer than the installed version (0.008). Using included version of Parse::CPAN::Meta (1.4414) as it is newer than the installed version (1.4404). Using included version of ExtUtils::Manifest (1.70) as it is newer than the installed version (1.61). Using included version of ExtUtils::Install (2.06) as it is newer than the installed version (1.58). Using included version of CPAN::Meta (2.143240) as it is newer than the installed version (2.120921). Using included version of CPAN::Meta::Requirements (2.131) as it is newer than the installed version (2.122). Using included version of JSON::PP (2.27203) as it is newer than the installed version (2.27202). Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for ExtUtils::MakeMaker Writing MYMETA.yml and MYMETA.json cp inc/ExtUtils/Manifest.pm blib/lib/ExtUtils/Manifest.pm cp lib/ExtUtils/MM_VOS.pm blib/lib/ExtUtils/MM_VOS.pm cp lib/ExtUtils/MM.pm blib/lib/ExtUtils/MM.pm cp inc/JSON/PP.pm blib/lib/JSON/PP.pm cp lib/ExtUtils/MM_UWIN.pm blib/lib/ExtUtils/MM_UWIN.pm cp lib/ExtUtils/MM_DOS.pm blib/lib/ExtUtils/MM_DOS.pm cp lib/ExtUtils/MM_Cygwin.pm blib/lib/ExtUtils/MM_Cygwin.pm cp lib/ExtUtils/MM_Win95.pm blib/lib/ExtUtils/MM_Win95.pm cp lib/ExtUtils/Liblist.pm blib/lib/ExtUtils/Liblist.pm cp lib/ExtUtils/MM_Darwin.pm blib/lib/ExtUtils/MM_Darwin.pm cp lib/ExtUtils/MM_AIX.pm blib/lib/ExtUtils/MM_AIX.pm cp inc/CPAN/Meta/Requirements.pm blib/lib/CPAN/Meta/Requirements.pm cp lib/ExtUtils/Liblist/Kid.pm blib/lib/ExtUtils/Liblist/Kid.pm cp lib/ExtUtils/MakeMaker/FAQ.pod blib/lib/ExtUtils/MakeMaker/FAQ.pod cp inc/ExtUtils/MANIFEST.SKIP blib/lib/ExtUtils/MANIFEST.SKIP cp lib/ExtUtils/MM_NW5.pm blib/lib/ExtUtils/MM_NW5.pm cp lib/ExtUtils/MakeMaker.pm blib/lib/ExtUtils/MakeMaker.pm cp lib/ExtUtils/MM_OS2.pm blib/lib/ExtUtils/MM_OS2.pm cp inc/CPAN/Meta/Feature.pm blib/lib/CPAN/Meta/Feature.pm cp lib/ExtUtils/Command.pm blib/lib/ExtUtils/Command.pm cp lib/ExtUtils/MM_Unix.pm blib/lib/ExtUtils/MM_Unix.pm cp lib/ExtUtils/MM_Win32.pm blib/lib/ExtUtils/MM_Win32.pm cp inc/ExtUtils/Installed.pm blib/lib/ExtUtils/Installed.pm cp inc/JSON/PP/Boolean.pm blib/lib/JSON/PP/Boolean.pm cp inc/CPAN/Meta/Spec.pm blib/lib/CPAN/Meta/Spec.pm cp inc/CPAN/Meta/History.pm blib/lib/CPAN/Meta/History.pm cp lib/ExtUtils/MY.pm blib/lib/ExtUtils/MY.pm cp inc/ExtUtils/Packlist.pm blib/lib/ExtUtils/Packlist.pm cp lib/ExtUtils/MM_MacOS.pm blib/lib/ExtUtils/MM_MacOS.pm cp lib/ExtUtils/MM_VMS.pm blib/lib/ExtUtils/MM_VMS.pm cp inc/CPAN/Meta/Merge.pm blib/lib/CPAN/Meta/Merge.pm cp lib/ExtUtils/MM_BeOS.pm blib/lib/ExtUtils/MM_BeOS.pm cp lib/ExtUtils/MM_QNX.pm blib/lib/ExtUtils/MM_QNX.pm cp inc/CPAN/Meta/YAML.pm blib/lib/CPAN/Meta/YAML.pm cp inc/CPAN/Meta/Converter.pm blib/lib/CPAN/Meta/Converter.pm cp inc/ExtUtils/Install.pm blib/lib/ExtUtils/Install.pm cp lib/ExtUtils/Command/MM.pm blib/lib/ExtUtils/Command/MM.pm cp lib/ExtUtils/MakeMaker/Config.pm blib/lib/ExtUtils/MakeMaker/Config.pm cp inc/CPAN/Meta.pm blib/lib/CPAN/Meta.pm cp inc/CPAN/Meta/Prereqs.pm blib/lib/CPAN/Meta/Prereqs.pm cp inc/Parse/CPAN/Meta.pm blib/lib/Parse/CPAN/Meta.pm cp inc/CPAN/Meta/Validator.pm blib/lib/CPAN/Meta/Validator.pm cp lib/ExtUtils/MM_Any.pm blib/lib/ExtUtils/MM_Any.pm cp lib/ExtUtils/MakeMaker/Tutorial.pod blib/lib/ExtUtils/MakeMaker/Tutorial.pod cp lib/ExtUtils/Mkbootstrap.pm blib/lib/ExtUtils/Mkbootstrap.pm cp lib/ExtUtils/Mksymlists.pm blib/lib/ExtUtils/Mksymlists.pm cp lib/ExtUtils/MakeMaker/version/regex.pm blib/lib/ExtUtils/MakeMaker/version/regex.pm cp lib/ExtUtils/testlib.pm blib/lib/ExtUtils/testlib.pm cp lib/ExtUtils/MakeMaker/Locale.pm blib/lib/ExtUtils/MakeMaker/Locale.pm cp lib/ExtUtils/MakeMaker/version.pm blib/lib/ExtUtils/MakeMaker/version.pm cp lib/ExtUtils/MakeMaker/version/vpp.pm blib/lib/ExtUtils/MakeMaker/version/vpp.pm cp bin/instmodsh blib/script/instmodsh "/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/instmodsh Manifying 1 pod document Manifying 38 pod documents Manifying 8 pod documents BINGOS/ExtUtils-MakeMaker-7.42.tar.gz /usr/bin/make -- OK 'YAML' not installed, will not store persistent state Running make test PERL_DL_NONLAZY=1 "/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00compile.t ............. ok t/01perl_bugs.t ........... ok t/02-xsdynamic.t .......... ok t/03-xsstatic.t ........... skipped: Shared perl library t/arch_check.t ............ ok t/backwards.t ............. ok t/basic.t ................. ok t/build_man.t ............. ok t/cd.t .................... ok t/config.t ................ ok t/cp.t .................... ok t/dir_target.t ............ ok t/echo.t .................. ok t/eu_command.t ............ ok t/FIRST_MAKEFILE.t ........ ok t/fix_libs.t .............. ok t/fixin.t ................. ok t/hints.t ................. ok t/INST.t .................. ok t/INST_PREFIX.t ........... ok t/INSTALL_BASE.t .......... ok t/installed_file.t ........ ok t/is_of_type.t ............ ok t/Liblist.t ............... ok t/Liblist_Kid.t ........... ok t/make.t .................. ok t/MakeMaker_Parameters.t .. ok t/maketext_filter.t ....... ok t/meta_convert.t .......... ok t/metafile_data.t ......... ok t/metafile_file.t ......... ok t/min_perl_version.t ...... ok t/miniperl.t .............. skipped: miniperl test only necessary for the perl core t/Mkbootstrap.t ........... ok t/MM_Any.t ................ ok t/MM_BeOS.t ............... skipped: This is not BeOS t/MM_Cygwin.t ............. skipped: This is not cygwin t/MM_NW5.t ................ skipped: This is not NW5 t/MM_OS2.t ................ skipped: This is not OS/2 t/MM_Unix.t ............... ok t/MM_VMS.t ................ skipped: This is not VMS t/MM_Win32.t .............. skipped: This is not Win32 t/oneliner.t .............. ok t/os_unsupported.t ........ ok t/parse_abstract.t ........ ok t/parse_version.t ......... ok t/PL_FILES.t .............. ok t/pm.t .................... ok t/pm_to_blib.t ............ ok t/pod2man.t ............... ok t/postamble.t ............. ok t/prefixify.t ............. ok t/prereq.t ................ ok t/prereq_print.t .......... ok t/problems.t .............. ok t/prompt.t ................ ok t/recurs.t ................ ok t/revision.t .............. ok t/several_authors.t ....... ok t/split_command.t ......... ok t/test_boilerplate.t ...... ok t/testlib.t ............... ok t/unicode.t ............... ok t/VERSION_FROM.t .......... ok t/vstrings.t .............. ok t/WriteEmptyMakefile.t .... ok t/writemakefile_args.t .... ok All tests successful. Files=67, Tests=1395, 50 wallclock secs ( 0.48 usr 0.11 sys + 37.10 cusr 7.25 csys = 44.94 CPU) Result: PASS BINGOS/ExtUtils-MakeMaker-7.42.tar.gz /usr/bin/make test -- OK Running make install Manifying 1 pod document Manifying 38 pod documents Manifying 8 pod documents Installing /root/perl5/lib/perl5/Parse/CPAN/Meta.pm Installing /root/perl5/lib/perl5/CPAN/Meta.pm Installing /root/perl5/lib/perl5/CPAN/Meta/Spec.pm Installing /root/perl5/lib/perl5/CPAN/Meta/Requirements.pm Installing /root/perl5/lib/perl5/CPAN/Meta/YAML.pm Installing /root/perl5/lib/perl5/CPAN/Meta/Validator.pm Installing /root/perl5/lib/perl5/CPAN/Meta/Prereqs.pm Installing /root/perl5/lib/perl5/CPAN/Meta/Converter.pm Installing /root/perl5/lib/perl5/CPAN/Meta/History.pm Installing /root/perl5/lib/perl5/CPAN/Meta/Feature.pm Installing /root/perl5/lib/perl5/CPAN/Meta/Merge.pm Installing /root/perl5/lib/perl5/JSON/PP.pm Installing /root/perl5/lib/perl5/JSON/PP/Boolean.pm Installing /root/perl5/lib/perl5/ExtUtils/MM.pm Installing /root/perl5/lib/perl5/ExtUtils/MANIFEST.SKIP Installing /root/perl5/lib/perl5/ExtUtils/MM_NW5.pm Installing /root/perl5/lib/perl5/ExtUtils/Manifest.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_BeOS.pm Installing /root/perl5/lib/perl5/ExtUtils/Installed.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_Win95.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_DOS.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_AIX.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_Win32.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_Any.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_VMS.pm Installing /root/perl5/lib/perl5/ExtUtils/Liblist.pm Installing /root/perl5/lib/perl5/ExtUtils/Mkbootstrap.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_Unix.pm Installing /root/perl5/lib/perl5/ExtUtils/Mksymlists.pm Installing /root/perl5/lib/perl5/ExtUtils/testlib.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_OS2.pm Installing /root/perl5/lib/perl5/ExtUtils/MY.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_Darwin.pm Installing /root/perl5/lib/perl5/ExtUtils/Packlist.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_Cygwin.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_QNX.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_VOS.pm Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_UWIN.pm Installing /root/perl5/lib/perl5/ExtUtils/Install.pm Installing /root/perl5/lib/perl5/ExtUtils/Command.pm Installing /root/perl5/lib/perl5/ExtUtils/MM_MacOS.pm Installing /root/perl5/lib/perl5/ExtUtils/Command/MM.pm Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/FAQ.pod Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/Tutorial.pod Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/Locale.pm Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/version.pm Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/Config.pm Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/version/regex.pm Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/version/vpp.pm Installing /root/perl5/lib/perl5/ExtUtils/Liblist/Kid.pm Installing /root/perl5/man/man1/instmodsh.1 Installing /root/perl5/man/man3/CPAN::Meta::Converter.3pm Installing /root/perl5/man/man3/CPAN::Meta.3pm Installing /root/perl5/man/man3/ExtUtils::MM_Cygwin.3pm Installing /root/perl5/man/man3/ExtUtils::Install.3pm Installing /root/perl5/man/man3/CPAN::Meta::YAML.3pm Installing /root/perl5/man/man3/ExtUtils::MM_DOS.3pm Installing /root/perl5/man/man3/ExtUtils::MM_NW5.3pm Installing /root/perl5/man/man3/CPAN::Meta::Prereqs.3pm Installing /root/perl5/man/man3/ExtUtils::testlib.3pm Installing /root/perl5/man/man3/ExtUtils::Manifest.3pm Installing /root/perl5/man/man3/ExtUtils::MakeMaker::FAQ.3pm Installing /root/perl5/man/man3/ExtUtils::Installed.3pm Installing /root/perl5/man/man3/ExtUtils::MM_AIX.3pm Installing /root/perl5/man/man3/ExtUtils::MM.3pm Installing /root/perl5/man/man3/ExtUtils::Packlist.3pm Installing /root/perl5/man/man3/ExtUtils::MM_Darwin.3pm Installing /root/perl5/man/man3/ExtUtils::MM_Unix.3pm Installing /root/perl5/man/man3/ExtUtils::MakeMaker.3pm Installing /root/perl5/man/man3/CPAN::Meta::Merge.3pm Installing /root/perl5/man/man3/ExtUtils::MM_VOS.3pm Installing /root/perl5/man/man3/CPAN::Meta::Requirements.3pm Installing /root/perl5/man/man3/ExtUtils::MM_Win95.3pm Installing /root/perl5/man/man3/CPAN::Meta::History.3pm Installing /root/perl5/man/man3/CPAN::Meta::Validator.3pm Installing /root/perl5/man/man3/ExtUtils::Command.3pm Installing /root/perl5/man/man3/ExtUtils::MM_VMS.3pm Installing /root/perl5/man/man3/ExtUtils::MakeMaker::Config.3pm Installing /root/perl5/man/man3/ExtUtils::MM_UWIN.3pm Installing /root/perl5/man/man3/ExtUtils::MakeMaker::Tutorial.3pm Installing /root/perl5/man/man3/ExtUtils::MakeMaker::Locale.3pm Installing /root/perl5/man/man3/ExtUtils::Mksymlists.3pm Installing /root/perl5/man/man3/JSON::PP::Boolean.3pm Installing /root/perl5/man/man3/ExtUtils::MM_OS2.3pm Installing /root/perl5/man/man3/ExtUtils::MM_Any.3pm Installing /root/perl5/man/man3/CPAN::Meta::Spec.3pm Installing /root/perl5/man/man3/Parse::CPAN::Meta.3pm Installing /root/perl5/man/man3/ExtUtils::Mkbootstrap.3pm Installing /root/perl5/man/man3/JSON::PP.3pm Installing /root/perl5/man/man3/ExtUtils::MM_QNX.3pm Installing /root/perl5/man/man3/ExtUtils::MY.3pm Installing /root/perl5/man/man3/ExtUtils::MM_Win32.3pm Installing /root/perl5/man/man3/ExtUtils::MM_BeOS.3pm Installing /root/perl5/man/man3/ExtUtils::Liblist.3pm Installing /root/perl5/man/man3/ExtUtils::Command::MM.3pm Installing /root/perl5/man/man3/ExtUtils::MM_MacOS.3pm Installing /root/perl5/man/man3/CPAN::Meta::Feature.3pm Installing /root/perl5/bin/instmodsh Appending installation info to /root/perl5/lib/perl5/x86_64-linux-thread-multi/perllocal.pod BINGOS/ExtUtils-MakeMaker-7.42.tar.gz /usr/bin/make install -- OK Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for local::lib Writing MYMETA.yml and MYMETA.json cp lib/POD2/PT_BR/local/lib.pod blib/lib/POD2/PT_BR/local/lib.pod cp lib/lib/core/only.pm blib/lib/lib/core/only.pm cp lib/local/lib.pm blib/lib/local/lib.pm cp lib/POD2/DE/local/lib.pod blib/lib/POD2/DE/local/lib.pod Manifying 4 pod documents HAARG/local-lib-2.000024.tar.gz /usr/bin/make -- OK 'YAML' not installed, will not store persistent state Running make test PERL_DL_NONLAZY=1 "/usr/bin/perl" "-I/root/perl5/lib/perl5" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bad_variables.t ...... ok t/carp-mismatch.t ...... ok t/classmethod.t ........ ok t/de-dup.t ............. ok t/lib-core-only.t ...... ok t/pipeline.t ........... ok t/shell.t .............. ok t/stackable.t .......... ok t/subroutine-in-inc.t .. ok t/taint-mode.t ......... ok All tests successful. Files=10, Tests=124, 2 wallclock secs ( 0.08 usr 0.02 sys + 0.95 cusr 0.37 csys = 1.42 CPU) Result: PASS HAARG/local-lib-2.000024.tar.gz /usr/bin/make test -- OK Running make install Manifying 4 pod documents Installing /root/perl5/lib/perl5/local/lib.pm Installing /root/perl5/lib/perl5/lib/core/only.pm Installing /root/perl5/lib/perl5/POD2/DE/local/lib.pod Installing /root/perl5/lib/perl5/POD2/PT_BR/local/lib.pod Installing /root/perl5/man/man3/POD2::DE::local::lib.3pm Installing /root/perl5/man/man3/lib::core::only.3pm Installing /root/perl5/man/man3/local::lib.3pm Installing /root/perl5/man/man3/POD2::PT_BR::local::lib.3pm Appending installation info to /root/perl5/lib/perl5/x86_64-linux-thread-multi/perllocal.pod HAARG/local-lib-2.000024.tar.gz /usr/bin/make install -- OK local::lib is installed. You must now add the following environment variables to your shell configuration files (or registry, if you are on Windows) and then restart your command line shell and CPAN before installing modules: PATH="/root/perl5/bin${PATH:+:${PATH}}"; export PATH; PERL5LIB="/root/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB; PERL_LOCAL_LIB_ROOT="/root/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT; PERL_MB_OPT="--install_base \"/root/perl5\""; export PERL_MB_OPT; PERL_MM_OPT="INSTALL_BASE=/root/perl5"; export PERL_MM_OPT; 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.
On 2019-12-31 18:20:17, will@zyphon.com wrote:
Show quoted text
> 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. > ```
Just an idea --- maybe the user's shell could not be detected? Would it help if SHELL=/bin/sh was set before running cpan?
Thanks for your report, Will. And Thanks for your suggestion, Slaven. Other ideas to try: (1) replace cpan App::cpanminus with perl -MCPAN -e 'install App::cpanminus' (2) Upgrade before using CPAN.pm; you could try perl -MCPAN -e shell And in the shell you could say upgrade CPAN App::Cpan (3) Upgrade even more; you could try perl -MCPAN -e upgrade


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.