From fae17644b9ef2382994bf3ce7d288e08211c42ef Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sun, 1 Sep 2024 20:34:09 +0200 Subject: migrate more stuff --- content/posts/2019-3-11-cpanm-module-error.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 content/posts/2019-3-11-cpanm-module-error.md (limited to 'content/posts/2019-3-11-cpanm-module-error.md') diff --git a/content/posts/2019-3-11-cpanm-module-error.md b/content/posts/2019-3-11-cpanm-module-error.md new file mode 100644 index 0000000..698ba71 --- /dev/null +++ b/content/posts/2019-3-11-cpanm-module-error.md @@ -0,0 +1,19 @@ +--- +layout: post +title: cpanm error "No such file or directory opening compressed index" +category: Perl +tags: + - cpan +--- + +If you ever get this error while installing a module `cpanm`: + +``` +! Finding install on cpanmetadb failed. +! cannot open file '/root/.cpanm/sources/http%www.cpan.org/02packages.details.txt.gz': No such file or directory opening compressed index +! Couldn't find module or a distribution install +``` + +The problem is caused by not having the `LWP::Protocol::https` module +installed, and the solution is to run `cpanm` with the `--no-lwp` option or +installing `LWP::Protocol::https`. -- cgit v1.2.3