Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: newbie problem with Geo::IP installation through cpan

by syphilis (Bishop)
on Feb 03, 2010 at 08:13 UTC ( #821098=note: print w/replies, xml ) Need Help??


in reply to newbie problem with Geo::IP installation through cpan

Looks like a screwed Makefile.PL to me. I would just unpack the module's source to some location, cd to that location and run perl Makefile.PL LIBS="-L/usr/local/lib -lGeoIP" INC=-I/usr/local/include, followed by make test then sudo make install.

See if that works around the bug.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: newbie problem with Geo::IP installation through cpan
by jbakshi (Initiate) on Feb 03, 2010 at 08:58 UTC
    Thanks for your kind attention. I think the module location is given by this line

    CPAN.pm: Going to build B/BO/BORISZ/Geo-IP-1.38.tar.gz

    There is also a suggestion from cpan shell

    if GeoIP is installed, but in a non-standard directory, then use the
    following options to Makefile.PL:

    perl Makefile.PL LIBS='-L/home/me/lib' INC='-I/home/me/include'

    Please clarify a bit more what to do here. Shall I just untar from B/BO/BORISZ/Geo-IP-1.38.tar.gz and run the Makefile.PL there ? Please suggest.

    Thanks
      It seems to me that you have GeoIP installed in a standard location, so you won't need to do anything special except downloading and manually installing Geo::IP. I tried installing GeoIP and Geo::IP, and everything went without a hitch.
      Hello Rob,

      I have solved it as per your guidance. I have found the Geoip source located at
      /root/.cpan/build/Geo-IP-1.38-ZWHRAD/

      So I have followed your suggestion with in that folder and now I get the Geoip tracking in awstats.

      many many thanks to you
      cpan>look Geo::IP
      or
      $ cpanp z Geo::IP
        Hello Anonymous Monk,

        thanks for this search technique

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://821098]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2020-01-19 01:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?