简体   繁体   中英

i am using R in Docker . But having error in running libraries

I am using R in docker. I have install libraries in docker by using docker hub.but failed. Below is the error i am facing

Error: package or namespace load failed for ‘geojsonio’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/usr/local/lib/R/site-library/rgeos/libs/rgeos.so':
  libgeos_c.so.1: cannot open shared object file: No such file or directory

That package has a lot of Linux library dependencies which probably aren't in the image. You can install them by adding these install commands to your Dockerfile.

apt-get install -y libcurl4-openssl-dev \
libssl-dev \
libjq-dev \
libprotobuf-dev \
protobuf-compiler \
make \
libgeos-dev \
libudunits2-dev \
libgdal-dev \
gdal-bin \
libproj-dev \
libv8-dev

You can find that information at https://packagemanager.rstudio.com/client/#/repos/2/packages/geojsonio

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM