ubuntu 18.10 安装net-snmp时遇到错误,请各位大神帮忙看看如何解决

jifeng__ 2019-01-05 10:10:05
make的时候出现了下面的报错:

In file included from ../include/net-snmp/utilities.h:42,
from ../include/net-snmp/net-snmp-includes.h:71,
from snmp_perl.c:9:
../include/net-snmp/library/int64.h:8:30: error: conflicting types for 'U64'
typedef struct counter64 U64;
^~~
In file included from /usr/lib/x86_64-linux-gnu/perl/5.26/CORE/perl.h:2698,
from snmp_perl.c:6:
/usr/lib/x86_64-linux-gnu/perl/5.26/CORE/handy.h:179:17: note: previous declaration of 'U64' was here
typedef U64TYPE U64;
^~~
make[1]: *** [Makefile:98:snmp_perl.lo] 错误 1
make[1]: 离开目录“/home/z/下载/net-snmp-5.7.3/agent”
make: *** [Makefile:656:subdirs] 错误 1
...全文
1119 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
a1421117 2019-07-15
  • 打赏
  • 举报
回复
sudo apt-get install libperl-dev
kis龍 2019-01-05
  • 打赏
  • 举报
回复
现在中文目录没问题了吗
KEL-1 2019-01-05
  • 打赏
  • 举报
回复
参考下这个 https://sourceforge.net/p/net-snmp/bugs/2794/

23,223

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧