Ask Your Question
0

Installation problem due missing shared object dependencies

asked 2016-10-24 13:08:11 -0500

rigon gravatar image

Installation problem due missing shared object dependencies

I have been creating a package for fedora. It is a java application bundled with JRE using the javapackager tool (from the Oracle JDK).

The package is built with no problems. But when I try to install it with this command:

sudo dnf install mypackage-1.0-1.x86_64.rpm

I got the following error:

Error: nothing provides libavcodec-ffmpeg.so.56()(64bit) needed by mypackage-1.0-1.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages)

Using the --allowerasing doesn't help...

I think this error is related somehow with some missing shared object dependencies. One of the many files added is jre/lib/amd64/libavplugin-ffmpeg-56.so.

If I run:

ldd /usr/java/jdk1.8.0_102/jre/lib/amd64/libavplugin-ffmpeg-56.so

I got:

linux-vdso.so.1 (0x00007fffd57f0000)
libgstreamer-lite.so => not found
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00007f7921f52000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f7921c44000)
libavcodec-ffmpeg.so.56 => not found
libavformat-ffmpeg.so.56 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007f7921881000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f792160e000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f79213f1000)
libffi.so.6 => /lib64/libffi.so.6 (0x00007f79211e9000)
/lib64/ld-linux-x86-64.so.2 (0x000055b6cf331000)

Which seems to be exactly my problem: libavcodec-ffmpeg.so.56 => not found

Any ideas how to overcome this? Thanks!!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-10-27 11:31:39 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Try installing the lame oracle crap with this command.

rpm -ivh --nodeps mypackage-1.0-1.x86_64.rpm

If it was proper rpm packaging you could filter the package requires during build.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-10-24 13:08:11 -0500

Seen: 605 times

Last updated: Oct 27 '16