I am currently running some species distribution modelling and richness mapping in R on a linux cluster. In order to run my analyses I need to install rgdal so that the raster function in my modelling package works correctly. I have installed proj4 and gdal already. However when I attempt to install rgdal I get an error message:
checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package 'rgdal'
This is the command I used to install rgdal package:
install.packages("rgdal", configure.args=c("--with-proj-include=/home/nikhail1/bin/proj-4.9.2/bin", "--with-proj-lib=/home/nikhail1/bin/proj-4.9,2/lib"))
However despite the gdal-config error, gdal seems to be installed onto my local system (the binary and library folders are present in the address to which I installed them). I also did not see any error messages during the gdal installation process. Why is this error occurring? How do I get R to recognize that this dependency is installed, or indeed if there is a problem how do I identify it? Most of the solutions I have found online are specific to Debian and Ubuntu systems which I am not using. I do not have authority to use sudo apt-get or yum commands. Are there any dependencies of gdal I am missing, as I have only installed proj 4.9.2?
I am new to the linux system, and the rgdal and gdal packages.
Thank you very much for you assistance
Kind Regards,
Nikhail