Intrepid has asked for the wisdom of the Perl Monks concerning the following question:
I spent a lot of time getting all the important and optional dependencies for CPAN.pm installed this evening, including CPAN::SQLite, and its dependency, DBD::SQLite which I had to grab an older release of to get it to compile, but that's another adventure ...).
Now nothing will be recognized as a distribution, and before that state, I saw the following error:
This obviously an error from an instance of cpanplus, I am apparently tired and confused.
[ERROR] Dir '' does not exist Key 'dir' () is of invalid type for 'CPANPLUS::Internals::Utils::_chdi +r' provided by CPANPLUS::Module::Signature::check_signature at /usr/l +ocal/share/perl/5.28.1/CPANPLUS/Module/Signature.pm line 61. [ERROR] Dir '' does not exist Key 'dir' () is of invalid type for 'CPANPLUS::Internals::Utils::_chdi +r' provided by CPANPLUS::Dist::_resolve_prereqs at /usr/local/share/p +erl/5.28.1/CPANPLUS/Dist.pm line 835. Running [/usr/bin/perl -MCPANPLUS::Internals::Utils::Autoflush /root/. +cpanplus/5.28.1/build/25tEDk2MKd/File-TreeBuilder-0.02/Makefile.PL].. +. [ERROR] Could not run '/usr/bin/perl Makefile.PL': -- cannot continue [ERROR] Dir '' does not exist Key 'dir' () is of invalid type for 'CPANPLUS::Internals::Utils::_chdi +r' provided by CPANPLUS::Dist::MM::prepare at /usr/local/share/perl/5 +.28.1/CPANPLUS/Dist/MM.pm line 441. [ERROR] Could not chdir back to start dir '' [ERROR] Unable to create a new distribution object for 'File::TreeBuil +der' -- cannot continue
The genuine cpan error
$ cpan install File::TreeBuilder CPAN: Term::ANSIColor loaded ok (v4.06) CPAN: CPAN::SQLite loaded ok (v0.220) CPAN: YAML::Syck loaded ok (v1.34) Reading 8 yaml files from /home/somian/.cpan/build/ DONE Restored the state of none (in 0.0359 secs) Database was generated on Sat, 21 Dec 2024 02:14:45 GMT Could not expand [File::TreeBuilder]. Check the module name.
I was working on a Debian system and I was hoping for ease and straightfowardness. Aaaaaugh. Back to using cpanplus
A just machine to make big decisions
Programmed by fellows (and gals) with compassion and vision
We'll be clean when their work is done
We'll be eternally free yes and eternally young
Donald Fagen -> I.G.Y.
(Slightly modified for inclusiveness)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: My cpan is very broken
by Arunbear (Prior) on Dec 21, 2024 at 13:52 UTC | |
|
Re: My cpan is very broken
by soonix (Chancellor) on Dec 21, 2024 at 11:37 UTC | |
by Intrepid (Curate) on Dec 21, 2024 at 20:38 UTC |