Home > Backend Development > PHP Tutorial > MAC上编译安装PHP的有关问题

MAC上编译安装PHP的有关问题

WBOY
Release: 2016-06-13 11:03:38
Original
938 people have browsed it

MAC下编译安装PHP的问题
因为php5.4 。使用的mysqlnd所以。在加入mysql和mysqli的时候,使用mysqlnd

还有可能遇到libiconv编译错误的问题。可能是因为MAC本身自带的libiconv版本的问题。

可以通过指定libiconv的路径,找到自己编译的libiconv路径

-with-iconv-dir=

sudo ./configure --prefix=/opt/local/webserver/php --with-mysql=mysqlnd --with-config-file-path=/opt/local/webserver/php/etc --enable-gd-native-ttf --enable-gd-jis-conv --with-iconv-dir=/usr/local/lib --with-zlib --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-mbstring --with-libxml-dir=/usr/local/lib  --with-freetype-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-gd --with-png-dir=/usr/local/lib --enable-debug --with-mysqli=mysqlnd --with-openssl --enable-fpm


终于可以了。昨天因为这个问题。差点吧MAC整挂了。。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template