Skip Menu |

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

Report information
The Basics
Id: 64699
Status: resolved
Priority: 0/
Queue: Geo-Postcode

People
Owner: Nobody in particular
Requestors: MSTEVENS [...] cpan.org
Cc: michael.smith [...] dianomi.com
michael.stevens [...] dianomi.com
AdminCc:

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



CC: michael.stevens [...] dianomi.com,michael.smith [...] dianomi.com
Subject: Install fails on 5.12.2
Unable to install on perl 5.12.2 with CPAN: CPAN.pm: Going to build W/WR/WROSS/Geo-Postcode-0.15.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Geo::Postcode cp lib/Geo/Postcode.pm blib/lib/Geo/Postcode.pm cp lib/Geo/Postcode/Location.pm blib/lib/Geo/Postcode/Location.pm Manifying blib/man3/Geo::Postcode.3 Manifying blib/man3/Geo::Postcode::Location.3 WROSS/Geo-Postcode-0.15.tar.gz /usr/bin/make -- OK Running make test perl ./postcodedata/makesqlite.pl building default postcode data store sample data found install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at (eval 3) line 3. Perhaps the DBD::SQLite perl module hasn't been fully installed, or perhaps the capitalisation of 'SQLite' isn't right. Available drivers: DBM, ExampleP, File, Proxy, Sponge. at ./postcodedata/makesqlite.pl line 20 make: *** [locationdata] Error 2 WROSS/Geo-Postcode-0.15.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports WROSS/Geo-Postcode-0.15.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: WROSS/Geo-Postcode-0.15.tar.gz : make_test NO cpan[3]> Lockfile removed. [root@303646-web1 perl-5.12.2]# [root@303646-web1 perl-5.12.2]# /opt/dianomi/perl/bin/cpan cpan shell -- CPAN exploration and modules installation (v1.9456) Enter 'h' for help. cpan[1]> install DBD::SQLite Going to read '/root/.cpan/Metadata' Database was generated on Mon, 10 Jan 2011 22:37:39 GMT DBD::SQLite is up to date (1.31). cpan[2]> Perl is: Summary of my perl5 (revision 5 version 12 subversion 2) configuration: Platform: osname=linux, osvers=2.6.18-194.26.1.el5, archname=x86_64-linux uname='linux 303646-web1.dianomi.co.uk 2.6.18-194.26.1.el5 #1 smp fri oct 29 14:21:16 edt 2010 x86_64 x86_64 x86_64 gnulinux ' config_args='-des -Dprefix=/opt/dianomi/perl -Accflags=-fPIC' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fPIC -fno-strict-aliasing -pipe -fstack- protector -I/usr/local/include -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fPIC -fno-strict-aliasing -pipe -fstack-protector - I/usr/local/include' ccversion='', gccversion='4.1.2 20080704 (Red Hat 4.1.2-48)', 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='cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64 libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack- protector' Characteristics of this binary (from libperl): Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF Built under linux Compiled at Jan 11 2011 13:45:15 @INC: /opt/dianomi/perl/lib/site_perl/5.12.2/x86_64-linux /opt/dianomi/perl/lib/site_perl/5.12.2 /opt/dianomi/perl/lib/5.12.2/x86_64-linux /opt/dianomi/perl/lib/5.12.2 .
From: llap [...] cuckoo.org
On Tue Jan 11 12:06:41 2011, MSTEVENS wrote: Show quoted text
> Unable to install on perl 5.12.2 with CPAN: > > > CPAN.pm: Going to build W/WR/WROSS/Geo-Postcode-0.15.tar.gz > > Checking if your kit is complete... > Looks good > Writing Makefile for Geo::Postcode > cp lib/Geo/Postcode.pm blib/lib/Geo/Postcode.pm > cp lib/Geo/Postcode/Location.pm blib/lib/Geo/Postcode/Location.pm > Manifying blib/man3/Geo::Postcode.3 > Manifying blib/man3/Geo::Postcode::Location.3 > WROSS/Geo-Postcode-0.15.tar.gz > /usr/bin/make -- OK > Running make test > perl ./postcodedata/makesqlite.pl > building default postcode data store > sample data found > install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC > (@INC > contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl > /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 > .) > at (eval 3) line 3. > Perhaps the DBD::SQLite perl module hasn't been fully installed, > or perhaps the capitalisation of 'SQLite' isn't right. > Available drivers: DBM, ExampleP, File, Proxy, Sponge. > at ./postcodedata/makesqlite.pl line 20 > make: *** [locationdata] Error 2 > WROSS/Geo-Postcode-0.15.tar.gz > /usr/bin/make test -- NOT OK > //hint// to see the cpan-testers results for installing this module, > try: > reports WROSS/Geo-Postcode-0.15.tar.gz > Running make install > make test had returned bad status, won't install without force > Failed during this command: > WROSS/Geo-Postcode-0.15.tar.gz : make_test NO > > > cpan[3]> Lockfile removed. > [root@303646-web1 perl-5.12.2]# > [root@303646-web1 perl-5.12.2]# /opt/dianomi/perl/bin/cpan > > cpan shell -- CPAN exploration and modules installation (v1.9456) > Enter 'h' for help. > > > cpan[1]> install DBD::SQLite > Going to read '/root/.cpan/Metadata' > Database was generated on Mon, 10 Jan 2011 22:37:39 GMT > DBD::SQLite is up to date (1.31). > > > cpan[2]> > > Perl is: > > > Summary of my perl5 (revision 5 version 12 subversion 2) > configuration: > > Platform: > osname=linux, osvers=2.6.18-194.26.1.el5, archname=x86_64-linux > uname='linux 303646-web1.dianomi.co.uk 2.6.18-194.26.1.el5 #1 smp > fri oct 29 14:21:16 edt 2010 x86_64 x86_64 x86_64 gnulinux ' > config_args='-des -Dprefix=/opt/dianomi/perl -Accflags=-fPIC' > hint=recommended, useposix=true, d_sigaction=define > useithreads=undef, usemultiplicity=undef > useperlio=define, d_sfio=undef, uselargefiles=define, > usesocks=undef > use64bitint=define, use64bitall=define, uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='cc', ccflags ='-fPIC -fno-strict-aliasing -pipe -fstack- > protector -I/usr/local/include -D_LARGEFILE_SOURCE - > D_FILE_OFFSET_BITS=64', > optimize='-O2', > cppflags='-fPIC -fno-strict-aliasing -pipe -fstack-protector - > I/usr/local/include' > ccversion='', gccversion='4.1.2 20080704 (Red Hat 4.1.2-48)', > 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='cc', ldflags =' -fstack-protector -L/usr/local/lib' > libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 > /usr/local/lib64 > libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc > perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc > libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a > gnulibc_version='2.5' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' > cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib > -fstack- > protector' > > > Characteristics of this binary (from libperl): > Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP > USE_64_BIT_ALL > USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO > USE_PERL_ATOF > Built under linux > Compiled at Jan 11 2011 13:45:15 > @INC: > /opt/dianomi/perl/lib/site_perl/5.12.2/x86_64-linux > /opt/dianomi/perl/lib/site_perl/5.12.2 > /opt/dianomi/perl/lib/5.12.2/x86_64-linux > /opt/dianomi/perl/lib/5.12.2 > .
From: llap [...] cuckoo.org
Sorry for double post - was trying to 'resolve' but can't find the button. Anyway... I think this is a problem with your Perl setup not with Geo::Postcode... On Tue Jan 11 12:06:41 2011, MSTEVENS wrote: Show quoted text
> Unable to install on perl 5.12.2 with CPAN: > > CPAN.pm: Going to build W/WR/WROSS/Geo-Postcode-0.15.tar.gz > > Checking if your kit is complete... > Looks good > Writing Makefile for Geo::Postcode > cp lib/Geo/Postcode.pm blib/lib/Geo/Postcode.pm > cp lib/Geo/Postcode/Location.pm blib/lib/Geo/Postcode/Location.pm > Manifying blib/man3/Geo::Postcode.3 > Manifying blib/man3/Geo::Postcode::Location.3 > WROSS/Geo-Postcode-0.15.tar.gz > /usr/bin/make -- OK > Running make test > perl ./postcodedata/makesqlite.pl > building default postcode data store > sample data found > install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC > (@INC > contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl > /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 > .)
Your installer is looking in the wrong place: install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) - You do not have a 5.12.2 lib path in there - which is where I'm guessing DBI::SQLite is? I think that needs to be resolved first?
Thanks, I'll investigate.
RT-Send-CC: michael.stevens [...] dianomi.com, michael.smith [...] dianomi.com
On Tue Jan 11 12:26:53 2011, llap@cuckoo.org wrote: Show quoted text
> Sorry for double post - was trying to 'resolve' but can't find the > button. > > Anyway... I think this is a problem with your Perl setup not with > Geo::Postcode... > > On Tue Jan 11 12:06:41 2011, MSTEVENS wrote:
> > Unable to install on perl 5.12.2 with CPAN: > > > > CPAN.pm: Going to build W/WR/WROSS/Geo-Postcode-0.15.tar.gz > > > > Checking if your kit is complete... > > Looks good > > Writing Makefile for Geo::Postcode > > cp lib/Geo/Postcode.pm blib/lib/Geo/Postcode.pm > > cp lib/Geo/Postcode/Location.pm blib/lib/Geo/Postcode/Location.pm > > Manifying blib/man3/Geo::Postcode.3 > > Manifying blib/man3/Geo::Postcode::Location.3 > > WROSS/Geo-Postcode-0.15.tar.gz > > /usr/bin/make -- OK > > Running make test > > perl ./postcodedata/makesqlite.pl > > building default postcode data store > > sample data found > > install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC > > (@INC > > contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi > > /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl > > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi > > /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl > > /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/5.8.8
> > .)
> > > Your installer is looking in the wrong place: > > install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC > (@INC > contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl > /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 > .) > > - You do not have a 5.12.2 lib path in there - which is where I'm > guessing DBI::SQLite is? > > I think that needs to be resolved first?
Looking I think it could be because my perl isn't installed in /usr/bin/perl and the path is hardcoded in postcodedata/makesqlite.pl ?
Subject: Re: [rt.cpan.org #64699] Install fails on 5.12.2
Date: Tue, 11 Jan 2011 17:49:12 +0000
To: bug-Geo-Postcode [...] rt.cpan.org
From: Leo Lapworth <leo [...] cuckoo.org>
On 11 January 2011 17:42, Michael Stevens via RT < bug-Geo-Postcode@rt.cpan.org> wrote: Show quoted text
> > Looking I think it could be because my perl isn't installed in > /usr/bin/perl and the path is hardcoded in postcodedata/makesqlite.pl ? >
Ok - yep - that seems restrictive. I know I've had this conversation before, but I don't think there is an ideal solution, maybe: #!/usr/bin/env perl Would that have worked for you? I don't know what this does for Windows but? Leo
On Tue Jan 11 12:49:45 2011, leo@cuckoo.org wrote: Show quoted text
> On 11 January 2011 17:42, Michael Stevens via RT < > bug-Geo-Postcode@rt.cpan.org> wrote:
> > > > Looking I think it could be because my perl isn't installed in > > /usr/bin/perl and the path is hardcoded in
postcodedata/makesqlite.pl ? Show quoted text
> >
> > Ok - yep - that seems restrictive. > > I know I've had this conversation before, but I don't think there is
an Show quoted text
> ideal solution, maybe: > > #!/usr/bin/env perl > > Would that have worked for you? > > I don't know what this does for Windows but? > > Leo
I'd have to google a bit to check, but I think there's a way to get MakeMaker to rewrite scripts with the path of the running perl.
Subject: Re: [rt.cpan.org #64699] Install fails on 5.12.2
Date: Tue, 11 Jan 2011 17:56:39 +0000
To: bug-Geo-Postcode [...] rt.cpan.org
From: Leo Lapworth <leo [...] cuckoo.org>
On 11 January 2011 17:53, Michael Stevens via RT < bug-Geo-Postcode@rt.cpan.org> wrote: Show quoted text
> Queue: Geo-Postcode > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=64699 > > > On Tue Jan 11 12:49:45 2011, leo@cuckoo.org wrote:
> > On 11 January 2011 17:42, Michael Stevens via RT < > > bug-Geo-Postcode@rt.cpan.org> wrote:
> > > > > > Looking I think it could be because my perl isn't installed in > > > /usr/bin/perl and the path is hardcoded in
> postcodedata/makesqlite.pl ?
> > >
> > > > Ok - yep - that seems restrictive. > > > > I know I've had this conversation before, but I don't think there is
> an
> > ideal solution, maybe: > > > > #!/usr/bin/env perl > > > > Would that have worked for you? > > > > I don't know what this does for Windows but? > > > > Leo
> > I'd have to google a bit to check, but I think there's a way to get > MakeMaker to rewrite scripts with the path of the running perl. >
https://github.com/ranguard/Geo-Postcode A pull request/patch would be appreciated :) (I've been meaning to start hacking on this so this will at least force me to update the docs about sources of Postcode data)! Leo
Sent a pull request with some hackery, let me know what you think.
From: llap [...] cuckoo.org
On Wed Jan 12 07:11:04 2011, MSTEVENS wrote: Show quoted text
> Sent a pull request with some hackery, let me know what you think.
Version 0.16 on it's way to CPAN with your patches - thanks. Please close this ticket (I don't have access for some reason)
RT-Send-CC: llap [...] cuckoo.org, michael.stevens [...] dianomi.com, michael.smith [...] dianomi.com, leo [...] cuckoo.org
I've closed it. RT must be lagging behind on the authorisation. I'm very glad to see this coming to life. Do let me know if I can help. will