在从 git 构建它时运行 make 命令时出现以下错误。 当我通过 wget 获取代码时,我能够做到这一点。 我在 ubuntu 14.04 上运行它
./bin2c resources/tpls.html src/tpls.h tpls
./bin2c resources/css/bootstrap.min.css src/bootstrapcss.h bootstrap_css
./bin2c resources/css/fa.min.css src/facss.h fa_css
./bin2c resources/css/app.css src/appcss.h app_css
./bin2c resources/js/d3.v3.min.js src/d3js.h d3_js
./bin2c resources/js/hogan.min.js src/hoganjs.h hogan_js
./bin2c resources/js/charts.js src/chartsjs.h charts_js
./bin2c resources/js/app.js src/appjs.h app_js
make all-recursive
make[1]: Entering directory /home/ubuntu/goaccess' Making all in po make[2]: Entering directory/home/ubuntu/goaccess/po'
test ! -f ./goaccess.pot ||
test -z "fr.gmo" || make fr.gmo
make[3]: Entering directory /home/ubuntu/goaccess/po' rm -f fr.gmo && : -c --statistics --verbose -o fr.gmo fr.po mv: cannot stat ‘t-fr.gmo’: No such file or directory make[3]: *** [fr.gmo] Error 1 make[3]: Leaving directory/home/ubuntu/goaccess/po'
make[2]: *** [stamp-po] Error 2
make[2]: Leaving directory /home/ubuntu/goaccess/po' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/ubuntu/goaccess'
make: *** [all] Error 2
你安装了gettext
吗?
# apt-get install gettext
然后请再次运行:
$ autoreconf -fiv
$ ./configure --enable-utf8 --enable-geoip=legacy
$ make
# make install
您可能还需要在基于 debian 的系统上安装autopoint
# apt-get install autopoint
这是 travis 构建基于 debian 的必要步骤
关闭这个。 如果需要,请随时重新打开它。
最有用的评论
你安装了
gettext
吗?然后请再次运行: