Ask Your Question
0

64 bit rpm installer depends on 32 bit package

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

vipincpy gravatar image

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

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

Comments

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

skytux gravatar imageskytux ( 2013-10-22 11:16:01 -0600 )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 -0600 )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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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 http://www.cyberciti.biz/faq/how-do-i-find-what-dependencies-a-rpm-file-has/

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 600 times

Last updated: Oct 22 '13