Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing Geo::Proj4 #2

Open
M1ke opened this issue Jul 9, 2014 · 2 comments
Open

Installing Geo::Proj4 #2

M1ke opened this issue Jul 9, 2014 · 2 comments

Comments

@M1ke
Copy link

M1ke commented Jul 9, 2014

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?

@kbh3rd
Copy link
Owner

kbh3rd commented Jun 5, 2015

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.

@HellMood
Copy link

HellMood commented Aug 4, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants