Unable to install phpMyAdmin on Redhat 6. Missing librecode.so.0

Zamicol asked:

I’m attempting to install phpmyadmin on a Redhat 6 box using Remi.

$ sudo yum install phpmyadmin

It fails because of a dependency issue with librecode.so.0. Any advice?

Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package phpMyAdmin.noarch 0:4.2.10-1.el6.remi will be installed
--> Processing Dependency: php-tidy for package: phpMyAdmin-4.2.10-1.el6.remi.noarch
--> Processing Dependency: php-tcpdf-dejavu-sans-fonts for package: phpMyAdmin-4.2.10-1.el6.remi.noarch
--> Processing Dependency: php-tcpdf for package: phpMyAdmin-4.2.10-1.el6.remi.noarch
--> Processing Dependency: php-recode for package: phpMyAdmin-4.2.10-1.el6.remi.noarch
--> Processing Dependency: php-phpseclib-crypt-aes for package: phpMyAdmin-4.2.10-1.el6.remi.noarch
--> Processing Dependency: php-php-gettext for package: phpMyAdmin-4.2.10-1.el6.remi.noarch
--> Processing Dependency: php-mcrypt for package: phpMyAdmin-4.2.10-1.el6.remi.noarch
--> Processing Dependency: php-gmp for package: phpMyAdmin-4.2.10-1.el6.remi.noarch
--> Processing Dependency: php-bcmath for package: phpMyAdmin-4.2.10-1.el6.remi.noarch
--> Running transaction check
---> Package php-bcmath.x86_64 0:5.6.2-1.el6.remi will be installed
---> Package php-gmp.x86_64 0:5.6.2-1.el6.remi will be installed
---> Package php-mcrypt.x86_64 0:5.6.2-1.el6.remi will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt-5.6.2-1.el6.remi.x86_64
---> Package php-php-gettext.noarch 0:1.0.11-4.el6.remi will be installed
---> Package php-phpseclib-crypt-aes.noarch 0:0.3.8-1.el6.remi will be installed
--> Processing Dependency: php-pear(phpseclib.sourceforge.net/Crypt_Rijndael) >= 0.3.0 for package: php-phpseclib-crypt-aes-0.3.8-1.el6.remi.noarch
--> Processing Dependency: php-channel(phpseclib.sourceforge.net) for package: php-phpseclib-crypt-aes-0.3.8-1.el6.remi.noarch
---> Package php-recode.x86_64 0:5.6.2-1.el6.remi will be installed
--> Processing Dependency: librecode.so.0()(64bit) for package: php-recode-5.6.2-1.el6.remi.x86_64
---> Package php-tcpdf.noarch 0:6.0.095-1.el6.remi will be installed
---> Package php-tcpdf-dejavu-sans-fonts.noarch 0:6.0.095-1.el6.remi will be installed
---> Package php-tidy.x86_64 0:5.6.2-1.el6.remi will be installed
--> Processing Dependency: libtidy-0.99.so.0()(64bit) for package: php-tidy-5.6.2-1.el6.remi.x86_64
--> Running transaction check
---> Package libmcrypt.x86_64 0:2.5.8-9.el6 will be installed
---> Package libtidy.x86_64 0:0.99.0-19.20070615.1.el6 will be installed
---> Package php-channel-phpseclib.noarch 0:1.3-1.el6.remi will be installed
---> Package php-phpseclib-crypt-rijndael.noarch 0:0.3.8-1.el6.remi will be installed
--> Processing Dependency: php-pear(phpseclib.sourceforge.net/Crypt_Base) for package: php-phpseclib-crypt-rijndael-0.3.8-1.el6.remi.noarch
---> Package php-recode.x86_64 0:5.6.2-1.el6.remi will be installed
--> Processing Dependency: librecode.so.0()(64bit) for package: php-recode-5.6.2-1.el6.remi.x86_64
--> Running transaction check
---> Package php-phpseclib-crypt-base.noarch 0:0.3.8-1.el6.remi will be installed
---> Package php-recode.x86_64 0:5.6.2-1.el6.remi will be installed
--> Processing Dependency: librecode.so.0()(64bit) for package: php-recode-5.6.2-1.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-recode-5.6.2-1.el6.remi.x86_64 (remi-php56)
           Requires: librecode.so.0()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

My answer:


The missing dependency librecode.so.0 is provided by the recode package.

It appears that this missing package is in the RHEL optional channel. Try enabling this channel.

It’s very often necessary to use this channel when adding packages from third party repositories.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.