Subject: | Geo::IP v1.42 produce error when trying use Geo::IP |
Geo::IP v1.42 produce following error when trying use Geo::IP:
Can't load '/usr/local/perl-5.16.3/site/lib/auto/Geo/IP/IP.so' for module Geo::IP: /usr/local/perl-5.16.3/site/lib/auto/Geo/IP/IP.so: undefined symbol: GeoIP_country_continent at /usr/local/perl-5.16.3/lib/DynaLoader.pm line 191.
--------------------------------------------------------------------------
Geo::IP v1.42 used. Compiled with:
export LD_LIBRARY_PATH=/usr/local/lib;
cpan -fi Geo::IP
--------------------------------------------------------------------------
Latest geoip-api-c v1.5.1 used. Compiled with:
./configure
make
make install
--------------------------------------------------------------------------
Summary of my perl5 (revision 5 version 16 subversion 3) configuration:
Platform:
osname=linux, osvers=2.6.11-1.1369_fc4, archname=x86_64-linux-thread-multi
uname='linux perl-linux64-vm 2.6.11-1.1369_fc4 #1 thu jun 2 22:56:33 edt 2005 x86_64 x86_64 x86_64 gnulinux '
config_args='-ders -Dcc=gcc -Dusethreads -Duseithreads -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Duse64bitall -Dlibpth=/lib64 /usr/lib64 /usr/local/lib64 -Accflags=-DUSE_SITECUSTOMIZE -Duselargefiles -Accflags=-DPERL_RELOCATABLE_INCPUSH -Accflags=-fno-merge-constants -Dprefix=/usr/local/perl-5.16.3 -Dprivlib=/usr/local/perl-5.16.3/lib -Darchlib=/usr/local/perl-5.16.3/lib -Dsiteprefix=/usr/local/perl-5.16.3/site -Dsitelib=/usr/local/perl-5.16.3/site/lib -Dsitearch=/usr/local/perl-5.16.3/site/lib -Dsed=/bin/sed -Duseshrplib -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe'
ccversion='', gccversion='4.0.0 20050519 (Red Hat 4.0.0-8)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =''
libpth=/lib64 /usr/lib64 /usr/local/lib64
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.5.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.3.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/local/perl-5.16.3/lib/CORE'
cccdlflags='-fPIC', lddlflags='-shared -O2'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV
PERL_RELOCATABLE_INCPUSH USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API USE_SITECUSTOMIZE
Locally applied patches:
ActivePerl Build 1603 [296746]
Built under linux
Compiled at Mar 13 2013 11:02:49
%ENV:
PERL5LIB="/var/www/p-core/lib:/var/www/p-core/lib:/var/www/p-core/lib:"
@INC:
/var/www/p-core/lib
/var/www/p-core/lib
/var/www/p-core/lib
/usr/local/perl-5.16.3/site/lib
/usr/local/perl-5.16.3/lib