解決CentOS6.5部署zabbix2.2.6中configure(編譯)錯誤



  zabbix(音同 zbix)是一個基於WEB界面的提供分佈式系統監視以及網絡監視功能的企業級的開源解決方案。mysql

zabbix能監視各類網絡參數,保證服務器系統的安全運營;並提供靈活的通知機制以讓系統管理員快速定位/解決存在的各類問題。sql

編譯過程當中報錯和解決
安全

  1. configure: error: Not found mysqlclient librarybash


[root@it3246 zabbix-2.2.6]# ./configure -prefix=/usr/local/zabbix/ -enable-server -enable-proxy -enable-agent -with-mysql -with-net-snmp -with-libcurl

checking for a BSD-compatible install... /usr/bin/install -c服務器

checking whether build environment is sane... yes網絡

checking for a thread-safe mkdir -p... /bin/mkdir -psession

……curl

……分佈式

checking size of void *... 8ide

checking for mysql_config... /usr/bin/mysql_config

checking for main in -lmysqlclient... no

configure: error: Not found mysqlclient library

wKiom1gRXguBhg2NAAER7LazCU4660.png-wh_50

wKiom1gRXguRJhP8AAFQXVq-dlo438.png-wh_50


[root@it3246 zabbix-2.2.6]# cd /usr/lib64/mysql/                   
[root@it3246 mysql]# ls
libmysqlclient_r.so.16      libmysqlclient.so.16      mysqlbug      plugin
libmysqlclient_r.so.16.0.0  libmysqlclient.so.16.0.0  mysql_config
[root@it3246 mysql]# ln -s libmysqlclient.so.16.0.0 libmysqlclient.so
[root@it3246 mysql]# ln -s libmysqlclient_r.so.16.0.0 libmysqlclient_r.so

此處進入庫文件。/usr/lib 或者/usr/lib64 (64位系統)

2.configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config

……

checking for multirow insert statements... yes

checking for pkg-config... /usr/bin/pkg-config

checking pkg-config is at least version 0.9.0... yes

checking for net-snmp-config... no

configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config

[root@it3246 zabbix-2.2.6]# yum install net-snmp-devel

wKioL1gRXgyBEfdrAAGkN0M6kLI220.png-wh_50

3.configure: error: Curl library not found

……

checking for main in -lnetsnmp... yes

checking for localname in struct snmp_session... yes

checking for gawk... (cached) gawk

checking for curl-config... no

configure: error: Curl library not found

wKioL1gRXgqBuf9SAADU3nm_ZDA604.png-wh_50

[root@it3246 zabbix-2.2.6]# yum install curl-devel

Loaded plugins: fastestmirror, security

Loading mirror speeds from cached hostfile

 * base: mirror.bit.edu.cn

 * extras: mirror.lzu.edu.cn

 * updates: ftp.sjtu.edu.cn

wKioL1gRYo7TFlZoAAC3SPDyW-Q518.png-wh_50


4.再次編譯出現以下

[root@it3246 zabbix-2.2.6]# ./configure -prefix=/usr/local/zabbix/ -enable-server -enable-proxy -enable-agent -with-mysql -with-net-snmp -with-libcurl

wKiom1gRXg2SfFFqAAEovCIUjN0994.png-wh_50

wKioL1gRXg2ROSPcAADrYKp2n5w513.png-wh_50

wKiom1gRXg3SFGEcAABer5ZGIas999.png-wh_50


***********************************************************

*            Now run 'make install'                       *

*                                                         *

*            Thank you for using Zabbix!                  *

*              <http://www.zabbix.com>                    *

***********************************************************

編譯成功

相關文章
相關標籤/搜索