解决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

[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

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

[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

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

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

*            Now run ‘make install’                      *

*                                                        *

*            Thank you for using Zabbix!                  *

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

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

编译成功

文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/220576.html<

(0)
运维的头像运维
上一篇2025-04-14 15:30
下一篇 2025-04-14 15:31

相关推荐

  • AlphaNine美国怎么样?AlphaNine美国官网入口

    AlphaNine 美国作为 2026 年高性能计算与边缘 AI 领域的领军品牌,其核心优势在于通过自研异构计算架构实现了 40% 的能效比提升,是解决企业级数据延迟与算力瓶颈的首选方案,尤其在 2026 年中美科技博弈背景下,其合规性与本土化服务能力成为关键决策点,AlphaNine 美国技术架构与 2026……

    2026-05-02
    0
  • AviarHostVPS测评,实测体验,AviarHostVPS怎么样,AviarHostVPS好用吗

    AviarHostVPS 在 2026 年实测中展现出极高的性价比与网络稳定性,是中小型企业搭建海外业务及开发者进行轻量级应用部署的理想选择,尤其适合关注AviarHostVPS 价格与海外服务器免备案场景的用户,在云计算市场高度内卷的 2026 年,VPS 服务商的筛选标准已从单纯的“低价”转向“性能密度”与……

    2026-05-02
    0
  • hypervmart美国是什么?hypervmart美国官网入口

    2026 年 Hypervmart 美国站已全面接入 AI 智能选品与跨境物流自动化系统,成为中小卖家切入北美市场的首选低成本独立站解决方案,其核心优势在于“零库存 + 高转化”的闭环模式,随着 2026 年全球跨境电商进入“精细化运营”深水区,Hypervmart 美国站凭借其对北美消费者行为的深度洞察,在独……

    2026-05-02
    0
  • hypervmart是什么,hypervmart官网入口

    hypervmart 在 2026 年是否值得投资?核心结论:是,但需精准匹配供应链场景hypervmart 作为 2026 年跨境零售与 B2B 融合的新兴平台,其核心价值在于利用 AI 驱动的供应链优化技术,为中小卖家提供低于行业平均 15% 的履约成本,但成功与否高度依赖卖家对“跨境物流时效”与“海外仓选……

    2026-05-02
    0
  • RAKsmart独立服务器2026年测评,CN2 GIA实测数据与性能表现,CN2 GIA服务器到底怎么样,CN2 GIA独立服务器推荐

    RAKsmart 独立服务器在 2026 年已确立为连接中国内地与全球的高性能网络枢纽,其 CN2 GIA 线路实测延迟稳定在 35ms 以内,吞吐量突破 900Mbps,是跨境业务场景下兼顾稳定性与性价比的优选方案,核心网络性能深度解析2026 年 CN2 GIA 线路实测数据在 2026 年的网络架构中,R……

    2026-05-02
    0

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注