An error occurred while installing php7 during mac compilation. My compilation parameters are as follows: usrlocalphp7 -- with-apxs2usrsbinapxs -- with-mysqli -- with-pdo-mysql -- with-iconv-dir -- with-freetype-dir -- with-jpeg-dir -- with-png-dir -- wi. ..
An error occurred while compiling and installing php7 on mac.
My compilation parameters are:/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
How can this problem be solved?
Reply content:
An error occurred while compiling and installing php7 on mac.
My compilation parameters are:/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
How can this problem be solved?
Check whether openssl dependencies are installed. If brew has installed a new version of openssl, remember to point to the path '-- with-openssl =/usr/local/opt/openssl'
If the 1 check is correct, make clean before compilation and perform a./buildconf -- force
The method on the first floor is ineffective.
I am afraid it may take some time to compile it myself. If it is not necessary, you can use brew install on mac.
The header does not match the lib version.