Find out what library is missing Fedora 22

Sometimes some libraries are missing. This leads to the following error message:

./command: error while loading shared libraries: abc.so.0: cannot open shared object file: No such file or directory

It will only display the first missing library. So first you can use the following command to identify them:

ldd idaq | grep found

This might lead to the following output, where you can see a list of all missing libraries:

        libgthread-2.0.so => not found
	libfreetype.so.6 => not found
	libSM.so.6 => not found
	libICE.so.6 => not found
	libXrender.so.1 => not found
	libfontconfig.so.1 => not found
	libXext.so.6 => not found
	libX11.so.6 => not found

The next step is finding out which library you need to install (32-Bit libraries in /usr/lib, 64-Bit libraries in /usr/lib64):

dnf provides /usr/lib/libgthread-2.0.so

This will output something like:

glib2-devel-2.44.1-1.fc22.i686

If you want to install it you can omit the version number and the .fc22:

dnf install glib2-devel.i686

Leave a comment

Your email address will not be published. Required fields are marked *