Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#5 Can't locate object method "bootstrap"

open
nobody
5
2006-02-27
2006-02-27
kihtap
No

Hi

I am trying to install Geo IP Perl from
http://www.maxmind.com/app/perl

I installed the GeoIP C API Lib fine, no errors. But
when I try to install the
Geo::IP Perl Module I get and error.
"perl Makefile.pl" runs okay
"make" runs okay
"make test" give the following error:
---
PERL_DL_NONLAZY=1 /usr/bin/perl
"-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/0_base............Can't locate object method
"bootstrap" via package
"Geo::IP" at
/home/packages/Geo-IP-1.27/blib/lib/Geo/IP.pm line 10.
BEGIN failed--compilation aborted at
/home/packages/Geo-IP-1.27/blib/lib/Geo/IP.pm line 11.
BEGIN failed--compilation aborted at t/0_base.t line 7.
dubious
Test returned status 255 (wstat 65280, 0xff00)
Undefined subroutine &Test::Harness::WCOREDUMP called at
/usr/lib/perl5/5.00503/Test/Harness.pm line 288.
make: *** [test_dynamic] Error 255
---
I dont know what 'Can't locate object method
"bootstrap"' means or how to
fix it.

I removed the BEGIN{ }
$VERSION = '1.27';
bootstrap Geo::IP $VERSION;

And ran the "make test" I get this:--

PERL_DL_NONLAZY=1 /usr/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/0_base............ok
t/1_lookup..........ok
t/2_namelookup......ok
t/3_mirror..........Use of reserved word "our" is
deprecated at
/home/packages/Geo-IP-1.27/blib/lib/Geo/Mirror.pm line 10.
Global symbol "%lat" requires explicit package name at
/home/packages/Geo-IP-1.27/blib/lib/Geo/Mirror.pm line 10.
Global symbol "%lon" requires explicit package name at
/home/packages/Geo-IP-1.27/blib/lib/Geo/Mirror.pm line 10.
Global symbol "$geo_ip_pkg" requires explicit package
name at
/home/packages/Geo-IP-1.27/blib/lib/Geo/Mirror.pm line 10.
BEGIN not safe after errors--compilation aborted at
/home/packages/Geo-IP-1.27/blib/lib/Geo/Mirror.pm line 21.
BEGIN failed--compilation aborted at t/3_mirror.t line 10.
dubious
Test returned status 255 (wstat 65280, 0xff00)
Undefined subroutine &Test::Harness::WCOREDUMP called
at /usr/lib/perl5/5.00503/Test/Harness.pm line 288.
make: *** [test_dynamic] Error 255

I am trying to test this software and see how it works
I am interested in purchasing the License for more
accurate details.

Thank you.

Discussion