Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^16: Help with Geo::IP output

by marto (Cardinal)
on Jun 25, 2020 at 12:06 UTC ( #11118522=note: print w/replies, xml ) Need Help??

in reply to Re^15: Help with Geo::IP output
in thread Help with Geo::IP output

You didn't have to do 1., simply installing DBD::SQLite (cpanm DBD::SQLite) builds SQLite for you: "DBD::SQLite is a Perl DBI driver for SQLite, that includes the entire thing in the distribution. So in order to get a fast transaction capable RDBMS working for your perl project you simply have to install this module, and nothing else.". From there it's a case of installing the app (cpanm App::geoip), and creating a config file with the details as specified. So the following steps:

  • Read and understand the module documentation.
  • Build SQLite and the perl module DBD::SQLite: cpanm DBD::SQLite.
  • Install geoip: cpanm App::geoip.
  • Create your config file as specified in the documentation.
  • Run the app and create the database: geoip --fetch --DB=dbi:SQLite:dbname=geoip.db

I've made a note to review the module docs in light of this thread, and if I can come up with any improvement I'll raise with Tux and see what he thinks.

Replies are listed 'Best First'.
Re^17: Help with Geo::IP output
by Anonymous Monk on Jun 25, 2020 at 12:34 UTC

    Unless I remember wrongly, I did install DBD::SQLite and then tried again with geoip. It was the same result so that was when I decided to install the new SQLite from source (with help pointed by the hosting).

    Edit to my previous post:

    3) Then there was the config file which I didn't now I could get - thought it was only for paid users.

    Should have been:

    3) Then there was the license key which I didn't know I could get from Maxmind - had thought it was only for paid users.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2020-09-28 00:40 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (143 votes). Check out past polls.