Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Dear list,

Hello to all of you. I am a newbie in cpan and come here to discuss with Geo::IP installation problem through cpan.

For awstats Geo-location report I need Geo::IP in my system. This is a opensuse 11.1 ( x86_64) box with perl v5.10.0 built for x86_64-linux-thread-multi.

I have already downloaded the required the MaxMind GeoIP C API from http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz and and install it by

````````````````
./configure make make check ( all test are passed) make install
`````````````````````


During "make install" I can see that

``````````
Libraries have been installed in:
/usr/local/lib
`````````````

and to confirm

````````````````````````````````````
# ls /usr/local/lib
libGeoIP.a libGeoIP.so libGeoIPUpdate.a libGeoIPUpdate.so libGeoIPUpdate.so.0.0.0 libGeoIP.la libGeoIP.so.1 libGeoIP.so.1.4.6 libGeoIPUpdate.la libGeoIPUpdate.so.0
````````````````````````

/etc/ld.so.conf has also the above path included.

.........
/usr/x86_64-suse-linux/lib /usr/local/lib /opt/kde3/lib /lib64
.............

Now if I try to install Geo::IP through cpan it reports error as

...............
The GeoIP CAPI is not installed you should do that. Otherwise try
perl Makefile.PL PP=1

to install this module anyway. It uses a slower pure perl version and you can rebuid it later.

GeoIP must be installed prior to building Geo::IP and I can't find it in the standard library directories. You can download GeoIP C API from:

http://www.maxmind.com/app/c

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'

Note that if you build against a shareable library in a non-standard location you may (on some platforms) also have to set your LD_LIBRARY_PATH environment variable at run time for perl to find the library.

If you installed the GeoIP C libraries to the /usr/local/lib directory, then you may need to add /usr/local/lib to /etc/ld.so.conf then run /sbin/ldconfig /etc/ld.so.conf

..................

I am really confused why it is missing the GeoIP C API . I have even done " /sbin/ldconfig /etc/ld.so.conf " and tried to intall the module again but no luck at all :-( could any one kindly provide me a clue ?

with regards,

In reply to newbie problem with Geo::IP installation through cpan by jbakshi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others exploiting the Monastery: (4)
    As of 2020-02-20 14:58 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      What numbers are you going to focus on primarily in 2020?










      Results (91 votes). Check out past polls.

      Notices?