EZLippi / WebBench

Webbench是Radim Kolar在1997年写的一个在linux下使用的非常简单的网站压测工具。它使用fork()模拟多个客户端同时访问我们设定的URL,测试网站在压力下工作的性能,最多可以模拟3万个并发连接去测试网站的负载能力。官网地址:http://home.tiscali.cz/~cz210552/webbench.html
GNU General Public License v3.0
2.66k stars 1.15k forks source link

centos8 编译报错 #19

Open wp156992938 opened 3 years ago

wp156992938 commented 3 years ago

[root@k8s-master WebBench]# sudo make && sudo make install PREFIX=your_path_to_webbench cc -Wall -ggdb -W -O -c -o webbench.o webbench.c webbench.c:22:10: 致命错误:rpc/types.h:没有那个文件或目录

include <rpc/types.h>

      ^~~~~~~~~~~~~

编译中断。 make: *** [<内置>:webbench.o] 错误 1

hewei-nju commented 3 years ago

[root@k8s-master WebBench]# sudo make && sudo make install PREFIX=your_path_to_webbench cc -Wall -ggdb -W -O -c -o webbench.o webbench.c webbench.c:22:10: 致命错误:rpc/types.h:没有那个文件或目录

include <rpc/types.h>

^~~~~ 编译中断。 make: *** [<内置>:webbench.o] 错误 1

PREFIX这个是你make install是指定安装的路径,而不能直接使用your_path_to_webbench,你需要自己替换它。 一般而言,你直接进入MakeFile文件夹这个目录,make执行MakeFile文件夹内的命令即可,然后在按照正常的方式执行, 这样更加轻便一些。

ticks-tan commented 2 years ago

删除报错那一行就行了