Link to home
Create AccountLog in
Avatar of opike
opike

asked on

Error message when trying to run phpmyadmin

I'm trying to set up phpmyadmin going against mysql/mariadb fork (newly installed). I get the following error message in php_errors.log:
[11-Feb-2013 23:50:12] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0

Open in new window


I attempted to configure mysqli by adding the following line to /etc/php.ini:
extension=/usr/lib64/php/modules/mysqli.so

Open in new window


When I do an ldd on /usr/lib64/php/modules/mysql.so I get the following output:
[ollie@localhost modules]$ ldd mysqli.so
        linux-vdso.so.1 =>  (0x00007fffd29ff000)
        libmysqlclient.so.16 => not found
        libz.so.1 => /lib64/libz.so.1 (0x00007ffd84b10000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007ffd848d9000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007ffd846c0000)
        libm.so.6 => /lib64/libm.so.6 (0x00007ffd8443b000)
        libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007ffd841e0000)
        libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007ffd83e46000)
        libc.so.6 => /lib64/libc.so.6 (0x00007ffd83ab2000)
        libfreebl3.so => /lib64/libfreebl3.so (0x00007ffd83850000)
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007ffd8360e000)
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007ffd8332e000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007ffd8312a000)
        libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007ffd82efe000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007ffd82cf9000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ffd84f5f000)
        libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007ffd82aee000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007ffd828eb000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007ffd826d0000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ffd824b3000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007ffd82293000)

Open in new window


Here are some of the details of my environment:
CentOS 6.3
PHP 5.3.3
Mysql/MariaDB:
mysql  Ver 15.1 Distrib 5.5.29-MariaDB, for Linux (x86_64) using readline 5.1
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

Is the client package installed?
says it can't find libmysqlclient.so.16

http://ftp.osuosl.org/pub/mariadb/mariadb-5.5.29/rhel6-amd64/rpms/MariaDB-5.5.29-centos6-x86_64-client.rpm
Avatar of opike
opike

ASKER

libmysqlclient.so.16 is in /usr/lib.
[ollie@localhost lib]$ pwd
/usr/lib
[ollie@localhost lib]$ ls libmy*
libmysqlclient.a            libmysqlclient_r.so.16      libmysqlclient.so.16
libmysqlclient_r.a          libmysqlclient_r.so.16.0.0  libmysqlclient.so.16.0.0
libmysqlclient_r.so.15      libmysqlclient.so.15        libmysqld.a
libmysqlclient_r.so.15.0.0  libmysqlclient.so.15.0.0    libmysqlservices.a

Open in new window


MariaDB client package is already installed:
[ollie@localhost Downloads]$ sudo rpm -Uvh MariaDB-5.5.29-centos6-x86_64-client.rpm
Preparing...                ########################################### [100%]
        package MariaDB-client-5.5.29-1.x86_64 is already installed

Open in new window

look under lib and lib64 for that name
it should be a symlink pointing to the actual file
How are you installing phpMyAdmin, PHP and MySQL? Are you compiling, or are you installing via yum?

I installed phpMyAdmin by adding the EPEL repo package and then just installed it via yum and have had no problems on my CentOS 6.3 systems.
ASKER CERTIFIED SOLUTION
Avatar of opike
opike

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of opike

ASKER

Found the solution elsewhere