mac 下安装php 报错 Undefined symbols for architecture x86_64:

mac 下安装php 报错 Undefined symbols for architecture x86_64:

sudo ./configure --prefix=/usr/local/php7 --with-apxs2=/usr/local/bin/apxs --with-config-file-path=/usr/local/php7/etc  --with-mysqli=mysqlnd   --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv=/usr/local/Cellar/libiconv/1.15 --with-zlib=/usr/local/opt/zlib/ --with-bz2=/usr/local/opt/bzip2  --enable-soap --enable-mbstring --enable-sockets --enable-exif --enable-fpm --with-openssl-dir=/usr/local/Cellar/openssl/1.0.2r --enable-embedded-mysqli --with-mysql-sock=/tmp/mysql.sock

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

posted on 2019-04-15 20:15  游荡的鱼  阅读(1284)  评论(0编辑  收藏  举报

导航