CentOS6.5部署zabbix2.2.6中解决configure(编译)错误

前端之家收集整理的这篇文章主要介绍了CentOS6.5部署zabbix2.2.6中解决configure(编译)错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。



zabbix(音同 zbix)是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案。

zabbix能监视各种网络参数,保证服务器系统的安全运营;并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题。

编译过程中报错和解决

  1. configure: error: Not found MysqLclient library


[root@it3246zabbix-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 -p

……

……

checking size of void *... 8

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@it3246zabbix-2.2.6]#cd/usr/lib64/MysqL/
[root@it3246MysqL]#ls
libMysqLclient_r.so.16libMysqLclient.so.16MysqLbugplugin
libMysqLclient_r.so.16.0.0libMysqLclient.so.16.0.0MysqL_config
[root@it3246MysqL]#ln-slibMysqLclient.so.16.0.0libMysqLclient.so
[root@it3246MysqL]#ln-slibMysqLclient_r.so.16.0.0libMysqLclient_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@it3246zabbix-2.2.6]#yuminstallnet-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@it3246zabbix-2.2.6]#yuminstallcurl-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@it3246zabbix-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> *

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

编译成功

猜你在找的CentOS相关文章