git์์ ๋น๋ํ๋ ๋์ make ๋ช ๋ น์ ์คํํ๋ ๋์ ์๋ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค. ๋๋ wget์ ํตํด ์ฝ๋๋ฅผ ์ป์ ๋ ๊ทธ๊ฒ์ ํ ์ ์์ต๋๋ค. ์ฐ๋ถํฌ 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
๋ฐ๋น์ ๊ธฐ๋ฐ์ autopoint
๋ฅผ ์ค์นํด์ผ ํ ์๋ ์์ต๋๋ค.
# apt-get install autopoint
์ด๊ฒ์ travis ๋น๋ ๋ฐ๋น์ ๊ธฐ๋ฐ์ ํ์ํ ๋จ๊ณ์
๋๋ค.
๋ซ์ต๋๋ค. ํ์ํ ๊ฒฝ์ฐ ์์ ๋กญ๊ฒ ๋ค์ ์ฝ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
gettext
์ค์น๋์ด ์์ต๋๊น?๊ทธ๋ฐ ๋ค์ ๋ค์ ์คํํ์ญ์์ค.