-
Notifications
You must be signed in to change notification settings - Fork 3
Home
This module is not compatible with newer release of libproj: it only supports version 4, which has been around for about 25 years. Since version 5 (2018), libproj has totally redesigned its interface. This is good for performance, this is good for the quality of the results... but the death of Geo::Proj4 and some of its derived modules.
When you have to port legacy code to systems which come with a newer version of the proj library can still install proj4 by hand.
I downgraded the installed libproj library version to 'proj4', which was still provided. Then simply
cpan install Geo::Proj4
After that, I installed the newest libproj version as parallel install, is supported for that package.
Description contributed by Roberto Bianconi. I hope this works for you as well. Please contribute alternative methods.
# This will install libproj5, which is incompatible
apt-get install libgdal-perl gdal-bin
gdalinfo --help
apt install subversion unzip
cd /usr/local/src
svn co http://svn.osgeo.org/metacrs/proj/branches/4.8/proj/
wget http://download.osgeo.org/proj/proj-datumgrid-1.5.zip
mv proj-datumgrid-1.5.zip /usr/local/src/proj/nad
cd /usr/local/src/proj/nad
unzip proj-datumgrid-1.5.zip
cd /usr/local/src/proj
./configure && make && make install
ldconfig
perl -MCPAN -e shell
cpan[1]> look Geo::Proj4
vi Makefile.PL
# add: , INC => "-I. -I/usr/local/src/proj/src"
perl Makefile.PL
make install
exit
cpan[2]> exit
perl -e "use Geo::Proj4;" # Works!!!