Questions about compiling PHP

Source: Internet
Author: User

1. When compiling PHP "configure:error:Cannot find OpenSSL ' s libraries"

Resolved as follows:

sudo apt-get-y install OpenSSL (Ubuntu); sudo yum-y install OpenSSL (CentOS).

Compile PHP again.

Also reported the same mistake, manually compile and install OpenSSL, as follows:

wget ftp://ftp.openssl.org/source/openssl-1.0.0c.tar.gz
TAR-ZXF openssl-1.0.0c.tar.gz
CD openssl-1.0.0c/
./config--prefix=/usr/local--openssldir=/usr/local/ssl
Make && make install
./config Shared--prefix=/usr/local--openssldir=/usr/local/ssl
Make clean
Make && make install

(This is a two-time compilation installation, preferably)

 

2. Compile php "libcurl.so:undefined reference to" [email protected]_1.0.0]

This is the version of OPENSSL we installed and the error message "openssl_1.0.0" is not on, resolved as follows:

$ OpenSSL version Use this command to see the OpenSSL release information, determine if it is OpenSSL version and "openssl_1.0.0" not always.

Do not always delete the installed OpenSSL, manually compile and install the "openssl_1.0.0" OpenSSL using the method in the first section above

Compile PHP again.

3. When compiling OpenSSL "POD document had syntax errors At/usr/bin/pod2man line 71. Makefile:594:recipe for Target ' Install_docs ' failed"

Resolved as follows:

Compiling the installation is using: $ make && make INSTALL_SW

Questions about compiling PHP

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.