編譯php5.6出錯:configure: error: Cannot find OpenSSL's

WBOY
發布: 2016-08-25 10:37:15
原創
3322 人瀏覽過

我的系統dbeian8.

apt-get update
sudo apt-get install apache2 apache2-dev
apt-get install build-essential
sudo apt-get install libxml2-dev libcurl4-libssl-dev libclim-dev install libxml2-dev libcurl4-libssl-dev libclim-mlib-libcx -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/binssl
/usr/share/doc/openssl

/usr/bin/Ropen 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
--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
-mhash
--with-openssl
--enable-bcmath
--enable-soap
--with-libxml-dir
--enable-pcntl
--enable-shmop
--enable-syssgen
--enable-shmop
--enable-syssgen
-- -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-libssl-dev libclim-dev install libxml2-dev libcurl4-libssl-dev libclim-dev install libxmlm-libc -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/binssl
/usr/share/doc/openssl 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
--disable-inline-optimization
--disable
--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
-mhash
--with-openssl
--enable-bcmath
--enable-soap
--with-libxml-dir
--enable-pcntl
--enable-shmop
--enable-syssgen
--enable-shmop

--enable-syssgen

-- -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學習者快速成長!