Osx-macport how to compile php to install other plugins after installing PHP55?

Source: Internet
Author: User
Tags php source code
Use Macport to install Php55 php55-fpm, etc...

Iconv libraries are missing from the installed PHP environment,

Search for a lot of installation methods, are compiled PHP directory to install, as follows:
http://php.net/manual/zh/iconv.installation.php

But how to compile the Php55 of Macport way installation?

If you want to download the PHP source package to compile, php55-fpm and so on how to install.

For advice, thank you.

Reply content:

Use Macport to install Php55 php55-fpm, etc...

Iconv libraries are missing from the installed PHP environment,

Search for a lot of installation methods, are compiled PHP directory to install, as follows:
http://php.net/manual/zh/iconv.installation.php

But how to compile the Php55 of Macport way installation?

If you want to download the PHP source package to compile, php55-fpm and so on how to install.

For advice, thank you.

You first port install Php55-iconv to see if there are any in the source. If not, download the corresponding version of the source code, make sure your environment has phpize and php-config and then compile it. Compile and copy the so file to the extension directory and write to the configuration file.

I don't use Macs, only Linux.
Some extensions of PHP require additional installation, such as CURL,MYSQLI and other extensions

sudo apt-get install php5-curlsudo apt-get install php5-mysqlnd

Do you see if the PHP icon extension is also in the other package?

If you are installing from the source, you need to use--with-to <模块名> run the Configure script and make

Laxatives ~

Like PHP5-FPM are already integrated in the PHP source code, installation should be regular make && sudo make install

P.S. But although I use the Mac, but loaded with Ubuntu virtual machine to install, one of the software packages under Ubuntu More, and can easily create backup/image-so it is recommended that the main or virtual machine to install an Ubuntu bar, after all, the more popular environment is LAMPP, Not oampp.

  • 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.