shptosvg
shptosvg copied to clipboard
Installing Geo::Proj4
This isn't an issue directly with your package but I was hoping you might have some knowledge of how to resolve it anyway. I'm running Ubuntu 12.10.
When installing Geo::Proj4 via cpanm I get the following in the log:
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.57_05)
Building and testing Geo-Proj4-1.05
cp lib/Geo/Proj4.pm blib/lib/Geo/Proj4.pm
cp lib/Geo/Proj4.pod blib/lib/Geo/Proj4.pod
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap Proj4.xs > Proj4.xsc && mv Proj4.xsc Proj4.c
cc -c -I. -I./include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector - fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -fPIC "-I/usr/lib/perl/5.14/CORE" Proj4.c
Proj4.xs:7:22: fatal error: projects.h: No such file or directory
compilation terminated.
make: *** [Proj4.o] Error 1
I've installed Proj4 from the source available on their trac page linked in your readme (running ./configure then make then make install) but still get this error.
Do you have any knowledge of how this could be resolved?
Better late than never... except I don't have the answer. Thinking it's a missing devel pkg for proj4 (or libproj4?) that the CPAN module depends on.
I ran into the same error (somewhat), trying to install Geo::Proj4 within "cpan", and the guess from @kbh3rd helped me. Executing :
sudo apt-get install libproj-dev
before
install Geo::Proj4 (in cpan)
worked for me