Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: uninitialized constant GeoIp #42

Closed
gerardv opened this issue Dec 3, 2013 · 2 comments
Closed

NameError: uninitialized constant GeoIp #42

gerardv opened this issue Dec 3, 2013 · 2 comments

Comments

@gerardv
Copy link

gerardv commented Dec 3, 2013

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?

@cjheath
Copy link
Owner

cjheath commented Dec 3, 2013

You're missing a capital P in GeoIP.

@cjheath cjheath closed this as completed Dec 3, 2013
@gerardv
Copy link
Author

gerardv commented Dec 3, 2013

Srry, my bad...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants