linux - How to install rgdal and rgeos package in R on university high performance computing system? -
i have been installing r packages tar.gz type files on edinburgh university's compute , data facility high performance computing cluster accessed via ssh. once logged in, can install files example below:
install.packages("/exports/work/eng_antonyhydrodata/pkges/deoptim_2.2-3.tar.gz",rpeo=null,target="source")
there approximately 40 packages , 38 of them install no problem, 2 fail: rgeos (rgeos_0.3-14.tar.gz) , rgdal (rgdal_1.0-7.tar.gz).
the reason failure given below:
installing package '/exports/work/eng_antonyhydrodata/library' (as 'lib' unspecified) inferring 'repos = null' 'pkgs' * installing *source* package 'rgdal' ... ** package 'rgdal' unpacked , md5 sums checked configure: cc: gcc -std=gnu99 configure: cxx: g++ configure: rgdal: 1.0-5 checking /usr/bin/svnversion... yes configure: svn revision: 559 checking gdal-config... no no configure: error: gdal-config not found or not executable. error: configuration failed package 'rgdal'
note rgeos gives same reason i.e. gdal-config missing.
i have looked around net , have found various answers problem suggests install libgeos-dev or similar using command 'sudo' or 'apt-get' neither of these commands recognised computing cluster system.
any in getting rgeos , rgdal work appreciated.
antony
i managed solve first installing geos-3.5.0.tar.bz2 package , issuing following linux commands:
tar xjvf geos-3.5.0.tar.bz2 cd geos-3.5.0 ./configure --help mkdir /exports/work/.... ./configure --help, ./configure --prefix=eng_a... --enable-python make make check make install
and similar rgdal
Comments
Post a Comment