3

I am trying to install rgdal on a Linux cluster, but am running into some issues. I have successfully installed gdal and proj4, but when I try to build rgdal, I receive the message that "proj_api.h not found in standard or given locations". proj_api.h is located at /bin/proj4/include/proj_api.h. I have added the path to $PATH, however I still can't compile it.

How can I specify the path so that I can install rgdal?

3

I modified my code to provide links to proj_api.h. Here it is.

install.packages("rgdal",lib="./R_Packages",method="curl", configure.args = c("--with-proj-include=/p/home/bin/proj4/include","--with-proj-lib=/p/home/bin/proj4/lib"))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.