geoipupdate icon indicating copy to clipboard operation
geoipupdate copied to clipboard

Documentation: how to build with non-default directories

Open xgretsch opened this issue 6 years ago • 2 comments

The README.md file doesn't give enough information to let one build a copy of geoipupdate with non-default directories - at least, not if one is a go novice. It looks as if the correct approach is something like:

cd $HOME/go/src/github.com/maxmind/geoipupdate and do:
set CONFFILE=/some/path/myGeoIP.conf
set DATADIR=/some/path/to/data/dir
make

But this doesn't work. It would be nice if README.md could include the correct steps to achieve the desired results.

xgretsch avatar Sep 11 '19 15:09 xgretsch

This should work:

CONFFILE=/etc/foo DATADIR=/etc/bar make

You're right it'd be good to expand the section we have about changing the default config/directory with this though. Thank you for the idea!

horgh avatar Sep 11 '19 19:09 horgh

That works fine, thanks - except I should mention that there's a dependency on pandoc, readily fixed on my Mac by doing sudo port install pandoc (I haven't graduated to homebrew yet). I'll be trying it on Centos soon...

xgretsch avatar Sep 12 '19 08:09 xgretsch