geoip icon indicating copy to clipboard operation
geoip copied to clipboard

Can't go get the package

Open toster2015 opened this issue 8 years ago • 7 comments

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

toster2015 avatar Mar 13 '16 20:03 toster2015

+1 I have the same problem

631068264 avatar Mar 18 '16 03:03 631068264

+1 I have the same problem on Mac os

ezioruan avatar Apr 27 '16 03:04 ezioruan

You need to install GeoIP Legacy C Library Using brew on Mac $ brew install geoip Sorry, I'm not a Windows user

sfblaauw avatar May 11 '16 12:05 sfblaauw

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

bscott avatar Nov 06 '16 06:11 bscott

Seeing it on Debian as well, the fix is to install libgeoip-dev. Can't comment on Windows though.

ghost avatar Dec 03 '16 05:12 ghost

try it : $ brew install pkg-config

jiangdl avatar Mar 17 '17 06:03 jiangdl

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.

danieldids avatar Feb 04 '22 16:02 danieldids