Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centos8 编译报错 #19

Open
wp156992938 opened this issue May 8, 2021 · 2 comments
Open

centos8 编译报错 #19

wp156992938 opened this issue May 8, 2021 · 2 comments

Comments

@wp156992938
Copy link

[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
Copy link

[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
Copy link

删除报错那一行就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants