Keepalived 編譯錯誤解決


Keepalived 編譯錯誤解決

./configure  && make && make install

編譯過程中提示錯誤,解決辦法:
 1)提示 "!!! OpenSSL is not properly installed on your system. !!!
          !!! Can not include OpenSSL headers files."
     需要安裝opendevel:

yum -y install openssl-devel

2)提示 ”Keepalive popt libraries is required “
    需要安裝popt:

wget http://rpm5.org/files/popt/popt- 1.16 .tar.gz
tar zxvf popt- 1.16 .tar.gz
cd popt- 1.16
./configure && make && make install

 3)如果configure就提示GCC NO
    需要安裝gcc :

yum -y install gcc

 4) 當編譯提示如下:
    Keepalived configuration
------------------------
Keepalived version       : 1.2.2
Compiler                 : gcc
Compiler flags           : -g -O2
Extra Lib                : -lpopt -lssl -lcrypto 
Use IPVS Framework       : No
IPVS sync daemon support : No
Use VRRP Framework       : Yes
Use Debug flags          : No
   這兩個出現NO,說明keepalived沒有找到內核,可先查看/usr/src/kernels 目錄下是否有文件,如沒有可先安裝kernel-devel ,然后通過如下方式解決:
 方法一:編譯時可加入參數 --with-kernel-dir=/usr/src/kernels/2.6.18-164.el5-i686/  內核地址
 方法二:由於keepalived編譯時默認從/usr/src/linux這個位置找內核,所以可以建立一個鏈接

注意修改路徑,有時候不同

1 yum -y install kernel-devel
2  ./configure --with-kernel-dir=/usr/src/kernels/2.6.18-164.el5-i686/
3 ln -s /usr/src/kernels/2.6.18-164.el5-i686/  /usr/src/linux

轉自 http://yinxiulei.cn

 


免責聲明!

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



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