Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Geo-IP CPAN distribution.

Report information
The Basics
Id: 49532
Status: rejected
Priority: 0/
Queue: Geo-IP

People
Owner: Nobody in particular
Requestors: shovas [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: GEOIP_PP_ONLY BEGIN{} is very inconvenient
Date: Tue, 8 Sep 2009 16:48:55 -0400
To: bug-Geo-IP [...] rt.cpan.org
From: Matthew Gallant <shovas [...] gmail.com>
The performance of PP Geo::IP is satisfactory for me and in my case it's preferred not to install system libraries. I really think PP mode should be transparent instead of having to do BEGIN{} and set PP_ONLY? PS. Thanks for the great work -- Consultant; Profile and Portfolio Selah.ca
Hi Matthew, the PP mode is transparent, as long as you have not installed the CAPI before. Have a nice day! On Di. 08. Sep. 2009, 16:49:22, shovas@gmail.com wrote: Show quoted text
> The performance of PP Geo::IP is satisfactory for me and in my case > it's preferred not to install system libraries. > > I really think PP mode should be transparent instead of having to do > BEGIN{} and set PP_ONLY? > > PS. Thanks for the great work >
-- Boris
Subject: Re: [rt.cpan.org #49532] GEOIP_PP_ONLY BEGIN{} is very inconvenient
Date: Tue, 8 Sep 2009 17:29:39 -0400
To: bug-Geo-IP [...] rt.cpan.org
From: Matthew Gallant <shovas [...] gmail.com>
Show quoted text
> the PP mode is transparent, as long as you have not installed the CAPI before.
Thanks for the quick reply. I don't have any Geo-IP C libs installed that I can tell (`locate geo`). I moved over to Geo::IP::PurePerl which I hadn't seen before and now the only issue is that Sys::Mmap which must be installed or else I get a die() crash.
Subject: Re: [rt.cpan.org #49532] GEOIP_PP_ONLY BEGIN{} is very inconvenient
Date: Tue, 8 Sep 2009 23:43:15 +0200
To: bug-Geo-IP [...] rt.cpan.org
From: Boris Zentner <bzm [...] 2bz.de>
Hmm, I guess it is a centos issue. Have you installed Geo::IP yourself? With perl Makefile.PL PP=1 after the big warning, that you use the slow fallback code? The GeoIP CAPI is not installed you should do that. Otherwise try perl Makefile.PL PP=1 to install this module anyway. It uses a slower pure perl version and you can rebuid it later. GeoIP must be installed prior to building Geo::IP and I can't find it in the standard library directories. You can download GeoIP C API from: http://www.maxmind.com/app/c If GeoIP is installed, but in a non-standard directory, then use the following options to Makefile.PL: perl Makefile.PL LIBS='-L/home/me/lib' INC='-I/home/me/include' Note that if you build against a shareable library in a non-standard location you may (on some platforms) also have to set your LD_LIBRARY_PATH environment variable at run time for perl to find the library. If you installed the GeoIP C libraries to the /usr/local/lib directory, then you may need to add /usr/local/lib to /etc/ld.so.conf then run /sbin/ldconfig /etc/ld.so.conf Am 08.09.2009 um 23:29 schrieb Matthew Gallant via RT: Show quoted text
> Queue: Geo-IP > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=49532 > >
>> the PP mode is transparent, as long as you have not installed the >> CAPI before.
> > Thanks for the quick reply. I don't have any Geo-IP C libs installed > that I can tell (`locate geo`). > > I moved over to Geo::IP::PurePerl which I hadn't seen before and now > the only issue is that Sys::Mmap which must be installed or else I get > a die() crash. >
-- Boris
Subject: Re: [rt.cpan.org #49532] GEOIP_PP_ONLY BEGIN{} is very inconvenient
Date: Tue, 8 Sep 2009 17:56:49 -0400
To: bug-Geo-IP [...] rt.cpan.org
From: Matthew Gallant <shovas [...] gmail.com>
Show quoted text
> I guess it is a centos issue.
I'm beginning to think it is a centos issue as well. Also, only seems to happen in modperl. Show quoted text
> Have you installed Geo::IP yourself? With > > perl Makefile.PL PP=1
Yes, this is how I installed it. Thanks for the help anyway. My solution is Geo::IP::PurePerl + Sys::Mmap.
Subject: Re: [rt.cpan.org #49532] GEOIP_PP_ONLY BEGIN{} is very inconvenient
Date: Wed, 9 Sep 2009 00:09:14 +0200
To: bug-Geo-IP [...] rt.cpan.org
From: Boris Zentner <bzm [...] 2bz.de>
Hi Matthew, I would use Geo::IP and Sys::Mmap. Geo::IP handle all corner cases exactly like Geo::IP and the CAPI. There is no need to change a single line, when you switch forward to the CAPI. Am 08.09.2009 um 23:57 schrieb Matthew Gallant via RT: Show quoted text
> Queue: Geo-IP > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=49532 > >
>> I guess it is a centos issue.
> > I'm beginning to think it is a centos issue as well. Also, only seems > to happen in modperl. >
>> Have you installed Geo::IP yourself? With >> >> perl Makefile.PL PP=1
> > Yes, this is how I installed it. > > Thanks for the help anyway. > > My solution is Geo::IP::PurePerl + Sys::Mmap. >
-- Boris
Subject: Re: [rt.cpan.org #49532] GEOIP_PP_ONLY BEGIN{} is very inconvenient
Date: Tue, 8 Sep 2009 18:15:27 -0400
To: bug-Geo-IP [...] rt.cpan.org
From: Matthew Gallant <shovas [...] gmail.com>
One other question, why is Sys::Mmap required?
Subject: Re: [rt.cpan.org #49532] GEOIP_PP_ONLY BEGIN{} is very inconvenient
Date: Wed, 9 Sep 2009 00:25:33 +0200
To: bug-Geo-IP [...] rt.cpan.org
From: Boris Zentner <bzm [...] 2bz.de>
Hi Matthew, it is not required, it is optional in both, Geo::IP and Geo::IP::PurePerl. This line should not issue a warning, but it seems it does under your modperl. perl -e 'use strict;use warnings;eval "require Sys::Mmap"' Please email me directly, I have to delete/close all the mails in cpan's complicated bug tracker. Am 09.09.2009 um 00:15 schrieb Matthew Gallant via RT: Show quoted text
> Queue: Geo-IP > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49532 > > > One other question, why is Sys::Mmap required? >
-- Boris
I am closing this as I believe it is a CentOS packaging issue.