標籤:php不支援高版本的openssl
PHP不支援高版本的openssl
現有一台LNMP測試環境機器,Centos 6.9 先前升級過openssl版本由1.0.1e升級到1.1.0f,
因工作需求,升級php版本,升級到5.6.30,編譯php中指定--with-openssl報錯,搜了下資料,php不支援高版本openssl
../../mysys_ssl/libmysys_ssl.a(my_crypt.cc.o):/root/lnmp1.4/src/mariadb-10.2.5/mysys_ssl/my_crypt.cc:41: more undefined references to `EVP_CIPHER_CTX_cleanup‘ followcollect2: error: ld returned 1 exit statusunittest/mysys/CMakeFiles/aes-t.dir/build.make:105: recipe for target ‘unittest/mysys/aes-t‘ failedmake[2]: *** [unittest/mysys/aes-t] Error 1CMakeFiles/Makefile2:916: recipe for target ‘unittest/mysys/CMakeFiles/aes-t.dir/all‘ failedmake[1]: *** [unittest/mysys/CMakeFiles/aes-t.dir/all] Error 2Makefile:160: recipe for target ‘all‘ faile
解決方案:
PHP編譯換成低版本openssl環境或者不使用openssl參數(--with-openssl)
註:php編譯(--with-openssl)不能像nginx那樣指定opensll源碼目錄,必須指定的是已編譯安裝好的openssl目錄
參考資料:https://bbs.vpser.net/viewthread.php?tid=15744&highlight=%E4%BA%AC%E4%B8%9C%E4%BA%91
本文出自 “boyhack” 部落格,請務必保留此出處http://461205160.blog.51cto.com/274918/1963594
PHP不支援高版本的openssl