cjheath/geoip

NameError: uninitialized constant GeoIp

gerardv opened this issue · 2 comments

I'd love to use geoip, but I'm doing something terribly wrong, I guess. Here's my irb printout, leading up to the error.

gerard@ubuntu:/Documents/geoBrainz/src$ which ruby
/home/gerard/.rvm/rubies/ruby-2.0.0-p353/bin/ruby
gerard@ubuntu:
/Documents/geoBrainz/src$ which geoip
/home/gerard/.rvm/gems/ruby-2.0.0-p353/bin/geoip
gerard@ubuntu:~/Documents/geoBrainz/src$ irb
2.0.0p353 :001 > require 'geoip'
=> true
2.0.0p353 :002 > c = GeoIp.new('db/GeoLiteCity.dat').city('google.com')
NameError: uninitialized constant GeoIp
from (irb):2
from /home/gerard/.rvm/rubies/ruby-2.0.0-p353/bin/irb:12:in `

'

I uninstalled and reinstalled the geoip gem, trying to eliminate a corrupted gem install.

Where am I going wrong?

You're missing a capital P in GeoIP.

Srry, my bad...