centos-rpm安装的mariadb,php52源码编译安装时注意点

0、不要静态指定with-mysql

以扩展的mysql.so的形式安装

 

1\

要yum install mysql-devel

2\要做软链接把18那个软连接过去

 

解决configure: error: Cannot find libmysqlclient under /usr.

转载 2014年06月17日 18:33:59

今天在64位centos5.6系统上编译PHP5.2.17报错

checking for MySQL support... yes, shared
checking for specified location of the MySQL UNIX socket... no
checking for the location of libz... no
checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
[root@zjlca mysql]# 

经查,问题是64位系统中 libmysqlclient 默认安装到了 /usr/lib64/mysql/ 目录下

而/usr/lib 目录下没有相应文件,但是php编译时,要去 /usr/lib目录下查找

解决方法:

ln -s /usr/lib64/mysql/libmysqlclient.so.15.0.0/usr/lib/libmysqlclient.so

猜你喜欢

转载自www.cnblogs.com/showker/p/8948419.html