Skip to content

Unable to run skopeo on Fedora 30 - libdevmapper.so.1.02.1 dependency #1336

@davidhay1969

Description

@davidhay1969

This is similar to #333 which related to Fedora 25 and may well be a self-inflicted problem 🤣

Having built skopeo on an Ubuntu 20.04 box, I've shipped the binary to a VM based upon Fedora 30.

However, when I run, say, skopeo --version I see: -

skopeo: error while loading shared libraries: libdevmapper.so.1.02.1: cannot open shared object file: No such file or directory

I do have libdevmapper.so albeit an older version: -

ls -al /usr/lib64/libdev*

lrwxrwxrwx 1 root root     20 Feb 17  2019 /usr/lib64/libdevmapper.so -> libdevmapper.so.1.02
-r-xr-xr-x 1 root root 401232 Feb 17  2019 /usr/lib64/libdevmapper.so.1.02

As per #333 I found that setting DISABLE_CGO=1 made the difference e.g.

DISABLE_CGO=1 make bin/skopeo

resulting in a slightly larger binary: -

ls -al bin/skopeo

-rwxr-xr-x 1 root root 36607904 Jun 25 02:45 bin/skopeo

Having pushed the new, larger version of the binary to the Fedora box, things appear to be A-OK : -

skopeo --version

skopeo version 1.3.1-dev commit: af550fda48c4f0829dc722e937206abf5fddcccb

Background of Fedora box

cat /etc/redhat-release

Fedora release 30 (Thirty)

uname -a

Linux nginx-kata 5.10.25 #1 SMP Fri Jun 11 20:36:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

which skopeo

/usr/local/bin/skopeo
ls -al `which skopeo`
-rwxr-xr-x 1 root root 37580456 Jun 25 09:33 /usr/local/bin/skopeo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions