mac下编译安装php7.3.4报php ld: symbol(s) not found for architecture x86_64解决办法

./configure --prefix=/Users/mac/service/php734 --with-config-file-path=/Users/mac/service/php734/etc --enable-pdo --with-pdo-mysql --with-mysqli --with-fpm-user=www --with-fpm-group=www --enable-opcache --enable-cgi --enable-fpm --enable-sockets --enable-mbstring --enable-mbregex --enable-bcmath --enable-session --enable-xml --enable-zip --with-zlib --with-gd --with-freetype-dir=/Users/mac/service/extension/php/freetype --with-png-dir=/Users/mac/service/extension/php/libpng --with-jpeg-dir=/Users/mac/service/extension/php/libjpeg --with-curl=/Users/mac/service/extension/php/curl --with-mhash=/Users/mac/service/extension/php/libmhash --with-iconv=/Users/mac/service/extension/php/libiconv --with-openssl=/usr/local/Cellar/openssl/1.0.2q/ --with-zlib-dir=/usr/local/Cellar/zlib/1.2.11

解决办法:vim Makefile

搜索 EXTRA_LIBS = 这里
-liconv替换成/usr/local/Cellar/libiconv/1.15/lib/libiconv.dylib
在重新sudo make
sudo make install

 

你可能感兴趣的:(php)