summaryrefslogtreecommitdiff
path: root/content/posts/2019-3-11-cpanm-module-error.md
diff options
context:
space:
mode:
authorChristian Segundo2024-09-01 20:34:09 +0200
committerChristian Segundo2024-09-01 20:34:09 +0200
commitfae17644b9ef2382994bf3ce7d288e08211c42ef (patch)
tree66305cadf6371bb777f8c2e7fa62db4930621e4c /content/posts/2019-3-11-cpanm-module-error.md
parent82c70566e88d9260d68f69ab59e6761197d828ec (diff)
downloadcheck-caps-lock-fae17644b9ef2382994bf3ce7d288e08211c42ef.tar.gz
migrate more stuff
Diffstat (limited to 'content/posts/2019-3-11-cpanm-module-error.md')
-rw-r--r--content/posts/2019-3-11-cpanm-module-error.md19
1 files changed, 19 insertions, 0 deletions
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`.