我正试图根据Snort网站上的说明,从源文件中安装Snort在Ubuntu21.04上。我一直在关注Youtube上的视频,并解决了许多问题,但我却陷入了困境:
sp_rpc_check.c:32:10: fatal error: rpc/rpc.h: No such file or directory
32 | #include
| ^~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:478: sp_rpc_check.o] Error 1
make[4]: Leaving directory '/usr/snort-2.9.18/src/detection-plugins'
make[3]: *** [Makefile:428: all] Error 2
make[3]: Leaving directory '/usr/snort-2.9.18/src/detection-plugins'
make[2]: *** [Makefile:547: all-recursive] Error 1
make[2]: Leaving directory '/usr/snort-2.9.18/src'
make[1]: *** [Makefile:505: all-recursive] Error 1
make[1]: Leaving directory '/usr/snort-2.9.18'
make: *** [Makefile:370: all] Error 2
已经按照AskUbuntu上的另一个线程尝试了AskUbuntu。
我是个新手。做过sudo apt update
和sudo apt upgrade
。
snort网站https://www.snort.org/#get-started已经完成了以下所有工作:
wget https://www.snort.org/downloads/snort/daq-2.0.7.tar.gz
wget https://www.snort.org/downloads/snort/snort-2.9.18.tar.gz
tar xvzf daq-2.0.7.tar.gz
cd daq-2.0.7
./configure && make && sudo make install
tar xvzf snort-2.9.18.tar.gz
cd snort-2.9.18
但在跑步时:
./configure --enable-sourcefire && make && sudo make install
获取上面描述的错误
我还对libpcap、libpcre和dnet的问题进行了分类。所以现在就是这个rpc问题了。谢谢
发布于 2021-10-18 14:26:52
决定很简单。你需要把丢失的文件从这里https://github.com/lattera/glibc/tree/master/sunrpc/rpc
到/usr/include/rpc
它是不安全的,但工作xD 看这儿
发布于 2021-10-20 16:55:43
我在Kali发行版中做了snort配置。
sp_rpc_check.c:32:10: fatal error: rpc/rpc.h: No such file or directory
32 | #include
将问题解决如下:
apt-file search rpc/rpc.h
)的库apt-get install libntirpc-dev
)ntircp
文件夹复制到rcp
文件夹make
例如。1:
将文件从ntirpc复制到rpc
sp_rpc_check.c:32:10: fatal error: rpc/rpc.h: No such file or directory
32 | #include
/include/ntirpc# cp rpc.h /usr/include/rpc
/snort_source/snort-2.9.18.1# make
Ex.2:
编辑类型
/usr/include/rpc/types.h:189:10: fatal error: misc/abstract_atomic.h: No such file or directory
189 | #include
将行更改为:
#include
至:
#include
然后
/snort_source/snort-2.9.18.1# make
等等..。
我修改了以下文件:
wait_queuq.h
clnt.h
rpc.h
pool_queue.h
svc.h
portable.h
types.h
按照make
的要求。
大约40行代码
发布于 2022-08-22 09:48:53
我也有同样的问题,但在互联网上没有得到任何帮助,然后我自己解决了。基本上,文件就在那里,但是snort不知怎么地在其他目录中查找。因此,所有需要的文件都放在/usr/include/ntirpc/中,但是您必须相应地将每个文件复制到它自己的目录中。
例如,要解决第一个错误,需要将dir /usr/include/ntirpc/rpc/rpc.h中的文件复制到dir /usr/include/rpc/
这将解决第一个错误,但在安装过程中会出现许多其他错误。
如果错误是misc/anyfile,那么将文件从/usr/include/ntirpc/misc/复制到位置/usr/incldue/misc
如果erroor说有任何文件,请记住将其复制到/usr/include/
https://askubuntu.com/questions/1360945
复制相似问题