安裝memcached報錯:If it's already installed, specify its path using --with-libevent=/dir/


一、安裝memcached,執行./configure --prefix=/usr/local/memcached時候報錯:

 

問題:If it's already installed, specify its path using --with-libevent=/dir/

網上的解決辦法:

方法一:找到libevent的安裝路徑,執行命令./configure --prefix=/usr/local/memcached  -with-libevent=libevent的安裝路徑;

方法二:因為libevent 這個包是系統默認安裝的,沒有安裝相應的開發所用的頭文件。 所以還要執行如下命令:

yum install libevent-devel 

 

采納的解決辦法是:方法二#yum install libevent-devel 

然后再執行編譯命令即ok

解決辦法參考:https://www.iteye.com/blog/71254468-1871036


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM