[R-sig-Geo] rgdal install problems in a module environment
Anderson, Richard O - (ric)
r|c @end|ng |rom em@||@@r|zon@@edu
Fri Oct 25 17:59:35 CEST 2019
When various applications are split into modules (RHEL/CentOS environment-modules package), such that
module load R proj gdal
is needed to make those applications and their pkg-config files available, the R
install.packages(‘rgdal’)
fails because it assumes proj and gdal are in the same place, and omits the -L… link option for proj’s library path.
An easy workaround until this is fixed is
export proj_lib_path=`pkg-config proj --libs | awk '{print $1}'`
before you start R, then “install.packages(‘rgdal’)” works as expected.
The author of the package is working on a real fix, so this workaround may not be needed for long.
Cheers,
Ric
--
Ric Anderson| Systems Administrator [Description: Description: Description: Description: Description: Description: Description: http://redbar.web.arizona.edu/logos/images/thumb_pawprints.gif]
Research And Discovery Tech | HPC Large Systems Support
XSEDE Campus Champion
ric using email.arizona.edu<mailto:Ric using email.arizona.edu> (V): +1-520-626-1642
[cid:image005.png using 01D01593.CF7DFA60]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20191025/bc5c5193/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 823 bytes
Desc: image001.png
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20191025/bc5c5193/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 3497 bytes
Desc: image002.png
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20191025/bc5c5193/attachment-0001.png>
More information about the R-sig-Geo
mailing list