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

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

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

编译过程中报错和解决

1.configure: error: Not found mysqlclient library

[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 -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

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

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

[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

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

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

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

[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

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

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

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

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

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

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

*            Now run ‘make install’                      *

*                                                        *

*            Thank you for using Zabbix!                  *

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

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

编译成功

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

栗子博客 软件 解决CentOS6.5部署Zabbix2.2.6中configure(编译)错误 https://www.lizi.tw/soft/10734.html

常见问题
  • 1、杰齐1.7仅适用于PHP5.2 2、需Zend支持 3、尽量使用宝塔面板 4、尽量使用Windows 系统,关关对Linux支持不太友好。
查看详情

相关文章

评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务

解决CentOS6.5部署Zabbix2.2.6中configure(编译)错误-海报

分享本文封面