Skip to content

Instantly share code, notes, and snippets.

@jimhester
Created May 15, 2020 13:16
Show Gist options
  • Save jimhester/6acd1f30874c5a6246a1a750ae88bd40 to your computer and use it in GitHub Desktop.
Save jimhester/6acd1f30874c5a6246a1a750ae88bd40 to your computer and use it in GitHub Desktop.
R package binary issue
FROM rstudio/r-base:3.6.3-bionic
RUN apt-get -qq update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common && \
add-apt-repository -y ppa:ubuntugis/ppa
Run apt-get install -y software-properties-common && \
add-apt-repository -y ppa:ubuntugis/ppa && \
apt-get update && \
apt-get install -y libgdal-dev && \
apt-get install -y gdal-bin && \
apt-get install -y libgeos-dev && \
apt-get install -y libproj-dev && \
apt-get install -y libudunits2-dev && \
apt-get clean
RUN echo 'options(repos = c(RSPM = "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest", CRAN = "https://cloud.r-project.org"), HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version$platform, R.version$arch, R.version$os)))' >> ~/.Rprofile
RUN R -e 'install.packages("sf")' -e 'library(sf)'
root@8a4b706c47cb:/opt/R/3.6.3/lib/R/library/sf/libs# ldd sf.so
linux-vdso.so.1 (0x00007ffecfb84000)
libproj.so.12 => not found
libgdal.so.20 => /usr/lib/libgdal.so.20 (0x00007f2ccfa42000)
libgeos_c.so.1 => /usr/lib/x86_64-linux-gnu/libgeos_c.so.1 (0x00007f2ccf811000)
libR.so => not found
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2ccf488000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2ccf0ea000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2cceed2000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2cceae1000)
libproj.so.13 => /usr/lib/x86_64-linux-gnu/libproj.so.13 (0x00007f2cce86c000)
libpoppler.so.73 => /usr/lib/x86_64-linux-gnu/libpoppler.so.73 (0x00007f2cce3d6000)
libjson-c.so.3 => /lib/x86_64-linux-gnu/libjson-c.so.3 (0x00007f2cce1cb000)
libfreexl.so.1 => /usr/lib/x86_64-linux-gnu/libfreexl.so.1 (0x00007f2ccdfc2000)
libqhull.so.7 => /usr/lib/x86_64-linux-gnu/libqhull.so.7 (0x00007f2ccdd68000)
libwebp.so.6 => /usr/lib/x86_64-linux-gnu/libwebp.so.6 (0x00007f2ccdaff000)
libepsilon.so.1 => /usr/lib/x86_64-linux-gnu/libepsilon.so.1 (0x00007f2ccd8e7000)
libodbc.so.2 => /usr/lib/x86_64-linux-gnu/libodbc.so.2 (0x00007f2ccd67a000)
libodbcinst.so.2 => /usr/lib/x86_64-linux-gnu/libodbcinst.so.2 (0x00007f2ccd465000)
libkmlbase.so.1 => /usr/lib/x86_64-linux-gnu/libkmlbase.so.1 (0x00007f2ccd24a000)
libkmldom.so.1 => /usr/lib/x86_64-linux-gnu/libkmldom.so.1 (0x00007f2cccf93000)
libkmlengine.so.1 => /usr/lib/x86_64-linux-gnu/libkmlengine.so.1 (0x00007f2cccd5b000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f2cccb29000)
libxerces-c-3.2.so => /usr/lib/x86_64-linux-gnu/libxerces-c-3.2.so (0x00007f2ccc5b5000)
libopenjp2.so.7 => /usr/lib/x86_64-linux-gnu/libopenjp2.so.7 (0x00007f2ccc35f000)
libnetcdf.so.13 => /usr/lib/x86_64-linux-gnu/libnetcdf.so.13 (0x00007f2ccc03d000)
libhdf5_serial.so.100 => /usr/lib/x86_64-linux-gnu/libhdf5_serial.so.100 (0x00007f2ccbae5000)
libmfhdfalt.so.0 => /usr/lib/libmfhdfalt.so.0 (0x00007f2ccb8bf000)
libdfalt.so.0 => /usr/lib/libdfalt.so.0 (0x00007f2ccb61c000)
libogdi.so.4.1 => /usr/lib/libogdi.so.4.1 (0x00007f2ccb402000)
libgif.so.7 => /usr/lib/x86_64-linux-gnu/libgif.so.7 (0x00007f2ccb1f9000)
libCharLS.so.1 => /usr/lib/x86_64-linux-gnu/libCharLS.so.1 (0x00007f2ccafb2000)
libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f2ccad4a000)
libgeotiff.so.2 => /usr/lib/x86_64-linux-gnu/libgeotiff.so.2 (0x00007f2ccab14000)
libtiff.so.5 => /usr/lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f2cca89d000)
libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f2cca66b000)
libpq.so.5 => /usr/lib/x86_64-linux-gnu/libpq.so.5 (0x00007f2cca422000)
libdapclient.so.6 => /usr/lib/x86_64-linux-gnu/libdapclient.so.6 (0x00007f2cca1e1000)
libdap.so.25 => /usr/lib/x86_64-linux-gnu/libdap.so.25 (0x00007f2cc9e51000)
libspatialite.so.7 => /usr/lib/x86_64-linux-gnu/libspatialite.so.7 (0x00007f2cc96d6000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f2cc9464000)
libcurl-gnutls.so.4 => /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 (0x00007f2cc91e7000)
libfyba.so.0 => /usr/lib/x86_64-linux-gnu/libfyba.so.0 (0x00007f2cc8f92000)
libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f2cc8bd1000)
libmysqlclient.so.20 => /usr/lib/x86_64-linux-gnu/libmysqlclient.so.20 (0x00007f2cc8619000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2cc83fa000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2cc81dd000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2cc7fd9000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2cd1146000)
libgeos-3.7.1.so => /usr/lib/x86_64-linux-gnu/libgeos-3.7.1.so (0x00007f2cc7c36000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f2cc7982000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f2cc773d000)
libnss3.so => /usr/lib/x86_64-linux-gnu/libnss3.so (0x00007f2cc73f9000)
libsmime3.so => /usr/lib/x86_64-linux-gnu/libsmime3.so (0x00007f2cc71cd000)
libnspr4.so => /usr/lib/x86_64-linux-gnu/libnspr4.so (0x00007f2cc6f90000)
liblcms2.so.2 => /usr/lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007f2cc6d38000)
libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f2cc6b2e000)
libminizip.so.1 => /usr/lib/x86_64-linux-gnu/libminizip.so.1 (0x00007f2cc6923000)
liburiparser.so.1 => /usr/lib/x86_64-linux-gnu/liburiparser.so.1 (0x00007f2cc6708000)
libicuuc.so.60 => /usr/lib/x86_64-linux-gnu/libicuuc.so.60 (0x00007f2cc6350000)
libhdf5_serial_hl.so.100 => /usr/lib/x86_64-linux-gnu/libhdf5_serial_hl.so.100 (0x00007f2cc612d000)
libsz.so.2 => /usr/lib/x86_64-linux-gnu/libsz.so.2 (0x00007f2cc5f2a000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f2cc5d04000)
libjbig.so.0 => /usr/lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f2cc5af6000)
libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f2cc5869000)
libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f2cc539e000)
libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f2cc5153000)
libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f2cc4f01000)
libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f2cc4bf8000)
libnghttp2.so.14 => /usr/lib/x86_64-linux-gnu/libnghttp2.so.14 (0x00007f2cc49d3000)
libidn2.so.0 => /usr/lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f2cc47b6000)
librtmp.so.1 => /usr/lib/x86_64-linux-gnu/librtmp.so.1 (0x00007f2cc459a000)
libpsl.so.5 => /usr/lib/x86_64-linux-gnu/libpsl.so.5 (0x00007f2cc438c000)
libnettle.so.6 => /usr/lib/x86_64-linux-gnu/libnettle.so.6 (0x00007f2cc4156000)
libgnutls.so.30 => /usr/lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f2cc3df0000)
liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f2cc3be2000)
libfyut.so.0 => /usr/lib/x86_64-linux-gnu/libfyut.so.0 (0x00007f2cc39d9000)
libfygm.so.0 => /usr/lib/x86_64-linux-gnu/libfygm.so.0 (0x00007f2cc37d2000)
libnssutil3.so => /usr/lib/x86_64-linux-gnu/libnssutil3.so (0x00007f2cc35a3000)
libplc4.so => /usr/lib/x86_64-linux-gnu/libplc4.so (0x00007f2cc339e000)
libplds4.so => /usr/lib/x86_64-linux-gnu/libplds4.so (0x00007f2cc319a000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2cc2f92000)
libicudata.so.60 => /usr/lib/x86_64-linux-gnu/libicudata.so.60 (0x00007f2cc13e9000)
libaec.so.0 => /usr/lib/x86_64-linux-gnu/libaec.so.0 (0x00007f2cc11e1000)
libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f2cc0f0b000)
libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f2cc0cd9000)
libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f2cc0ad5000)
libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f2cc08ca000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f2cc06af000)
libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f2cc0494000)
libgssapi.so.3 => /usr/lib/x86_64-linux-gnu/libgssapi.so.3 (0x00007f2cc0253000)
libunistring.so.2 => /usr/lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f2cbfed5000)
libhogweed.so.4 => /usr/lib/x86_64-linux-gnu/libhogweed.so.4 (0x00007f2cbfca1000)
libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f2cbfa20000)
libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f2cbf6f1000)
libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f2cbf4de000)
libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f2cbf2da000)
libheimntlm.so.0 => /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 (0x00007f2cbf0d1000)
libkrb5.so.26 => /usr/lib/x86_64-linux-gnu/libkrb5.so.26 (0x00007f2cbee44000)
libasn1.so.8 => /usr/lib/x86_64-linux-gnu/libasn1.so.8 (0x00007f2cbeba2000)
libhcrypto.so.4 => /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 (0x00007f2cbe96c000)
libroken.so.18 => /usr/lib/x86_64-linux-gnu/libroken.so.18 (0x00007f2cbe756000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f2cbe54e000)
libwind.so.0 => /usr/lib/x86_64-linux-gnu/libwind.so.0 (0x00007f2cbe325000)
libheimbase.so.1 => /usr/lib/x86_64-linux-gnu/libheimbase.so.1 (0x00007f2cbe116000)
libhx509.so.5 => /usr/lib/x86_64-linux-gnu/libhx509.so.5 (0x00007f2cbdecc000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f2cbdc94000)
root@8a4b706c47cb:/opt/R/3.6.3/lib/R/library/sf/libs# ls -l /usr/lib/x86_64-linux-gnu/libproj*
-rw-r--r-- 1 root root 1117622 Nov 16 2018 /usr/lib/x86_64-linux-gnu/libproj.a
-rw-r--r-- 1 root root 946 Nov 16 2018 /usr/lib/x86_64-linux-gnu/libproj.la
lrwxrwxrwx 1 root root 17 Nov 16 2018 /usr/lib/x86_64-linux-gnu/libproj.so -> libproj.so.13.1.1
lrwxrwxrwx 1 root root 17 Nov 16 2018 /usr/lib/x86_64-linux-gnu/libproj.so.13 -> libproj.so.13.1.1
-rw-r--r-- 1 root root 477512 Nov 16 2018 /usr/lib/x86_64-linux-gnu/libproj.so.13.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment