Topic: update php 5 et missing dependancy

Bonjour,

Sur un serveur Centos 5, j'ai php.x86_64 en version 5.1.6-27.el5
Je suis assez débutant en linux et souhaiterai passer php en version 5.2
J'ai donc installé les rpm de remi par wget, et fait un

yum update --enablerepo=remi php

.
Malheursement je me retrouve avec un message d'erreur :

Error: Missing Dependency: php-common = 5.2.10-1.el5.remi is needed by package php-mhash-5.2.10-1.el5.remi.x86_64 (remi)

J'ai bien vu l'option proposée en dessous --skip-broken, mais la solution ne me parait pas très propre, d'autant que cette mise à jour est à faire sur un serveur de production, que je ne souhaite pas vraiment planter si vous voyez ce que je veux dire.

Autre question :
En faisant

yum list mysql

, je trouve 2 packages : mysql.i386, mysql.x86_64.
Comment puis-je savoir si les 2 sont utilisés, et y a-t-il un intéret d'avoir les 2 versions ?

Merci

Re: update php 5 et missing dependancy

Déjà abordé de nombreuses fois....

L'extension mhash n'est plus supportée.
Il faut la désinstaller avant la MAJ.

+

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: update php 5 et missing dependancy

Ok super merci pour l'info.

Maintenant j'ai qqs pbs de conflits de la transaction check error :

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

Est-ce que je dois supprimer les package concernés qui sont en conflits ? Est-ce que je ne risque pas de perdre par exemple mes données mysql ? Y a-t-il un moyen de savoir si ces packages sont utilisés à l'heure actuelle car je ne voudrais pas que les programmes actuels tombent en rade.

Re: update php 5 et missing dependancy

Pareil... une petite recherche....

Il faut mettre à jour MySQL "avant" PHP.

yum --enablerepo=remi update mysql\*

+

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: update php 5 et missing dependancy

Le soucis c'est qu'il me prend ces dependancies :

=============================================================================================================================================================
 Package                                   Arch                            Version                                       Repository                     Size
=============================================================================================================================================================
Installing:
 php-pecl-ncurses                          x86_64                          1.0.1-1.el5.remi                              remi                           30 k
     replacing  php-ncurses.x86_64 5.1.6-27.el5

Updating:
 mysql                                     x86_64                          5.1.52-1.el5.remi                             remi                          1.1 M
 mysql-devel                               x86_64                          5.1.52-1.el5.remi                             remi                          120 k
 mysql-server                              x86_64                          5.1.52-1.el5.remi                             remi                           11 M
Installing for dependencies:
 mysql-libs                                x86_64                          5.1.52-1.el5.remi                             remi                          1.7 M
 mysqlclient15                             x86_64                          5.0.67-1.el5.remi                             remi                          1.3 M
Updating for dependencies:
 php                                       x86_64                          5.3.3-1.el5.remi                              remi                          1.3 M
 php-cli                                   x86_64                          5.3.3-1.el5.remi                              remi                          2.5 M
 php-common                                x86_64                          5.3.3-1.el5.remi                              remi                          961 k
 php-devel                                 x86_64                          5.3.3-1.el5.remi                              remi                          619 k
 php-gd                                    x86_64                          5.3.3-1.el5.remi                              remi                          206 k
 php-mbstring                              x86_64                          5.3.3-1.el5.remi                              remi                          2.3 M
 php-mcrypt                                x86_64                          5.3.3-1.el5.remi                              remi                           45 k
 php-mysql                                 x86_64                          5.3.3-1.el5.remi                              remi                          156 k
 php-pdo                                   x86_64                          5.3.3-1.el5.remi                              remi                          171 k
 php-xml                                   x86_64                          5.3.3-1.el5.remi                              remi                          219 k
 php-xmlrpc                                x86_64                          5.3.3-1.el5.remi                              remi                           84 k

Et du coup il me remet ces erreurs :

Transaction Check Error:
  file /usr/share/man/man1/my_print_defaults.1.gz from install of mysql-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/man/man1/mysql.1.gz from install of mysql-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/man/man1/mysql_config.1.gz from install of mysql-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/man/man1/mysql_find_rows.1.gz from install of mysql-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/man/man1/mysql_waitpid.1.gz from install of mysql-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/man/man1/mysqlaccess.1.gz from install of mysql-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/man/man1/mysqladmin.1.gz from install of mysql-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/man/man1/mysqldump.1.gz from install of mysql-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/man/man1/mysqlshow.1.gz from install of mysql-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /etc/my.cnf from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/danish/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/dutch/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/english/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/estonian/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/french/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/german/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/greek/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/italian/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/japanese/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/korean/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/polish/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/romanian/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/russian/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/serbian/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/slovak/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/spanish/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/swedish/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386
  file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-libs-5.1.52-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.4.i386

J'ai essayé de faire un

yum update mysql.i386

sans trop y croire et effectivement ça n'a rien donné (rien à mettre à jour).

Re: update php 5 et missing dependancy

OK, j'avais pas bien vu. Il y a 2 versions, i386 et x86_64, un bug classique de l'installeur...

Donc, yum remove mysql.i386

Voir même (le grand ménage) : yum remove glibc.i686

+

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