编译php5.6出错:configure: error: Cannot find OpenSSL's <evp.h>

WBOY
发布: 2016-08-25 10:37:15
原创
3369 人浏览过

我的系统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
上面的编译前,各包安装完了。

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

下载准备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/

开始编译了
./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

报错
configure: error: Cannot find OpenSSL's

请问,如何解决?

回复内容:

我的系统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
上面的编译前,各包安装完了。

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

下载准备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/

开始编译了
./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

报错
configure: error: Cannot find OpenSSL's

请问,如何解决?

缺少 openssl-dev

相关标签:
php
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!