Hi, i have a problem with GeoIP.
I always get the folloging message in the deamon log:
ERROR: GeoIP method set to binary file lookup but GeoIP2:
atabase::Reader module NOT FOUND
I tryed to install GeoIP2:
atabase::Reader but it seems that it doesnt work.
I never worked with GeoIP before. Im using Debian 9. Do you have any Idea?
Code:
cpan[3]> install GeoIP2::Database::Reader
Running install for module 'GeoIP2::Database::Reader'
MAXMIND/GeoIP2-2.006001.tar.gz
Has already been unwrapped into directory /root/.cpan/build/GeoIP2-2.006001-uQZ9WO
MAXMIND/GeoIP2-2.006001.tar.gz
Has already been prepared
MAXMIND/GeoIP2-2.006001.tar.gz
Has already been made
Running make test
PERL_DL_NONLAZY=1 PERL_USE_UNSAFE_INC=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/GeoIP2/*.t t/GeoIP2/Database/*.t t/GeoIP2/Error/*.t t/GeoIP2/Model/*.t t/GeoIP2/WebService/*.t
t/00-report-prereqs.t ....................... #
# Versions for all modules listed in MYMETA.json (including optional ones):
#
# === Configure Requires ===
#
# Module Want Have
# ------------------- ---- -------
# ExtUtils::MakeMaker any 7.10_02
#
# === Build Requires ===
#
# Module Want Have
# ------------------- ---- -------
# ExtUtils::MakeMaker any 7.10_02
#
# === Test Requires ===
#
# Module Want Have
# --------------------- ---- ---------
# ExtUtils::MakeMaker any 7.10_02
# File::Spec any 3.63_01
# HTTP::Response any 6.11
# HTTP::Status any 6.11
# IO::Compress::Gzip any 2.069_001
# MaxMind::DB::Metadata any 0.040001
# Path::Class any 0.37
# Test::Builder any 1.302164
# Test::Fatal any 0.014
# Test::More 0.96 1.302164
# Test::Number::Delta any 1.06
# base any 2.23
# utf8 any 1.19
#
# === Test Recommends ===
#
# Module Want Have
# ---------- -------- --------
# CPAN::Meta 2.120900 2.150005
#
# === Runtime Requires ===
#
# Module Want Have
# -------------------- -------- --------
# B any 1.62
# Data::Dumper any 2.160
# Data::Validate::IP 0.25 0.27
# Exporter any 5.72
# Getopt::Long any 2.48
# HTTP::Headers any 6.11
# HTTP::Request any 6.11
# JSON::MaybeXS any 1.004000
# LWP::Protocol::https any missing
# LWP::UserAgent any 6.39
# List::SomeUtils any 0.56
# List::Util any 1.50
# MIME::Base64 any 3.15
# MaxMind::DB::Reader 1.000000 1.000013
# Moo any 2.003004
# Moo::Role any 2.003004
# Params::Validate any 1.29
# Scalar::Util any 1.50
# Sub::Quote any 2.006003
# Throwable::Error any 0.200013
# Try::Tiny any 0.30
# URI any 1.71
# lib any 0.63
# namespace::clean any 0.27
# strict any 1.11
# warnings any 1.36
#
#
# *** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***
#
# The following REQUIRED prerequisites were not satisfied:
#
# LWP::Protocol::https is not installed (any version required)
#
t/00-report-prereqs.t ....................... ok
t/GeoIP2/Database/Reader-Anonymous-IP.t ..... ok
t/GeoIP2/Database/Reader-ASN.t .............. ok
t/GeoIP2/Database/Reader-Connection-Type.t .. ok
t/GeoIP2/Database/Reader-Domain.t ........... ok
t/GeoIP2/Database/Reader-Enterprise.t ....... ok
t/GeoIP2/Database/Reader-ISP.t .............. ok
t/GeoIP2/Database/Reader.t .................. ok
t/GeoIP2/Error/Type.t ....................... ok
t/GeoIP2/Model/City.t ....................... ok
t/GeoIP2/Model/Country.t .................... ok
t/GeoIP2/Model/Insights.t ................... ok
t/GeoIP2/Model/names.t ...................... ok
t/GeoIP2/Types.t ............................ ok
t/GeoIP2/WebService/Client.t ................ Can't locate LWP/Protocol/https.pm in @INC (you may need to install the LWP::Protocol::https module) (@INC contains: /root/.cpan/build/GeoIP2-2.006001-uQZ9WO/blib/lib /root/.cpan/build/GeoIP2-2.006001-uQZ9WO/blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /root/.cpan/build/GeoIP2-2.006001-uQZ9WO/blib/lib/GeoIP2/WebService/Client.pm line 26.
BEGIN failed--compilation aborted at /root/.cpan/build/GeoIP2-2.006001-uQZ9WO/blib/lib/GeoIP2/WebService/Client.pm line 26.
Compilation failed in require at t/GeoIP2/WebService/Client.t line 7.
BEGIN failed--compilation aborted at t/GeoIP2/WebService/Client.t line 7.
t/GeoIP2/WebService/Client.t ................ Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
Test Summary Report
-------------------
t/GeoIP2/WebService/Client.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=15, Tests=484, 4 wallclock secs ( 0.08 usr 0.01 sys + 3.17 cusr 0.22 csys = 3.48 CPU)
Result: FAIL
Failed 1/15 test programs. 0/484 subtests failed.
Makefile:1090: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 2
MAXMIND/GeoIP2-2.006001.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MAXMIND/GeoIP2-2.006001.tar.gz
Failed during this command:
MAXMIND/GeoIP2-2.006001.tar.gz : make_test NO
cpan[4]>