[R] Installing rgdal and rjags packages on a linux cluster
Adam Zeilinger
arz at berkeley.edu
Thu Jul 10 00:08:48 CEST 2014
Dear R Help,
I'm trying to install the rjags and rgdal packages on a linux cluster
running R 3.0.3. However, I'm having problems installing them
successfully. Both packages require external programs (JAGS and GDAL,
respectively), which have been successfully installed.
For rjags, the error message reads:
"configure: error: "Location of JAGS headers not defined. Use configure
arg '--with-jags-include' or environment variable 'JAGS_INCLUDE'""
I tried the following:
> install.packages("rjags", configure.args = list("--with-jags-include"))
This returns a different error:
"configure: error: "Problem with header file yes/Console.h""
From my readings of various help pages, it seems that I need to
download the developer version of the rjags package, in order to supply
the header files. Is this correct? If so, where do I find developer
packages and how do I install them? R package development is new to me.
For rgdal, the error message reads:
"Error: gdal-config not found
The gdal-config script distributed with GDAL could not be found."
Here, it's my understanding that I need to install PROJ.4 libraries and
the developer versions of the rgdal and proj4 packages. Is this correct?
Are the problems with installing rjags and rgdal basically the same?
Could the problems be caused by running an older version of R?
Any help would be greatly appreciated.
Adam Zeilinger
--
Adam Zeilinger
Postdoctoral scholar
Berkeley Initiative for Global Change Biology
University of California Berkeley
http://www.linkedin.com/in/adamzeilinger/
More information about the R-help
mailing list