開始以為是沒有安裝openssl, openssl-devel,安裝後發現還是提示這個錯誤,搜尋了一下evp.h,這個檔案也存在。 GOOGLE 了一下,在stackoverflow,找到了答案,原本是 phpize 產生的configure腳本有問題。
解決方法:
<code><span class="kwd">export<span class="pln"> PHP_OPENSSL_DIR<span class="pun">=<span class="pln">yes <span class="pun">./<span class="pln">configure <span class="pun">-<span class="kwd">with<span class="pun">-<span class="pln">openssl<span class="pun">-<span class="pln">dir<span class="pun">=<span class="str">/usr/<span class="pln">include<span class="pun">/<span class="pln">openssl</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></code><br><br><br>
以上是centos7 php7 動態編譯mysqlnd: configure: error: Cannot find OpenSSL's <evp.h> 錯誤解決的詳細內容。更多資訊請關注PHP中文網其他相關文章!