在Mac上编译httperf

Ben*_*ons 5 macos httperf

想知道是否有人能说出发生了什么?在整天编译试验和错误之后,我有一个编译并运行但无法连接到任何东西的httperf.它现在barfs与"httperf:无法打开google.com".

我的猜测是问题与设置高maxfiles限制有关,但我不知道为什么.我不得不这样做,ulimit -n因为httperf继续使用"httperf:未能增加打开文件数量限制".(很久以前我安装的自制版本也有barfs这个错误).

如果查看源,则系统open()调用失败.为什么?为什么??? https://github.com/httperf/httperf/blob/ab2b96b0f5988c790de5cbc757dfd928c728f4da/src/conn.c#L65

Mac OSX版本是10.9.5.

我的步骤:

sudo launchctl limit maxfiles 65535 65535
ulimit -n 65535

git clone https://github.com/httperf/httperf
cd httperf
glibtoolize --force
aclocal
autoconf
autoheader
automake --force-missing --add-missing
mkdir build
cd build
../configure
make
make install
cd ../
autoreconf -i
Run Code Online (Sandbox Code Playgroud)

Uggghhhhhhhh.