summaryrefslogtreecommitdiff
path: root/content/posts/2019-3-11-cpanm-module-error.md
diff options
context:
space:
mode:
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`.