proj_api.h not found in standard or given locations
0
1
Entering edit mode
5.4 years ago
xiaoguang ▴ 160

When I install R package "sf", I always meet this error:

configure: error: proj_api.h not found in standard or given locations."

Actually, I have "proj_api.h" in my miniconda3 includ dir and "proj_api.so"in lib dir, but it continue give me an error?

R miniconda • 3.3k views
ADD COMMENT
0
Entering edit mode

I do not know if it helps in your case but explicitely setting the following three paths in ~/.bashrc helped me getting rid of these kinds of errors:

export LDFLAGS="-L$HOME/pathto/anaconda3/lib"
export CFLAGS="-I$HOME/pathto/anaconda3/include"
export CPATH="$HOME/pathto/anaconda3/include"
ADD REPLY
0
Entering edit mode

Thank you very much, I know what's wrong with me. I have not installed proj.4.

ADD REPLY

Login before adding your answer.

Traffic: 1864 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6