Error installing mcrypt extension on Centos VPS upgraded to PHP 5.4.33 - centos6

[root#vps-1160435-21941 ~]# yum install php-mcrypt*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.greenmountainaccess.net
* epel: mirror.clarkson.edu
* extras: mirror.millry.co
* updates: mirrors.rit.edu
Setting up Install Process
Examining php-mcrypt-5.4.23-1.el6.remi.x86_64.rpm: php-mcrypt-5.4.23-1.el6.remi.x86_64
Marking php-mcrypt-5.4.23-1.el6.remi.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.4.23-1.el6.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.23-1.el6.remi for package: php-mcrypt-5.4.23-1.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-mcrypt-5.4.23-1.el6.remi.x86_64 (/php-mcrypt-5.4.23-1.el6.remi.x86_64)
Requires: php-common(x86-64) = 5.4.23-1.el6.remi
Installed: php-common-5.4.33-2.el6.remi.x86_64 (#remi)
php-common(x86-64) = 5.4.33-2.el6.remi
Available: php-common-5.3.3-26.el6.x86_64 (base)
php-common(x86-64) = 5.3.3-26.el6
Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
php-common(x86-64) = 5.3.3-27.el6_5
Available: php-common-5.3.3-27.el6_5.1.x86_64 (updates)
php-common(x86-64) = 5.3.3-27.el6_5.1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

It seems that you don't have proper repositories imported into yum, and it is fetching info from built-in list (which contains PHP 5.3.3 in centos 6).
Try following this guide:
https://webtatic.com/packages/php54/
Or this one for latest PHP 5.5
https://webtatic.com/packages/php55/

Related

MariaDB upgrade on Red Hat blocked on the installing v10.9.2 due to missing package pv

The MariaDB upgrade of MariaDB seem to follow the same behaviour pattern of removing the old version, keeping the data, then installing the new version, such as Upgrading from MariaDB 10.3 to MariaDB 10.4, and the other version to version procedures are the same.
When upgrading from v10.3 to v10.9 on an RHEL 7 host, the process errored when installing the new version, saying, Error: Package: MariaDB-server-10.9.2-1.el7.centos.x86_64 (mariadb) Requires: pv.
I am new to the upgrade process, so I will highly appreciate any hints or suggestions.
Full screenshot:
[root#hostname lib]# yum install MariaDB-server MariaDB-client MariaDB-backup MariaDB-shared
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-backup.x86_64 0:10.9.2-1.el7.centos will be installed
--> Processing Dependency: libpmem.so.1(LIBPMEM_1.0)(64bit) for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64
--> Processing Dependency: MariaDB-common for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64
--> Processing Dependency: libpmem.so.1()(64bit) for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64
--> Processing Dependency: libpcre2-8.so.0()(64bit) for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64
---> Package MariaDB-client.x86_64 0:10.9.2-1.el7.centos will be installed
---> Package MariaDB-server.x86_64 0:10.9.2-1.el7.centos will be installed
--> Processing Dependency: galera-4 for package: MariaDB-server-10.9.2-1.el7.centos.x86_64
--> Processing Dependency: pv for package: MariaDB-server-10.9.2-1.el7.centos.x86_64
---> Package MariaDB-shared.x86_64 0:10.9.2-1.el7.centos will be installed
--> Running transaction check
---> Package MariaDB-common.x86_64 0:10.9.2-1.el7.centos will be installed
--> Processing Dependency: MariaDB-compat for package: MariaDB-common-10.9.2-1.el7.centos.x86_64
---> Package MariaDB-server.x86_64 0:10.9.2-1.el7.centos will be installed
--> Processing Dependency: pv for package: MariaDB-server-10.9.2-1.el7.centos.x86_64
---> Package galera-4.x86_64 0:26.4.12-1.el7.centos will be installed
--> Processing Dependency: socat for package: galera-4-26.4.12-1.el7.centos.x86_64
---> Package libpmem.x86_64 0:1.5.1-2.1.el7 will be installed
---> Package pcre2.x86_64 0:10.23-2.el7 will be installed
--> Running transaction check
---> Package MariaDB-compat.x86_64 0:10.9.2-1.el7.centos will be installed
---> Package MariaDB-server.x86_64 0:10.9.2-1.el7.centos will be installed
--> Processing Dependency: pv for package: MariaDB-server-10.9.2-1.el7.centos.x86_64
---> Package socat.x86_64 0:1.7.3.2-2.el7 will be installed
--> Finished Dependency Resolution
Error: Package: MariaDB-server-10.9.2-1.el7.centos.x86_64 (mariadb)
Requires: pv
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************
Error: Package: MariaDB-server-10.9.2-1.el7.centos.x86_64 (mariadb)
Requires: pv
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root#hostname lib]#
pv is in the EPEL repository.
One you enable this repository, pv will be pulled in as the dependency from there.

Dependency error while installing MariaDB10.1 on RHEL 7.1

I am trying to install MariaDB 10.1 on RHEL 7.1 using following link
https://downloads.mariadb.org/mariadb/repositories/#mirror=Fibergrid&distro=RedHat&distro_release=rhel7-amd64--rhel7&version=10.1
I am Getting following error while installing
--> Running transaction check
---> Package MariaDB-server.x86_64 0:10.1.20-1.el7.centos will be installed
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: MariaDB-server-10.1.20-1.el7.centos.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: MariaDB-server-10.1.20-1.el7.centos.x86_64
---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed
--> Finished Dependency Resolution
Error: Package: MariaDB-server-10.1.20-1.el7.centos.x86_64 (mariadb)
Requires: libsystemd.so.0()(64bit)
Error: Package: MariaDB-server-10.1.20-1.el7.centos.x86_64 (mariadb)
Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Looks like the same issue was solved by Docker community
Their solution was to upgrade RHEL to 7.2 version and these problems should be gone
I had the same issue with Amazon Linux, but solution is different (solution can be found here)
Good luck.

php55w-common conflict when adding php-fpm

So I am trying to add php-fpm to have it work with nginx. But the issue I am having is I already have some other php stuff in there like php-common and now it's having conflicts. So centOS is suggesting I use --skip-broken but i'm not sure if that's the best way to go? Would there be any issues if I do end up using that to install php-fpm?
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: dallas.tx.mirror.xygenhosting.com
* epel: www.gtlib.gatech.edu
* extras: mirror.millry.co
* updates: mirror.cs.vt.edu
* webtatic: us-east.repo.webtatic.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-fpm.x86_64 0:5.3.3-27.el6_5.1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5.1 for package: php-fpm-5.3.3-27.el6_5.1.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.3-27.el6_5.1 will be installed
--> Processing Conflict: php55w-common-5.5.16-1.w6.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php55w-common conflicts with php-common-5.3.3-27.el6_5.1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
If you know what you are doing, you can upgrade PHP by:
yum install yum-plugin-replace
yum replace php-common --replace-with=php55w-common
It will likely give you a message “WARNING: Unable to resolve all providers …”. This is normal, and you can continue by tying “y“. You will be given a chance to see what packages will be installed and removed before again being given a chance to confirm.
Then you can continue with your previous installation command

CDH4.x : Installation hangs there

I've downloaded cloudera-manager-installer.bin from CDH's official site. But when I trying to install it, the program hangs at 40% progress.
The installation log looks like this:
Loading mirror speeds from cached hostfile
* epel: mirrors.neusoft.edu.cn
* rpmforge: ftp.riken.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package cloudera-manager-server.x86_64 0:4.8.2-1.cm482.p0.101.el6 will be installed
--> Processing Dependency: cloudera-manager-daemons = 4.8.2 for package: cloudera-manager-server-4.8.2-1.cm482.p0.101.el6.x86_64
--> Running transaction check
---> Package cloudera-manager-daemons.x86_64 0:4.8.2-1.cm482.p0.101.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
cloudera-manager-server x86_64 4.8.2-1.cm482.p0.101.el6 cloudera-manager 7.7 k
Installing for dependencies:
cloudera-manager-daemons
x86_64 4.8.2-1.cm482.p0.101.el6 cloudera-manager 148 M
Transaction Summary
================================================================================
Install 2 Package(s)
Total download size: 148 M
Installed size: 203 M
Downloading Packages:
I can access archive.cloudera.com from my server.
How can I deal with this problem ?
Try the following
sudo unmount cm_processes
sudo rm -Rf /var/run/cloudera*
Doing it solved this for me.

Missing Dependency: php-common = 5.3.14-1.el5.remi

I try to install PHP-FPM for NGINX then get same errors, with remi repository.
Maybe have version conflate with php-common, How can i fix it.
yum --enablerepo=remi install php-fpm
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: centos.mirror.transip.nl
* extras: centos.mirror.transip.nl
* remi: remi-mirror.dedipower.com
* updates: centos.mirror.transip.nl
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-fpm.x86_64 0:5.3.14-1.el5.remi set to be updated
--> Processing Dependency: php-common = 5.3.14-1.el5.remi for package: php-fpm
--> Finished Dependency Resolution
php-fpm-5.3.14-1.el5.remi.x86_64 from remi has depsolving problems
--> Missing Dependency: php-common = 5.3.14-1.el5.remi is needed by package php-fpm-5.3.14- 1.el5.remi.x86_64 (remi)
Error: Missing Dependency: php-common = 5.3.14-1.el5.remi is needed by package php-fpm- 5.3.14-1.el5.remi.x86_64 (remi)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
You'll need to install/update php-common manually first.
Try this:
rpm -i http://rpms.famillecollet.com/enterprise/5/remi/x86_64/php-common-5.3.14-1.el5.remi.x86_64.rpm
If you get a conflict (say due to an earlier version already installed), use
rpm -i http://rpms.famillecollet.com/enterprise/5/remi/x86_64/php-common-5.3.14-1.el5.remi.x86_64.rpm --force
The old version can be removed without taking its dependencies with it like this
rpm -e --nodeps php-common-5.3.10-1.el5.remi.x86_64

Resources