在源码目录下输入 make webbench 进行编译出现如下错误:
(报错fatal error: rpc/types.h: No such file or directory)
解决(需要安装libtirpc-dev包同时加个软连接):
sudo apt-get install -y libtirpc-dev
sudo ln -s /usr/include/tirpc/rpc/types.h /usr/include/rpc
又报错fatal error: netconfig.h: No such file or directory,
再建一个软连接:
sudo ln -s /usr/include/tirpc/netconfig.h /usr/include
再次报错/bin/sh: 1: ctags: not found,安装个ctags:
sudoapt-getinstall universal-ctags
进行测试:
./webbench -c 100 -t 30 http://www.baidu.com/