-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install from source on CentOS 7 #47
Comments
libmysqlclient not installed or wrong lib islocation |
Encountered the same error on centos 7 with mariadb 10.1 from mariadb repo + php5.6 from IUS repo (worth mentioning since script looks for mysql libs in PHP_LIBDIR). |
Use remi repository which provides this extension and lot of others instead of trying to build from sources. |
@remicollet 's suggestion is indeed what I recommend you to do. Does the following patch solve the issue?: diff --git config.m4 config.m4
index f89a54d..a02032b 100644
--- config.m4
+++ config.m4
@@ -141,14 +141,17 @@ if test "$PHP_APM" != "no"; then
if test -z "$MYSQL_LIB_DIR"; then
MYSQL_LIB_CHK(lib/x86_64-linux-gnu)
fi
if test -z "$MYSQL_LIB_DIR"; then
MYSQL_LIB_CHK(lib/i386-linux-gnu)
fi
+ if test -z "$MYSQL_LIB_DIR"; then
+ MYSQL_LIB_CHK(usr/lib64)
+ fi
for i in $PHP_LIBDIR $PHP_LIBDIR/mysql; do
MYSQL_LIB_CHK($i)
done
if test -z "$MYSQL_LIB_DIR"; then
AC_MSG_ERROR([Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR.]) |
@patrickallaert Using --with-libdir=lib64 sould be enough BTW proper fix is probably to rely on mysql_config output (and perhaps #45...) |
The text was updated successfully, but these errors were encountered: