CPAN problem with opensuse/leap:15.0 docker image

Just a quick shout to the internet about a problem that I have encountered (and solved):

 

I set up a container based on opensuse leap 15.0

I wanted to install some perl modules via cpan.

I got some build error messages including

“sh: -d: invalid option” eventually ending in make not okay

This happened on every module I tried.

The solution: the leap 15 docker image is so boiled down in size, that it does not even contain gzip. Ergo the CPAN packages cannot be unpacked.

just install gzip by running “zypper –non-interactive install gzip” … and your cpan should work again.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.