[Yum] dependency failure w/ yum (and pirut), ok with rpm -i

David Timms dtimms at iinet.net.au
Sat Feb 21 07:30:43 UTC 2009


Maurizio Vitale wrote:
> I've created a number of RPMs packages (on CentOS 5.2). In particular
> one for GCC works fine if I install it with the 'rpm -i' command.
Is it any different if using rpm -Uvh ?

> When I build a repository (metadata created w/ createrepo) and access it
> through yum (or pirut) the process stops complaining about unsatisfiable
> dependency constraints.
$ package-cleanup --problems

> The output of a yum installation is as follow
> (pirut agrees on the result):
> 
>   [mav at centos-dev rpm_creation]$ sudo yum install polymath-gcc-4.3.3-native-native
>   Loading "fastestmirror" plugin
>   Loading mirror speeds from cached hostfile
>    * Local Polymath Repository: repository
>    * base: mirror.trouble-free.net
>    * updates: mirror.trouble-free.net
>    * addons: yum.singlehop.com
>    * extras: mirror.steadfast.net
>   Setting up Install Process
>   Parsing package install arguments
>   Resolving Dependencies
>   --> Running transaction check
>   ---> Package polymath-gcc-4.3.3-native-native.x86_64 0:4.3.3-1 set to be updated
>   --> Processing Dependency: libc.so.6(GLIBC_2.6)(64bit) for package: polymath-gcc-4.3.3-native-native
>   --> Processing Dependency: libmpfr.so.1()(64bit) for package: polymath-gcc-4.3.3-native-native
>   --> Processing Dependency: libc.so.6(GLIBC_2.6) for package: polymath-gcc-4.3.3-native-native
>   --> Running transaction check
>   ---> Package polymath-gcc-4.3.3-native-native.x86_64 0:4.3.3-1 set to be updated
>   --> Processing Dependency: libmpfr.so.1()(64bit) for package: polymath-gcc-4.3.3-native-native
>   --> Processing Dependency: libc.so.6(GLIBC_2.6) for package: polymath-gcc-4.3.3-native-native
>   ---> Package polymath-glibc-2.7.x86_64 0:2.7-1 set to be updated
>   --> Finished Dependency Resolution
>   Error: Missing Dependency: libc.so.6(GLIBC_2.6) is needed by package polymath-gcc-4.3.3-native-native
>   Error: Missing Dependency: libmpfr.so.1()(64bit) is needed by package polymath-gcc-4.3.3-native-native
Fastest mirror plugin might be causing problems. try to disable it.

There seems to be both 32 and 64 bit packages that are mentioned. 
Perhaps there is an older version of the 32 bit that is tripping yum up ?

> Now those dependencies are in the rpm file, but not explicitely in my
> spec file.
Would you like to post that .spec somewhere, or at least the 
dependencies parts here ?

> rpmbuild added them. Just to minimize possibilities of
> errors, I created the RPMs on the same CentOS system on which yum is
> later run, although in my understanding this shouldn;t be necessary.
rpm -qpR on the package might help to explain ?

> Would somebody be so kind to point me in the right direction and help me
> understand the difference between yum and rpm processing of
> dependencies?
yum is an auto dependency solver, so it will attempt to solve the 
dependencies using the most recent version available in repos (FWIK). 
This might lead to issues where say there is a newer 64 bit package, but 
older 32 bit ?

Cheers, DaveT.


More information about the Yum mailing list