您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息

mac 编译安装php7遇到问题

2024/4/18 17:37:39发布8次查看
mac编译安装php7遇到问题,错误如图
我的编译参数为:/usr/local/php7 --with-apxs2=/usr/sbin/apxs --with-mysqli --with-pdo-mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --disable-fileinfo --enable-maintainer-zts
这个问题该怎么解决呢?
回复内容: mac编译安装php7遇到问题,错误如图
我的编译参数为:/usr/local/php7 --with-apxs2=/usr/sbin/apxs --with-mysqli --with-pdo-mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --disable-fileinfo --enable-maintainer-zts
这个问题该怎么解决呢?
检查openssl的相关依赖是否装了,如果你是brew额外装了新版本的openssl,记得指向那个路径 '--with-openssl=/usr/local/opt/openssl'
如果1检查无误,在编译前make clean,并进行一次./buildconf --force
1楼的方法没效果
自己编译恐怕是要折腾些许时日,如果非必须,在mac下,大可以brew install。
header和lib版本不匹配
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录