歡迎您光臨本站 註冊首頁

lamp 中一些問題。。。

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

lamp 中一些問題。。。

恩。。。說下環境。。。系統:centos5.3  先裝的mysql   :mysql-5.0.90   然後裝的apache  :httpd-2.2.9   現在要裝php    php-5.2.6
./configure  都過去了,可是make  過不去,問題是這樣的
usr/local/src/php-5.2.6/ext/openssl/openssl.c:2412: error: 'struct php_x509_request' has no member named 'section_name'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2415: error: 'struct php_x509_request' has no member named 'priv_key'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2416: error: 'struct php_x509_request' has no member named 'priv_key_type'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2418: error: 'struct php_x509_request' has no member named 'priv_key'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2418: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2419: error: 'struct php_x509_request' has no member named 'priv_key'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2425: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2429: error: 'struct php_x509_request' has no member named 'priv_key'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2430: error: 'struct php_x509_request' has no member named 'priv_key'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2447: error: 'struct php_x509_request' has no member named 'priv_key'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2448: error: 'struct php_x509_request' has no member named 'priv_key'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_pkey_new':
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2521: error: 'struct php_x509_request' has no member named 'priv_key'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2523: error: 'struct php_x509_request' has no member named 'priv_key'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export_to_file':
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2564: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/usr/local/src/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export':
/usr/local/src/php-5.2.6/ext/openssl/openssl.c:2615: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
make: *** Error 1
恩。。。覺得該裝的也都裝了啊,不知道這些是什麼錯誤,折騰了好長時間,也沒結果,還望各位多多幫助。小妹在此先謝過了。。。。:)
《解決方案》

恩。。。如果我使用 php-5.2.11倒是不會出現這些問題。。。。./configure 能過去, make 都過去了可是到make test 時卻出現Cannot run tests without CLI sapi 的錯誤。。。貌似 sapi-cli是個模塊,而在./configure 的時候是disable的。。。結果看網上說可以:重新編譯php make的時候加上ZEND_EXTRA_LIBS='-liconv'這樣做了,可是出現ld: cannot find -liconv  。。。
這該怎麼辦呢???
折騰了好長時間了,希望大家多多幫助啊。。。
《解決方案》

你使用了SSL吧,請先安裝OpenSSL,然後在參數with-ssl-dir(好像是這個)加上openssl的安裝路徑(如/usr/local/openssl)再試試。
《解決方案》

回復 3# renxiao2003
恩。。。我是使用了openssl,可是之前也已經安裝了openssl了。。。也加了它的路徑,這是 我的./configure 內容。。。
./configure \
        "--prefix=/usr/local/php" \
        "--with-apxs2=/usr/local/apache2/bin/apxs"\
       "--with-config-file-path=/usr/local/php/etc" \
        "--with-mysql=/usr/local/mysql"\
       "--with-libxml-dir=/usr/local/libxml2" \
        "--with-gd=/usr/local/gd2" \
        "--with-jpeg-dir" \
        "--with-png-dir" \
        "--with-bz2" \
        "--with-freetype-dir" \
        "--with-iconv-dir" \
        "--with-zlib-dir " \
       "--with-openssl=/usr/local/openssl" \
       "--with-mcrypt=/usr/local/libmcrypt" \
        "--enable-soap" \
        "--enable-gd-native-ttf" \
        "--enable-ftp" \
        "--enable-mbstring" \
        "--enable-exif" \
        "--disable-ipv6" \
        "--disable-cgi" \
        "--disable-cli"
《解決方案》

繼續按照3樓說的 排除
《解決方案》

編譯SSL好像是在APACHE里,你把你編譯PHP的"--with-openssl"參數去掉看看會不會通過。

[火星人 ] lamp 中一些問題。。。已經有808次圍觀

http://coctec.com/docs/service/show-post-16957.html