以下所有实现方式均在windows系统上,使用Cygwin模拟UNIX环境。
在开始前,需要安装cygwin,并更新安装所需要的包,至少需要安装以下包:
autoconf2.1
automake1.10
binutils
gcc-core
gcc4-core
gdb
pcre
pcre-devel
$ tar xzvf wget-11.4.tar
$ cd wget-1.11.4 $ ./configure configure: Configuring for GNU wget 1.11.4 ... creating po/Makefile $ make gcc -I. ... $ make install ... /usr/bin/install -c -m 644 ./wget.1 /usr/local/share/man/man1/wget.1 $ type wget /usr/local/bin/wget
$ wget ftp://ftp.hpl.hp.com/pub/httperf/httperf-0.9.0.tar.gz (使用wget命令下载httperf压缩包)$ tar zxvf httperf-0.9.0.tar.gz $ cd httperf-0.9.0 $ ./configure --prefix=/usr/local/httperf $ make && make install
$ wget http://www.xenoclast.org/autobench/downloads/autobench-2.1.2.tar.gz$ tar zxvf autobench-2.1.2.tar.gz $ cd autobench-2.1.2 $ ./configure --prefix=/usr/local/httperf $ make && make install
解决方案:gnuplot: unable to open display '' gnuplot: X11 aborted.
Reference: http://objectmix.com/graphics/140220-gnuplot-generates-display-error-when-generating-png.htmlThe bug is that on linux systems the default terminal is X11,regardless of whether you actually have x11 installed. To fix it permanently, set an environmental variable on thismachine to change the default terminal to something else. For example: tcsh: setenv GNUTERM dumb bash: export GNUTERM=dumb
但是这样修改之后可以生成图片,但是生成的图片在打开时出现:图片已损坏的错误
Terminal type set to 'png' fontconfig: Couldn't find font. when opening font "arial", using internal non-scalable font Options are 'nocrop medium size 640,480 '
解决方案:
cmd > export GDFONTPATH="/cygdrive/C/WINDOWS/Fonts"
Reference:http://cygwin.1069669.n5.nabble.com/Fonts-td118120.html