本文介绍了使 tcpflood 抛出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注此链接(http://www.rsyslog.com/how-to-use-tcpflood/ ) 将消息发送到 rsyslog.

I am following this link ( http://www.rsyslog.com/how-to-use-tcpflood/ ) to send messages to rsyslog.

我已经克隆了 rsyslog 的 git 存储库 https://github.com/rsyslog/rsyslog.git

I have cloned the git repository of rsyslog https://github.com/rsyslog/rsyslog.git

点击链接http://www.rsyslog.com/how-to-use-tcpflood/ ,我在执行make tcpflood"时遇到以下错误

While following the link http://www.rsyslog.com/how-to-use-tcpflood/ , I am getting below error while executing "make tcpflood"

root1@atratus06:~/Debashish/rsyslog/tests$ make tcpflood

cc     tcpflood.c   -o tcpflood
tcpflood.c:86:20: fatal error: config.h: No such file or directory
 #include "config.h"
                ^
compilation terminated.
make: *** [tcpflood] Error 1

你能帮我解决这个错误吗,你的帮助将不胜感激.

Can you please help me with the error, your help will be really appreciated.

推荐答案

我遇到了同样的问题.解决方案(或者更确切地说是解决方法)是编译 rsyslog ...只需向上一级目录,然后输入:

I had the same problem. Solution (or rather workaround) was to compile rsyslog...Just go one directory up, and type:

./configure(你可能需要在这里安装很多缺失的东西......)

./configure (you will need to probably install lot of missing stuff here...)

制作

make install

成功完成所有这些操作后,您可以转到tests"目录并再次键入make tcpflood".这次它会起作用.

After successfully completing all those actions you can go to 'tests' directory and once again type 'make tcpflood'. This time it will work.

这篇关于使 tcpflood 抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-28 21:27