Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

comment on

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

Can you please indicate what is unclear in the README?

$ perl ./geoip --fetch --DB=dbi:SQLite:dbname=geoip.db

Will do everything for you if you have a working DBD::SQLite.

A demo:

$ ls -l geoip.db /bin/ls: cannot access 'geoip.db': No such file or directory Exit 2

Be patient on the next one, it'll take a while to finish (my demo took 5 minutes). You will need enough memory and disk space. My process took 13 Gb of ram.

$ perl ./geoip --fetch --DB=dbi:SQLite:dbname=geoip.db Create table stamps Create table continent Create table country Create table ipv4 Create table provider Create table city Create table ipc4 2020-06-22 21:16:39 4689345 304 2020-06-22 21:16:39 4689345 2020-06-16 13:13:32 1805947 304 2020-06-16 13:13:32 1805947 2020-06-16 13:19:50 41827687 304 2020-06-16 13:19:50 41827687 Reading Country info ... Reading Country IPv4 info ... Reading Provider IPv4 info ... Reading City info ... Reading City IPv4 info ...
$ ls -l geoip.db -rw-r--r-- 1 501100544 Jun 25 00:30 geoip.db

So there you go, 501 Mb of SQLite database.

Enjoy, Have FUN! H.Merijn

In reply to Re^13: Help with Geo::IP output by Tux
in thread Help with Geo::IP output by Anonymous Monk

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?

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

    How do I use this? | Other CB clients
    Other Users?
    Others romping around the Monastery: (4)
    As of 2020-09-30 04:05 GMT
    Find Nodes?
      Voting Booth?
      If at first I donít succeed, I Ö

      Results (158 votes). Check out past polls.