2014-04-20 4 views
6

मैं अपने डेबियन 6.0 पर निम्नलिखित संकुल स्थापित किया है नहीं मिल सकता है, 7.0 sources.list में मेरी संस्करणों सेट करने के बाद:कॉन्फ़िगर evp.h

  • libssl-देव
  • openssl
  • openssl-आम

मैं सत्यापित किया है कि /usr/include/openssl/evp.h 777 की अनुमति के साथ मौजूद है, और फिर मैं इस तरह कॉन्फ़िगर भाग गया है:

./configure --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-mcrypt --disable-rpath --enable-inline-optimization --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --enable-gd-native-ttf --with-fpm-user=www-data --with-fpm-group=www-data --enable-ftp --with-kerberos --with-gettext --with-xmlrpc --enable-opcache --with-apxs2=/usr/bin/apxs2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/conf.d --with-openssl-dir=/usr/include/openssl

हालांकि, मुझे अभी भी कॉन्फ़िगरेशन से एक त्रुटि मिली है कि evp.h नहीं मिला।

+0

क्या आपने इसे हल किया? – vlio20

+0

नहीं, मैंने 'CentOS' और' remi-php55' भंडार में yum का उपयोग करने का सहारा लिया। आप 'डेबियन' के लिए 'ondrej' भंडार का उपयोग कर सकते हैं और परेशानी से छुटकारा पा सकते हैं। –

+0

देखें http://serverfault.com/a/544149/155703 – RandomSeed

उत्तर

6

मैं एक लंबे समय के लिए इस समस्या के साथ संघर्ष कर रहा था, और यह मेरे लिए काम समाप्त हो गया: --with-openssl-dir=/usr/include/openssl की

इसके बजाय सिर्फ --with-openssl

+0

मेरे मामले में (7.1.0 आरसी 3), --with-openssl कॉन्फ़िगरेशन नहीं है। हालांकि, - opens -ls-dir ने मेरी समस्या को ठीक किया। बहुत बहुत धन्यवाद: डी –

8

का उपयोग ./configure .../usr/include/openssl/evp.h नहीं मिलती है तो यह सबसे अधिक संभावना है कि आप नहीं है स्थापित openssl, अर्थात् हेडर। तो यदि आप CentO का उपयोग कर रहे हैं तो आपको पहले करना चाहिए:

yum install openssl-devel 
1

मैंने संकलन से पहले निम्नलिखित चर निर्यात करके मेरी समस्या हल की।

PHP_OPENSSL_DIR=yes 
2

यह php bug

में एक बग है इस का कारण है क्योंकि कॉन्फ़िगर स्क्रिप्ट एक चर (PHP_OPENSSL_DIR) है कि

सेट नहीं "हाँ" तो है कमान 'phpize' चलाने के बाद आपको करना चाहिए:

export PHP_OPENSSL_DIR=yes 
./configure -with-openssl-dir=/usr/include/openssl 
+0

बस 'PHP_OPENSSL_DIR = yes' निर्यात मेरे लिए काम किया –

संबंधित मुद्दे