#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    1
    Rep Power
    0

    Php-mysql installation failed


    hi gurus

    we have a system in Red Hat Enterprise Linux Server release 6.3 and we installed mysql 5.6.12 and php 5.3.3 ,

    details are given below

    [root@KSNDMCSR201301 home]# rpm -qa | grep php
    php-common-5.3.3-3.el6_2.8.x86_64
    php-cli-5.3.3-3.el6_2.8.x86_64
    php-5.3.3-3.el6_2.8.x86_64
    [root@KSNDMCSR201301 home]#
    [root@KSNDMCSR201301 home]# rpm -qa | grep MySQL
    MySQL-client-5.6.12-1.el6.x86_64
    MySQL-shared-5.6.12-1.el6.x86_64
    MySQL-devel-5.6.12-1.el6.x86_64
    MySQL-server-5.6.12-1.el6.x86_64
    [root@KSNDMCSR201301 home]#

    Now as per developer requirement we are trying to install
    php-mysql , but it gives the following error message . please shed some light on this issue . thanks for any help
    [root@KSNDMCSR201301 Packages]# yum install php-mysql
    Loaded plugins: product-id, security, subscription-manager
    Updating certificate-based repositories.
    Unable to read consumer identity
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package php-mysql.x86_64 0:5.3.3-3.el6_2.8 will be installed
    --> Processing Dependency: php-pdo for package: php-mysql-5.3.3-3.el6_2.8.x86_64
    --> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: php-mysql-5.3.3-3.el6_2.8.x86_64
    --> Processing Dependency: libmysqlclient.so.16()(64bit) for package: php-mysql-5.3.3-3.el6_2.8.x86_64
    --> Running transaction check
    ---> Package mysql-libs.x86_64 0:5.1.61-4.el6 will be installed
    ---> Package php-pdo.x86_64 0:5.3.3-3.el6_2.8 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ==================================================================================================== ==================================================================================================== =====================================
    Package Arch Version Repository Size
    ==================================================================================================== ==================================================================================================== =====================================
    Installing:
    php-mysql x86_64 5.3.3-3.el6_2.8 Server 79 k
    Installing for dependencies:
    mysql-libs x86_64 5.1.61-4.el6 Server 1.2 M
    php-pdo x86_64 5.3.3-3.el6_2.8 Server 73 k

    Transaction Summary
    ==================================================================================================== ==================================================================================================== =====================================
    Install 3 Package(s)

    Total size: 1.4 M
    Installed size: 4.4 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test


    Transaction Check Error:
    file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/cp1256.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/cp1257.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/cp850.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/cp852.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/cp866.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/dec8.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/geostd8.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/greek.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/hebrew.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/hp8.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/keybcs2.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/koi8r.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/koi8u.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/latin1.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/latin2.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/latin5.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/latin7.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/macce.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/macroman.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/charsets/swe7.xml from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/danish/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/dutch/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/english/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/estonian/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/french/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/german/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/greek/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/italian/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/japanese/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/korean/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/polish/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/romanian/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/russian/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/serbian/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/slovak/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/spanish/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/swedish/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64
    file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-libs-5.1.61-4.el6.x86_64 conflicts with file from package MySQL-server-5.6.12-1.el6.x86_64

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

    [root@KSNDMCSR201301 Packages]#

    rgds
    mahi
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2009
    Location
    Nebraska, USA
    Posts
    830
    Rep Power
    275
    The issue is that YUM [the package manager] only knows about this=>---> Package mysql-libs.x86_64 0:5.1.61-4.el6 in its repository. (notice the version number)..while you are wanting to install php-mysql libs for the version of mysql-server that you installed from source (which was MySQL-server-5.6.12-1.el6.x86_64).

    So, you are going to have to either find the source for mysql-libs-5.6.12-1.el6.x86_64 and install it like you did for MySQL-server-5.6.12-1.el6.x86_64.....or update your package repository list with some cutting edge list that might include the mysql-libs-v5.6.12-1.el6 version.

    Comments on this post

    • this213 agrees : This is why you don't install from source on RPM-based systems. If you must compile, build an rpm

IMN logo majestic logo threadwatch logo seochat tools logo