Problems related to compiling and installing PHP on MAC

Source: Internet
Author: User
The problem of PHP compilation and installation in MAC is caused by php5.4. Mysqlnd. When mysql and mysqli are added, using mysqlnd may also encounter libiconv compilation errors. It may be because of the libiconv version that comes with MAC. You can specify the libiconv path to find the problem of compiling and installing PHP from MAC.
Because php5.4. Mysqlnd. When mysql and mysqli are added, use mysqlnd

Libiconv compilation errors may also occur. It may be because of the libiconv version that comes with MAC.

You can find the self-compiled libiconv path by specifying the libiconv path.

-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


Finally, we can. This problem occurred yesterday. Almost crashed the MAC ..

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.