Open wp156992938 opened 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文件夹内的命令即可,然后在按照正常的方式执行, 这样更加轻便一些。
删除报错那一行就行了
[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