yulong-hids-archived icon indicating copy to clipboard operation
yulong-hids-archived copied to clipboard

Agent无法启动, 提示信息: exit status 127

Open aRe00t opened this issue 6 years ago • 5 comments

在一台 CentOS 5.4 的机器上成功安装后服务没起来, 手动启动时发现如下提示:

./daemon -netloc xxxx:443
2018/05/15 13:52:35 Start Agent
2018/05/15 13:52:35 Start Agent successful
2018/05/15 13:52:35 Agent to exit: exit status 127
2018/05/15 13:52:35 Start the task listener thread
2018/05/15 13:52:45 Start Agent
2018/05/15 13:52:45 Start Agent successful
2018/05/15 13:52:45 Agent to exit: exit status 127
lsb_release -a
LSB Version:	:core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID:	CentOS
Description:	CentOS release 5.4 (Final)
Release:	5.4
Codename:	Final
uname -r                                                                                                                                                                                                                                                              
2.6.18-164.el5

aRe00t avatar May 15 '18 06:05 aRe00t

agent webip debug 看下输出

ihacku avatar May 15 '18 09:05 ihacku

./agent: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory

aRe00t avatar May 15 '18 10:05 aRe00t

需要安装一下 libpcap @ihacku 这个release是在什么系统下编译的呀?

neargle avatar May 15 '18 12:05 neargle

多谢, 我看这个机器有 libpcap.so.0, 我装个1试试

aRe00t avatar May 16 '18 01:05 aRe00t

@neargle @ihacku ubuntu16.04下agent启动时候也会出现这个问题,我的解决办法是建立一个软链接到libpcap.so.1

cd /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/libpcap.so.1.7.4 libpcap.so.1

imp0wd3r avatar Jul 19 '18 04:07 imp0wd3r