Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build from GitHub issue #2770

Open
gu1113 opened this issue Dec 11, 2024 · 1 comment
Open

Build from GitHub issue #2770

gu1113 opened this issue Dec 11, 2024 · 1 comment

Comments

@gu1113
Copy link

gu1113 commented Dec 11, 2024

Hi im trying to build from github following these steps ;

$ git clone https://github.com/allinurl/goaccess.git
$ cd goaccess
$ autoreconf -fiv
$ ./configure --enable-utf8 --enable-geoip=mmdb
$ make
# make install

every seems finish ok until have the first error in make process;

$ make
depbase=`echo src/bin2c.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I./src    -O2 -DSYSCONFDIR=\"/usr/local/etc\" -Wall -Wextra -Wnested-externs -Wformat=2 -g -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wshadow -Wold-style-definition  -pthread -MT src/bin2c.o -MD -MP -MF $depbase.Tpo -c -o src/bin2c.o src/bin2c.c &&\
mv -f $depbase.Tpo $depbase.Po
cc -O2 -DSYSCONFDIR=\"/usr/local/etc\" -Wall -Wextra -Wnested-externs -Wformat=2 -g -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wshadow -Wold-style-definition  -pthread -rdynamic  -o bin2c src/bin2c.o  -lnsl -lncursesw -lmaxminddb -lpthread 
cat ./resources/tpls.html | sed "s/^[[:space:]]*//" | sed "/^$/d" | tr -d "\r\n" > ./resources/tpls.html.tmp
./bin2c ./resources/tpls.html.tmp src/tpls.h tpls
cat ./resources/css/bootstrap.min.css | sed "s/^[[:space:]]*//" | sed "/^$/d" | tr -d "\r\n" > ./resources/css/bootstrap.min.css.tmp
./bin2c ./resources/css/bootstrap.min.css.tmp src/bootstrapcss.h bootstrap_css
cat ./resources/css/fa.min.css | sed "s/^[[:space:]]*//" | sed "/^$/d" | tr -d "\r\n" > ./resources/css/fa.min.css.tmp
./bin2c ./resources/css/fa.min.css.tmp src/facss.h fa_css
cat ./resources/css/app.css | sed "s/^[[:space:]]*//" | sed "/^$/d" | tr -d "\r\n" > ./resources/css/app.css.tmp
./bin2c ./resources/css/app.css.tmp src/appcss.h app_css
cat ./resources/js/d3.v7.min.js | sed "s/^[[:space:]]*//" | sed "/^$/d" | tr -d "\r\n" > ./resources/js/d3.v7.min.js.tmp
./bin2c ./resources/js/d3.v7.min.js.tmp src/d3js.h d3_js
cat ./resources/js/topojson.v3.min.js | sed "s/^[[:space:]]*//" | sed "/^$/d" | tr -d "\r\n" > ./resources/js/topojson.v3.min.js.tmp
./bin2c ./resources/js/topojson.v3.min.js.tmp src/topojsonjs.h topojson_js
cat ./resources/js/hogan.min.js | sed "s/^[[:space:]]*//" | sed "/^$/d" | tr -d "\r\n" > ./resources/js/hogan.min.js.tmp
./bin2c ./resources/js/hogan.min.js.tmp src/hoganjs.h hogan_js
cat ./resources/countries-110m.json | sed "s/^[[:space:]]*//" | sed "/^$/d" | tr -d "\r\n" > ./resources/countries-110m.json.tmp
./bin2c ./resources/countries-110m.json.tmp src/countries110m.h countries_json
cat ./resources/js/charts.js | sed -E "s@(,|;)[[:space:]]*//..*@\1@g" | sed -E "s@^[[:space:]]*//..*@@g" | sed "s/^[[:space:]]*//" | sed "/^$/d" | tr -d "\r\n" > ./resources/js/charts.js.tmp
./bin2c ./resources/js/charts.js.tmp src/chartsjs.h charts_js
cat ./resources/js/app.js | sed -E "s@(,|;)[[:space:]]*//..*@\1@g" | sed -E "s@^[[:space:]]*//..*@@g" | sed "s/^[[:space:]]*//" | sed "/^$/d" | tr -d "\r\n" > ./resources/js/app.js.tmp
./bin2c ./resources/js/app.js.tmp src/appjs.h app_js
make  all-recursive
make[1]: Entering directory '/home/guille/Desktop/guille/goaccess'
Making all in po
make[2]: Entering directory '/home/guille/Desktop/guille/goaccess/po'
test ! -f ./goaccess.pot || \
  test -z "de.gmo es.gmo fr.gmo ja.gmo ko.gmo sv.gmo zh_CN.gmo pt_BR.gmo ru.gmo uk.gmo it.gmo" || make de.gmo es.gmo fr.gmo ja.gmo ko.gmo sv.gmo zh_CN.gmo pt_BR.gmo ru.gmo uk.gmo it.gmo
make[3]: Entering directory '/home/guille/Desktop/guille/goaccess/po'
: --update  --lang=de de.po goaccess.pot
rm -f de.gmo && : -c --statistics --verbose -o de.gmo de.po
mv: cannot stat 't-de.gmo': No such file or directory
make[3]: *** [Makefile:180: de.gmo] Error 1
make[3]: Leaving directory '/home/guille/Desktop/guille/goaccess/po'
make[2]: *** [Makefile:218: stamp-po] Error 2
make[2]: Leaving directory '/home/guille/Desktop/guille/goaccess/po'
make[1]: *** [Makefile:860: all-recursive] Error 1
make[1]: Leaving directory '/home/guille/Desktop/guille/goaccess'
make: *** [Makefile:547: all] Error 2
$ make install
make  install-recursive
make[1]: Entering directory '/home/guille/Desktop/guille/goaccess'
Making install in po
make[2]: Entering directory '/home/guille/Desktop/guille/goaccess/po'
test ! -f ./goaccess.pot || \
  test -z "de.gmo es.gmo fr.gmo ja.gmo ko.gmo sv.gmo zh_CN.gmo pt_BR.gmo ru.gmo uk.gmo it.gmo" || make de.gmo es.gmo fr.gmo ja.gmo ko.gmo sv.gmo zh_CN.gmo pt_BR.gmo ru.gmo uk.gmo it.gmo
make[3]: Entering directory '/home/guille/Desktop/guille/goaccess/po'
: --update  --lang=de de.po goaccess.pot
rm -f de.gmo && : -c --statistics --verbose -o de.gmo de.po
mv: cannot stat 't-de.gmo': No such file or directory
make[3]: *** [Makefile:180: de.gmo] Error 1
make[3]: Leaving directory '/home/guille/Desktop/guille/goaccess/po'
make[2]: *** [Makefile:218: stamp-po] Error 2
make[2]: Leaving directory '/home/guille/Desktop/guille/goaccess/po'
make[1]: *** [Makefile:860: install-recursive] Error 1
make[1]: Leaving directory '/home/guille/Desktop/guille/goaccess'
make: *** [Makefile:1165: install] Error 2

Any lead what it can be happening ?

Thanks!

@heyainsleymae
Copy link
Contributor

Have you tried installing the build tools suggested in the note underneath the commands you copied?

Note: You may need to install build tools like gcc, autoconf, gettext, autopoint etc for compiling/building software from source. e.g., base-devel, build-essential, "Development Tools".
"Download", goaccess.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants