Error compiling php5.6: Configure:error:Cannot find OpenSSL ' s <evp.h>

Source: Internet
Author: User
Tags gettext soap mcrypt
My system is dbeian8.

Apt-get Update
sudo apt-get install apache2 Apache2-dev
Apt-get Install Build-essential
sudo apt-get install Libxml2-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libxpm-dev libmysqlclient-dev Libpq-dev Libicu-dev Libfreetype6-dev Libldap2-dev Libxslt-dev
Apt-get Install Libssl-dev Libsslcommon2-dev
The packages were installed before the above compilation.

Find/-name ' OpenSSL '
/usr/include/x86_64-linux-gnu/openssl
/usr/include/openssl
/usr/share/doc/openssl
/usr/bin/openssl
/usr/local/src/php-5.6.0/ext/openssl

Download Preparation php5.6
Wget Http://cn2.php.net/distributi ...
Xz-d PHP-5.6.0.TAR.XZ
Tar XF php-5.6.0.tar-c/usr/local/src/
Groupadd www
Useradd-g www-s/sbin/nologin-m www
cd/usr/local/src/php-5.6.0/

Started compiling the
./configure \
--PREFIX=/USR/LOCAL/PHP56 \
--WITH-CONFIG-FILE-PATH=/USR/LOCAL/PHP56/ETC \
--enable-inline-optimization \
--disable-debug \
--disable-rpath \
--enable-shared \
--enable-opcache \
--ENABLE-FPM \
--WITH-FPM-USER=WWW \
--WITH-FPM-GROUP=WWW \
--WITH-MYSQL=MYSQLND \
--WITH-MYSQLI=MYSQLND \
--WITH-PDO-MYSQL=MYSQLND \
--with-gettext \
--enable-mbstring \
--with-iconv \
--with-mcrypt \
--with-mhash \
--WITH-OPENSSL \
--enable-bcmath \
--ENABLE-SOAP \
--with-libxml-dir \
--ENABLE-PCNTL \
--ENABLE-SHMOP \
--ENABLE-SYSVMSG \
--enable-sysvsem \
--ENABLE-SYSVSHM \
--enable-sockets \
--with-curl \
--with-zlib \
--enable-zip \
--WITH-BZ2 \
--with-readline

Error
Configure:error:Cannot Find OpenSSL ' s

Excuse me, how to solve?

Reply content:

My system is dbeian8.

Apt-get Update
sudo apt-get install apache2 Apache2-dev
Apt-get Install Build-essential
sudo apt-get install Libxml2-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libxpm-dev libmysqlclient-dev Libpq-dev Libicu-dev Libfreetype6-dev Libldap2-dev Libxslt-dev
Apt-get Install Libssl-dev Libsslcommon2-dev
The packages were installed before the above compilation.

Find/-name ' OpenSSL '
/usr/include/x86_64-linux-gnu/openssl
/usr/include/openssl
/usr/share/doc/openssl
/usr/bin/openssl
/usr/local/src/php-5.6.0/ext/openssl

Download Preparation php5.6
Wget Http://cn2.php.net/distributi ...
Xz-d PHP-5.6.0.TAR.XZ
Tar XF php-5.6.0.tar-c/usr/local/src/
Groupadd www
Useradd-g www-s/sbin/nologin-m www
cd/usr/local/src/php-5.6.0/

Started compiling the
./configure \
--PREFIX=/USR/LOCAL/PHP56 \
--WITH-CONFIG-FILE-PATH=/USR/LOCAL/PHP56/ETC \
--enable-inline-optimization \
--disable-debug \
--disable-rpath \
--enable-shared \
--enable-opcache \
--ENABLE-FPM \
--WITH-FPM-USER=WWW \
--WITH-FPM-GROUP=WWW \
--WITH-MYSQL=MYSQLND \
--WITH-MYSQLI=MYSQLND \
--WITH-PDO-MYSQL=MYSQLND \
--with-gettext \
--enable-mbstring \
--with-iconv \
--with-mcrypt \
--with-mhash \
--WITH-OPENSSL \
--enable-bcmath \
--ENABLE-SOAP \
--with-libxml-dir \
--ENABLE-PCNTL \
--ENABLE-SHMOP \
--ENABLE-SYSVMSG \
--enable-sysvsem \
--ENABLE-SYSVSHM \
--enable-sockets \
--with-curl \
--with-zlib \
--enable-zip \
--WITH-BZ2 \
--with-readline

Error
Configure:error:Cannot Find OpenSSL ' s

Excuse me, how to solve?

Missing Openssl-dev

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