After installing php55 on osx-macport, how does one compile PHP to install other plug-ins?

Source: Internet
Author: User
Use macport to install the php55php55-fpm and so on .. The function libraries such as iconv are missing in the installed php environment. After searching for many installation methods, compile the php Directory for installation, as shown below: php. netmanualhiconv. installation. php is macport... use macport to install php55 php55-fpm etc ..

The function libraries such as iconv are missing in the installed php environment,

After searching for many installation methods, compile the php Directory for installation, as shown below:
Http://php.net/manual/zh/iconv.installation.php

But how does one compile php55 installed in macport mode?

If you want to download php source package for compilation, php55-fpm and so on how to install ..

Thank you.

Reply content:

Use macport to install php55 php55-fpm etc ..

The function libraries such as iconv are missing in the installed php environment,

After searching for many installation methods, compile the php Directory for installation, as shown below:
Http://php.net/manual/zh/iconv.installation.php

But how does one compile php55 installed in macport mode?

If you want to download php source package for compilation, php55-fpm and so on how to install ..

Thank you.

You first port install php55-iconv to see if there is any in the source. If not, download the source code of the corresponding version. Make sure that your environment contains phpize and php-config, and then compile it. After compilation, copy the so file to the extended directory and write it to the configuration file.

I don't need a MAC. I only use linux.
Some extensions of php require additional installation, such as curl and mysqli

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

Check if php's icon extension is included in other packages?

If you need to use --- <模块名> Run the configure script and then make

Laxatives ~

Like the php5-fpm has been integrated in the php source code, the installation should be regularmake && sudo make installRight

P.s. although I use mac, php is installed on ubuntu virtual machines. As a result, there are many software packages in ubuntu, second, it is easy to create backups/images. Therefore, we suggest you use a virtual machine to install ubuntu. After all, the 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.