← Back to team overview

maria-discuss team mailing list archive

Re: [MariaDB 10.2.6] [PHP 7.1.6] error: /usr/bin/ld: cannot find -lmysqlclient | wrong mysql library version or lib not found

 



Am 04.07.2017 um 17:37 schrieb Guillermo Cespedes:
I am compiling MariaDB 10.2.6 and PHP 7.1.6

I'm trying it on Debian 8.8 32x and x64 on DigitalOcean

Tested with:
  --with-mysqli=/usr/local/mysql/bin/mysql_config
  --with-mysqli=/usr/local/mysql/bin/mariadb_config

why in the world do poeple in 2017 still link PHP against libmysql at all and how many of these posts do we get just because of the stupid libmysql to libmariadb rename without compat links?

[builduser@testserver:~]$ cat /rpmbuild/SPECS/php.spec | grep mysql
%package        mysqli
Summary:        mysqli
%description    mysqli
rm -f TSRM/tsrm_win32.h TSRM/tsrm_config.w32.h Zend/zend_config.w32.h ext/mysqlnd/config-win.h ext/standard/winver.h main/win32_internal_function_disabled.h main/win95nt.h
 --enable-mysqlnd=shared \
 --with-mysql-sock=%{_sharedstatedir}/mysql/mysql.sock \
 --with-mysqli=shared,mysqlnd \
 --with-pdo-mysql=shared,mysqlnd \


Follow ups

References