geoip
geoip copied to clipboard
Can't go get the package
Using latest go 1.6.1 on Windows I cannot get the package to work. I downloaded and installed pkg-config but whenever i do go get github.com/abh/geoip I get the following:
pkg-config --cflags geoip
Package geoip was not found in the pkg-config search path. Perhaps you should add the directory containing `geoip.pc' to the PKG_CONFIG_PATH environment variable No package 'geoip' found pkg-config: exit status 1
+1 I have the same problem
+1 I have the same problem on Mac os
You need to install GeoIP Legacy C Library
Using brew
on Mac $ brew install geoip
Sorry, I'm not a Windows user
I'm on a Mac OS X and still getting the error after installing geoip from Brew
$ brew install geoip 2.3.1
Warning: geoip-1.6.9 already installed
$ go get github.com/abh/geoip 2.3.1
# pkg-config --cflags geoip
Package geoip was not found in the pkg-config search path.
Perhaps you should add the directory containing `geoip.pc'
to the PKG_CONFIG_PATH environment variable
No package 'geoip' found
pkg-config: exit status 1
Seeing it on Debian as well, the fix is to install libgeoip-dev
. Can't comment on Windows though.
try it : $ brew install pkg-config
Seeing it on Debian as well, the fix is to install
libgeoip-dev
. Can't comment on Windows though.
Ubuntu desktop 20.40: this fixed it too.