http://www.perlmonks.org?node_id=821098


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