zabbix 编译报错 undefined reference to `pcre_free_study'

v -lpcre -liconv
../../src/libs/zbxregexp/libzbxregexp.a(zbxregexp.o): In function `zbx_regexp_free':
/root/zabbix-5.0.27/src/libs/zbxregexp/zbxregexp.c:285: undefined reference to `pcre_free_study'
collect2: ld returned 1 exit status
make[3]: *** [zabbix_agentd] Error 1
make[3]: Leaving directory `/root/zabbix-5.0.27/src/zabbix_agent'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/root/zabbix-5.0.27/src/zabbix_agent'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/zabbix-5.0.27/src'
make: *** [install-recursive] Error 1

解决办法

yum remove pcre-devel -y

发表评论

评论列表,共 0 条评论

    暂无评论