web-dev-qa-db-fra.com

Impossible d'installer libffi-devel

J'essaie d'installer libffi-devel sur RHEL, mais lorsque j'essaie, je reçois le message suivant:

Transaction Check Error:
  package libffi-3.0.5-1.el5.6.z.x86_64 (which is newer than libffi-3.0.5-1.el5.i386) is already installed

Je lance cette commande:

Sudo yum install -y libffi-devel

Et voici la sortie complète de la commande:

Loaded plugins: downloadonly, rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Excluding Packages in global exclude list
Finished
Excluding Packages from Rackspace - RHEL (v. 5 for 64-bit x86_64) - Common
Finished
Excluding Packages from Rackspace - RHEL (v. 5 for 64-bit x86_64) - MySQL 5.1
Finished
Excluding Packages from Rackspace - RHEL (v. 5 for 64-bit x86_64) - PHP 5.2
Finished
Excluding Packages from Red Hat Enterprise Linux (v. 5 for 64-bit x86_64)
Finished
Excluding Packages from Red Hat Network Tools for RHEL Server (v.5 64-bit x86_64)
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libffi-devel.x86_64 0:3.0.5-1.el5 set to be updated
--> Processing Dependency: libffi = 3.0.5-1.el5 for package: libffi-devel
--> Running transaction check
---> Package libffi.i386 0:3.0.5-1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================================================================================================================================
 Package                                                               Arch                                                            Version                                                              Repository                                                     Size
================================================================================================================================================================================================================================================================================
Installing:
 libffi-devel                                                          x86_64                                                          3.0.5-1.el5                                                          epel                                                           16 k
Installing for dependencies:
 libffi                                                                i386                                                            3.0.5-1.el5                                                          epel                                                           21 k

Transaction Summary
================================================================================================================================================================================================================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total size: 37 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
  package libffi-3.0.5-1.el5.6.z.x86_64 (which is newer than libffi-3.0.5-1.el5.i386) is already installed

Error Summary
-------------
9
quinn

On dirait que vous avez déjà une version de libffi-3.0.5-1.el5.6.z.x86_64 installée sur votre système. Vérifiez avec la commande et supprimez d'abord le régime.

rpm -qa | grep libffi
rpm -e <rpm from the above>

Ensuite, essayez d'installer en utilisant:

Sudo yum install -y libffi libffi-devel
15
askb

vous pouvez installer libffi comme ci-dessous - 

    rpm -ivv ftp://195.220.108.108/linux/centos/6.7/os/x86_64/Packages/libffi-devel-3.0.5-3.2.el6.x86_64.rpm
0
mungayree