I've downloaded some older php packages from Webtatic which are required for my application and created a local repository (repo_php). One of the packages in my 'repo_app' has a dependency on packages from repo_php. While installing, yum returns the following error.
...
--> Finished Dependency Resolution
Error: Package: app-platform-20190921-6.el7.centos.x86_64 (repo_app)
Requires: php72w-mbstring >= 7.2.16-1
Available: php72w-mbstring-7.2.16-1.w7.x86_64 (repo_php)
php72w-mbstring = 7.2.16-1.w7
Error: Package: app-platform-20190921-6.el7.centos.x86_64 (repo_app)
Requires: php72w-ldap >= 7.2.16-1
Available: php72w-ldap-7.2.16-1.w7.x86_64 (repo_php)
php72w-ldap = 7.2.16-1.w7
...
...
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
The app-platform-20190921-6.el7.centos.x86_64 is an application package which requires the php packages to be installed from repo_php. From the error log it can be seen that the required package is available but still Yum is unable to proceed with the installation. I've tried using different php version naming in the Requires tag of app-platform rpmspec file. Running out of options to troubleshoot.
Related
I'm trying to update from PHP 5.6 to PHP 7 on my Vagrant machine. I'm more or less following this guide https://blog.remirepo.net/post/2017/12/04/Install-PHP-7.2-on-CentOS-RHEL-or-Fedora
I've done the following:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm
I follow the regular steps for activating the packages, but then when I try to update through
yum update
I get the following error:
php-pecl-mongo-1.6.16-1.el7.remi.5.6.x86_64 (#remi-php56)
Requires: php(api) = 20131106-64
Removing: php-common-5.6.36-1.el7.remi.x86_64 (#remi-php56)
The error is actually longer. But in short, it indicates that the I need the Mongo Driver for PHP 7.
How can I update this though? I'm at loss!
The mongo extension is only for PHP 5.
The mongodb extension is for PHP 5.5+ and PHP 7+
So yum blocks the transaction (expected) as one of the installed extension is not compatible with PHP 7.
You have to remove this extension before the upgrade.
Be aware than mongodb and mongo are really different extensions, with very different API.
Usually people use the mongodb/mongodb library to have a high level API
You can also consider using alcaeus/mongo-php-adapter library which provides the old mongo API using mongodb extension.
I am need to enable PHP OAuth for a QuickBooks integration. I am working on a centos 6 system. My attempts to install php-pecl-oauth via yum throws this error:
php56w-common-5.6.27-1.w6.i386 conflicts php-common
I tried adding --skip-broken, but that doesn't resaolve the issue; it just skips the package I am trying to install. I also tried yum install php56-pecl-oauth, but that package doesn't exist.
I've tried googling and haven't found a real hit yet. Anyone know how to overcome this?
Mysql is not working with PHP. I got a blank white page on my website. and I'm looking for the problem, for some reasons, i found out that my php version doesn't have a mysql version. So look for some solutions and here's what I've gone so far.
I tried to update my php version and mysql.
I got this error after executing this command
yum install -y php php-mysql
i have a centOS 6.4 and a php 5.3.3 . and my php doesn't have a mysql support. what should i do?
and after i execute the said command (yum install -y php php-mysql). I got an error message. Is there something wrong with my code?
Error: Package: php-common-5.3.27-2.w5.i386 (webtatic) Requires: libcurl.so.3
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
in my situation I solved my problem by enabling rpmforge-extras repository in yum.repos:
thanks to this
> cat /etc/yum.repos.d/rpmforge.repo
...
[rpmforge-extras]
...
enabled = 0
This is strange as yum typically tries to resolve dependencies. Try installing libcurl manually:
yum install libcurl libcurl-devel
I am running CentOS 6.4 and thereby natively stuck with PHP 5.3 but I need 5.5 so I have upgraded to 5.5 with this guide here, http://www.webtatic.com/packages/php55/
I have removed all old packages before installation and I have now reinstalled everything except the "rrdtool-php" package which is the only one giving me some problems.
When I run it I get this error:
[root#srv install]# yum install rrdtool-php
Loaded plugins: fastestmirror, replace, security
Loading mirror speeds from cached hostfile
* base: centos.skarta.net
* extras: centos.skarta.net
* updates: mirror.easyspeedy.com
* webtatic: uk.repo.webtatic.com
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rrdtool-php.i686 0:1.3.8-6.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: rrdtool-php-1.3.8-6.el6.i686
--> Processing Dependency: php(api) = 20090626 for package: rrdtool-php-1.3.8-6.el6.i686
--> Running transaction check
---> Package php-common.i686 0:5.3.3-22.el6 will be installed
--> Processing Conflict: php55w-common-5.5.0-1.w6.i386 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php55w-common conflicts with php-common-5.3.3-22.el6.i686
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I already have the "php55w-common" installed so naturally I cannot installed the "php-common" package too. I don't dare to try the "--skip-broken" option as I do not want to end up in everything breaking.
Can anyone help me clarifying how to solve this problem?
rrdtool-php in CentOS/RHEL 6 is built against the php 5.3 extension api, and so can't be used in later releases of PHP (neither 5.4 or 5.5).
A package could be created that supports this php extension in PHP 5.5, but it's not something I plan to do for Webtatic, as not a common request.
If you find it suitable for yourself, you can instead use the pecl installer for the php extension:
yum install rrdtool-devel php55w-pear php55w-devel
pecl install rrd
echo "extension=rrd.so" > /etc/php.d/rrd.ini
I'm trying in vain to get the php oci_* extensions installed on our server, but i've hit a brick wall.
So far i've done this:
Installed oracle basic & devel libraries (v10.2)
Installed php-pear package
Now I'm trying to install oci8 using "pecl install oci8" but I get an error message about "phpize" command not being found.
My googling tells me that that is caused by "php-devel" not being installed, so i tried various different yum searches, e.g. "yum search php-devel", "yum search php5-devel", "yum search php-dev", etc... none of which could find anything.
I eventually found a repository hosted by "utterramblings" which had php-devel. So, now when I do a yum search using that repository, it can find "php-devel":
php-devel.i386 : Files needed for building PHP extensions
But when I try to install it I get this:
Error: Package: php-devel-5.2.17-jason.2.i386 (utterramblings)
Requires: php = 5.2.17-jason.2
Installed: php-5.3.3-14.el6_3.i686 (#rhel-i386-server-6)
php = 5.3.3-14.el6_3
Available: php-5.2.13-jason.1.i386 (utterramblings)
php = 5.2.13-jason.1
Available: php-5.2.14-jason.1.i386 (utterramblings)
php = 5.2.14-jason.1
Available: php-5.2.16-jason.1.i386 (utterramblings)
php = 5.2.16-jason.1
Available: php-5.2.17-jason.2.i386 (utterramblings)
php = 5.2.17-jason.2
Available: php-5.3.2-6.el6.i686 (rhel-i386-server-6)
php = 5.3.2-6.el6
Available: php-5.3.2-6.el6_0.1.i686 (rhel-i386-server-6)
php = 5.3.2-6.el6_0.1
Available: php-5.3.3-3.el6.i686 (rhel-i386-server-6)
php = 5.3.3-3.el6
Available: php-5.3.3-3.el6_1.3.i686 (rhel-i386-server-6)
php = 5.3.3-3.el6_1.3
Available: php-5.3.3-3.el6_2.5.i686 (rhel-i386-server-6)
php = 5.3.3-3.el6_2.5
Available: php-5.3.3-3.el6_2.6.i686 (rhel-i386-server-6)
php = 5.3.3-3.el6_2.6
Available: php-5.3.3-3.el6_2.8.i686 (rhel-i386-server-6)
php = 5.3.3-3.el6_2.8
And to be honest, i'm not sure how to resolve that, presumably it has something to do with the version of php we have installed, but i'm not sure what I need to do to fix it.
These are our details:
Red Hat Enterprise Linux Server release 6.1 (Santiago) [32bit]
PHP 5.3.3
Could anyone please advise me as to either:
a) what I need to do to resolve that issue and get php-devel installed from that repo
OR
b) point me in the direction of another repo which will allow me to easily install php-devel for our server
Thank you.
Managed to get it installed eventually.
To quickly detail what I did for any future viewers, I ran:
yum list installed
To find out what exact package of php we had installed (5.5.3-14.el6_3 I think or something like that).
Then searched for the relevant php-devel package to match that php package version on rpm.pbone.net.
Tried to install that and failed with a "failed depencies" error "automake needed to install php-devel".
Ran:
yum install automake
Then tried to installed the package again:
rpm -Uvh URLOFPACKAGE
It installed correctly, then ran:
pecl install oci8
And followed the instructions.
Restarted httpd service and done.