Ask Your Question

64 bit rpm installer depends on 32 bit package

asked 2013-10-22 09:49:53 -0500

vipincpy gravatar image

updated 2013-10-22 09:52:43 -0500

I need to make a 64 bit rpm installer and it has got a dependency on an external package. I will mention this external package name under "requires" tag in the spec file. How ever if i mention just the package name where will the rpm installer look for the file. Whether will it look in /usr/lib or /usr/lib64.

Currently Iam having an issue were rpm is looking into /usr/lib for the 32 bit version of the package even though 64 bit of the same is installed in /usr/lib64. Iam getting an error saying "failed dependencies"

edit retag flag offensive close merge delete


Please show us the spec file in order to better help you.

skytux gravatar imageskytux ( 2013-10-22 11:16:01 -0500 )edit

my 64 bit rpm installer I made is set to have a dependency of libstdc++ package. this dependency I have mentioned in the spec file. after I build the rpm Iinstaller and when I start the installation it is looking for 32 bit libstdc++ instead of looking for 64 bit libstdc++. why is it so. the installer passes only if I have libstdc++ installed inside /usr/lib. rpm ignores the libstdc++ installed in /usr/lib64.

vipincpy gravatar imagevipincpy ( 2013-10-22 12:24:28 -0500 )edit

What program are you packaging? Please, again, can you put a link to the spec file in order to better help you?

skytux gravatar imageskytux ( 2013-10-22 13:22:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-22 10:28:59 -0500

hmaarrfk gravatar image

As far as I know

If you rely on an external library, you typically do not need to specify anything. ld will look at your executables and find out which libraries they require. Those libraries will then be dependencies. rpm or yum is then in charge of finding out which packages provide the required libraries.

I think you can check the libraries that your package requires with rpm -q --requires fileutils

To check your package, try to read up about it here

edit flag offensive delete link more

Question Tools


Asked: 2013-10-22 09:49:53 -0500

Seen: 601 times

Last updated: Oct 22 '13