鍍金池/ 問(wèn)答/PHP/ Mac源碼編譯php7報(bào)iconv錯(cuò)誤。

Mac源碼編譯php7報(bào)iconv錯(cuò)誤。

./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

編譯命令已經(jīng)指定了iconv的庫(kù)的目錄,而且這個(gè)庫(kù)是通過(guò)brew install libiconv安裝的。但是執(zhí)行./configure 命令時(shí)還一直提示:

configure: error: Please reinstall the iconv library.

感覺(jué)很無(wú)奈。

回答
編輯回答
茍活

libiconv 版本不夠?

2018年7月7日 05:58
編輯回答
孤毒

同問(wèn) mac下 php7.2.7 libiconv-1.15 就是報(bào)這個(gè)configure: error: Please reinstall the iconv library. php5.6正常編譯

2017年6月13日 18:31
編輯回答
艷骨

我也遇到同樣問(wèn)題上網(wǎng)下了個(gè)libiconv-1.15也不行

2017年7月11日 12:16