请教一个php支持mysql的安装方法
mysql没问题,同样的代码在另一台windows环境的机器中可以顺利运行。
我又重装了一遍,系统里有mysql-libs;mysql-devel;mysql,php配置安装是这样的:
- ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql --with-mysqli --with-pdo-mysql --enable-ftp --enable-fpm --enable-debug --with-gettext
make
make install
复制代码
这次倒是能顺利安装,但是启动php-fpm时报错如下:
- Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/debug-non-zts-20100525/php_mysql.dll' - /usr/local/php/lib/php/extensions/debug-non-zts-20100525/php_mysql.dll: cannot open shared object file: No such file or directory
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/debug-non-zts-20100525/php_mysqli.dll' - /usr/local/php/lib/php/extensions/debug-non-zts-20100525/php_mysqli.dll: cannot open shared object file: No such file or directory
复制代码
php目录里根本就没有extensions这个文件夹,find也没搜到php_mysql.dll这个文件。
是不是配置时有什么问题啊?
0
0