Mac源码编译php7报iconv错误。

./configure  --prefix=/usr/local/php/7.2.7 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/7.2.7 --with-config-file-path=/usr/local/etc/php/7.2.7 --with-config-file-scan-dir=/usr/local/etc/php/7.2.7/conf.d --enable-bcmath --enable-calendar --enable-dba --enable-dtrace --enable-exif --enable-ftp --enable-fpm --enable-intl --enable-mbregex --enable-mbstring --enable-mysqlnd --enable-shmop --enable-soap --enable-sockets --enable-zip --with-bz2 --with-fpm-user=_www --with-fpm-group=_www --with-freetype-dir=/usr/local/Cellar/freetype/2.9 --with-gd --with-gettext=/usr/local/Cellar/gettext/0.19.8.1 --with-imap-ssl=/usr/local/Cellar/openssl/1.0.2n --with-jpeg-dir=/usr/local/Cellar/jpeg/9c --with-ldap --with-libzip --with-mhash --with-mysql-sock=/tmp/mysql.sock --with-mysqli=mysqlnd --with-ndbm --with-openssl=/usr/local/Cellar/openssl/1.0.2n --with-pic --with-png-dir=/usr/local/Cellar/libpng/1.6.34  --with-sodium=/usr/local/Cellar/libsodium/1.0.16 --with-tidy  --with-xmlrpc --with-xsl --with-zlib --with-curl --enable-debug --with-pdo --with-pdo-mysql --with-iconv=/usr/local/Cellar/libiconv/1.15

编译命令已经指定了iconv的库的目录,而且这个库是通过brew install libiconv安装的。但是执行./configure 命令时还一直提示:

configure: error: Please reinstall the iconv library.

感觉很无奈。

阅读 4.9k
3 个回答
新手上路,请多包涵

libiconv 版本不够?

新手上路,请多包涵

我也遇到同样问题上网下了个libiconv-1.15也不行

新手上路,请多包涵

同问 mac下 php7.2.7 libiconv-1.15 就是报这个configure: error: Please reinstall the iconv library. php5.6正常编译

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题