php + mysql 编译时出错
php + mysql 编译时出错
近日在RedHat Linux下装apache+mysql+php, mysql是rpm格式的,已安装成功. 装完apache(.tar.gz)后, 装PHP(.tar.gz)时用下列命令配置PHP:
./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/lib --enable-track-vars --with-xml --with-mysql=/usr/lib/mysql
最后提示: configure: error: Cannot find MySQL header files under /usr/lib/mysql
请问--with-mysql 参数该如何用?
mysql 装在/usr/share/mysql, 数据文件在/var/lib/mysql下, --with-mysql=/usr/share/mysql时也提示configure: error: Cannot find MySQL header files under /usr/share/mysql.