cjheath / geoip

The Ruby gem for querying Maxmind.com's GeoIP database, which returns the geographic location of a server given its IP address

Home Page:http://geoip.rubyforge.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errno::ENOENT: No such file or directory @ rb_sysopen - GeoIP.dat

acegilz opened this issue · comments

2.1.1 :003 > c = GeoIP.new('GeoIP.dat').country('www.nokia.com')
Errno::ENOENT: No such file or directory @ rb_sysopen - GeoIP.dat

I downloaded the GeoIP.dat but where should it be placed??

GeoIP has no preferences about where you put the file. Put it wherever you like. Just make sure that you tell GeoIP the right path to it.