make tcpflood throws error

只愿长相守 提交于 2019-12-11 16:11:12

问题


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

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

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.


回答1:


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

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

make

make install

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



来源:https://stackoverflow.com/questions/45346667/make-tcpflood-throws-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!