- 工信部备案号 滇ICP备05000110号-1
- 滇公安备案 滇53010302000111
- 增值电信业务经营许可证 B1.B2-20181647、滇B1.B2-20190004
- 云南互联网协会理事单位
- 安全联盟认证网站身份V标记
- 域名注册服务机构许可:滇D3-20230001
- 代理域名注册服务机构:新网数码
以下为自己编译php5.3.24的过程,执行了以下的 configure 配置命令,代?如下:
./configure
--prefix=/usr/local/php
--with-config-file-path=/usr/local/php/etc
--with-config-file-scan-dir=/usr/local/php/etc/conf.d
--enable-fpm
--with-fpm-user=webserver
--with-fpm-group=webserver
--with-curl
--with-pear
--with-gd
--with-jpeg-dir
--with-png-dir
--with-zlib
--with-xpm-dir
--with-freetype-dir
--with-mcrypt
--with-mhash
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql
--with-pdo-mysql=/usr/local/mysql
--with-openssl
--with-xmlrpc
--with-xsl
--with-bz2
--with-gettext
--disable-debug
--enable-fpm
--enable-exif
--enable-wddx
--enable-zip
--enable-bcmath
--enable-calendar
--enable-ftp
--enable-mbstring
--enable-soap
--enable-sockets
--enable-sqlite-utf8
--enable-shmop
--enable-dba //开源代码phpfensi.com
--enable-sysvsem
--enable-sysvshm
--enable-sysvmsg
遇到了如下错误:
checking for mysql_close in -lmysqlclient_r... no
checking for mysql_error in -lmysqlclient_r... no
configure: error: mysql configure failed. Please check config.log for more information.
查证、搜索后,是这样的原因:
See this bug report: http://www.landui.com
If you need libmysql, apply the patch or create the symlink.
Better: Switch to mysqlnd
我也就把对于mysql,mysqli,pdo的配置选项改成了如下代码:
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
编译通过.
售前咨询
售后咨询
备案咨询
二维码
TOP