4.按装php过程中遇到的问题
5、Cannot find MySQL header files under /usr/include/mysql.
--with-mysql=/usr \
--with-mysqli=/usr/bin/mysql_config \
6、configure: error: Cannot find libmysqlclient_r under /usr.
cp /usr/lib64/mysql/libmysqlclient.so.16.0.0 /usr/lib/libmysqlclient_r.so
7、gd/gd.c:57:22: 错误:X11/xpm.h:没有那个文件或目录
yum install libXpm-devel.x86_64
8、gd/gd.c:1361: undefined reference to `XpmLibraryVersion
--with-xpm-dir=/usr/lib64 \
9、Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /usr/local/apache2/htdocs/encryption/server_socket1.php on line 15
将$db_host = 'localhost'修改为ip地址
10、临时增加环境变量
export PATH=/usr/local/php/bin:$PATH