tangent has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install DBD::Spatialite using cpan but I keep getting the error:

"The module DBD::Spatialite isn't available on CPAN. Either the module has not yet been uploaded to CPAN, or it is temporary unavailable."

It does seem to be on CPAN (see here) though not on metacpan. When I switch to cpanm it does find it:

Searching DBD::Spatialite on cpanmetadb ... -> FAIL Finding DBD::Spatialite on cpanmetadb failed. Searching DBD::Spatialite on search.cpan.org ... --> Working on DBD::Spatialite

That's as far as cpanm gets though as it then runs into the same problems as manual install. When I try to install manually Makefile.PL fails to find the C libraries required. I suspect this is because the libraries are in the /opt/local/ directory:

OS unsupported - GEOS libraries could not be found. Please install GE +OS, or else specify where it can be found via the CC_LIBPATH and CC_I +NCPATH parameters.

So I'm wondering how do I specify the correct path? I have tried a few like:

perl Makefile.PL CC_LIBPATH=-I/opt/local/lib CC_INCPATH=-I/opt/local/i +nclude
But no joy. Thanks for any help.

Replies are listed 'Best First'.
Re: Problem installing DBD::Spatialite from CPAN
by Anonymous Monk on May 29, 2013 at 03:56 UTC