Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skopeo fails to load dev mapper library in Fedora 25. #333

Closed
humblec opened this issue May 3, 2017 · 10 comments
Closed

skopeo fails to load dev mapper library in Fedora 25. #333

humblec opened this issue May 3, 2017 · 10 comments

Comments

@humblec
Copy link

humblec commented May 3, 2017

After source compiling skopeo in f25,

[root@localhost skopeo]# ./skopeo inspect docker://docker.io/gluster/gluster-centos
./skopeo: error while loading shared libraries: libdevmapper.so.1.02.1: cannot open shared object file: No such file or directory

Version:

device-mapper-libs-1.02.136-3.fc25.x86_64 

OS version:

# cat /etc/redhat-release 
Fedora release 25 (Twenty Five)

Looks like the f25 device mapper lib is 1.02

[root@localhost skopeo]# rpm -ql device-mapper-libs
/usr/lib64/libdevmapper.so.1.02
..
@humblec
Copy link
Author

humblec commented May 3, 2017

@runcom any pointers on this ? :)

@runcom
Copy link
Member

runcom commented May 3, 2017

do you have any of these installed on your system:

device-mapper-libs-1.02.136-3.fc25.x86_64
device-mapper-devel-1.02.136-3.fc25.x86_64
device-mapper-1.02.136-3.fc25.x86_64

?

@humblec
Copy link
Author

humblec commented May 3, 2017

@runcom as mentioned in the description, I have it. From error, it looks for libdevmapper.so.1.02.1 what I have in my system is /usr/lib64/libdevmapper.so.1.02.

@runcom
Copy link
Member

runcom commented May 3, 2017

mmm I've never encountered this issue. let me try to reproduce, how did you build skopeo?

@humblec
Copy link
Author

humblec commented May 3, 2017

@runcom after cloning, make all, make install and then run the skopeo binary in f25.

@runcom
Copy link
Member

runcom commented May 3, 2017

I see, likely make all builds from an ubuntu based dockerfile and shared libraries are broken between ubuntu and fedora. Could you try just using make binary-local? it requires you to have dependencies installed on the machine you're compiling on but it ensures it uses libraries from your machine.

@humblec
Copy link
Author

humblec commented May 3, 2017

ok.. then I will do make clean and make binary-local

@humblec
Copy link
Author

humblec commented May 3, 2017

@runcom that works!

@runcom
Copy link
Member

runcom commented May 3, 2017

great, let's close this now 🎉

@runcom runcom closed this as completed May 3, 2017
@zhangguanzhang
Copy link
Contributor

zhangguanzhang commented Sep 14, 2020

make binary DISABLE_CGO=1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants