Topic: php upgrade failed due to mysql dependency

Hi remi!

I installed your repo to my system and it appears to be working, however not completely.

When I issue the command 'yum upgrade php*' it starts to go through the motions and then chokes once it gets to the mysql part. I would actually like to upgrade to the latest mysql this way, however that is not strictly necessary for me at this point in time. Right now, my main concern is getting php upgraded to the latest version in your repository.

Here is my output. Any advice on how to get this to work?

[root@lcent5-1 yum.repos.d]# yum upgrade php*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.anl.gov
 * base: mirror.atlanticmetro.net
 * epel: mirror.umoss.org
 * extras: centos.mirror.nac.net
 * remi: rpms.famillecollet.com
 * remi-test: rpms.famillecollet.com
 * updates: centos.mirrors.tds.net
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package php.i386 0:5.3.2-1.el5.remi set to be updated
---> Package php-cli.i386 0:5.3.2-1.el5.remi set to be updated
--> Processing Dependency: libedit.so.0 for package: php-cli
---> Package php-common.i386 0:5.3.2-1.el5.remi set to be updated
---> Package php-devel.i386 0:5.3.2-1.el5.remi set to be updated
---> Package php-mbstring.i386 0:5.3.2-1.el5.remi set to be updated
---> Package php-mysql.i386 0:5.3.2-1.el5.remi set to be updated
--> Processing Dependency: libmysqlclient.so.16 for package: php-mysql
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: php-mysql
---> Package php-pdo.i386 0:5.3.2-1.el5.remi set to be updated
--> Processing Dependency: libsqlite.so.0 for package: php-pdo
--> Running transaction check
---> Package libedit.i386 0:2.11-2.20080712cvs.el5 set to be updated
---> Package mysql-libs.i386 0:5.1.45-1.el5.remi set to be updated
---> Package sqlite2.i386 0:2.8.17-2.el5.remi set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================
 Package                                 Arch                            Version                                             Repository                       Size
===================================================================================================================================================================
Updating:
 php                                     i386                            5.3.2-1.el5.remi                                    remi                            1.3 M
 php-cli                                 i386                            5.3.2-1.el5.remi                                    remi                            2.6 M
 php-common                              i386                            5.3.2-1.el5.remi                                    remi                            949 k
 php-devel                               i386                            5.3.2-1.el5.remi                                    remi                            617 k
 php-mbstring                            i386                            5.3.2-1.el5.remi                                    remi                            2.1 M
 php-mysql                               i386                            5.3.2-1.el5.remi                                    remi                            139 k
 php-pdo                                 i386                            5.3.2-1.el5.remi                                    remi                            162 k
Installing for dependencies:
 libedit                                 i386                            2.11-2.20080712cvs.el5                              epel                             79 k
 mysql-libs                              i386                            5.1.45-1.el5.remi                                   remi                            1.7 M
 sqlite2                                 i386                            2.8.17-2.el5.remi                                   remi                            170 k

Transaction Summary
===================================================================================================================================================================
Install      3 Package(s)         
Update       7 Package(s)         
Remove       0 Package(s)         

Total size: 9.7 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
  file /etc/my.cnf from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/danish/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/dutch/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/english/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/estonian/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/french/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/german/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/greek/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/italian/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/japanese/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/korean/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/polish/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/romanian/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/russian/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/serbian/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/slovak/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/spanish/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/swedish/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386
  file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-libs-5.1.45-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-4.el5_4.2.i386

Error Summary
-------------

Thanks!

Re: php upgrade failed due to mysql dependency

You must update client library of MySQL first.

2 solutions

1/ update all mysql package

yum --enablerepo=remi update mysql\*

You will have client version 15 (mysqlclient15) and 16 (mysql-libs)

2/ install client library for mysql 5.1 (and keep server at 5.0)

yum --enablerepo=remi-test install mysqlclient16

You will have client version 15 (mysql) and 16 (mysqlclient16)

Old app will use client version 15
PHP will use client version 16

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php upgrade failed due to mysql dependency

Most excellent... THAT DID IT!!! Thanks! Now I can proceed with installing my status.net microblogging site!

Best!!!

Tim