randy3k/radian

library(sf) crashes radian

Opened this issue · 2 comments

I just found out after 3 weeks of trying to install 'sf' that it works fine in vanilla R but it's only in radian that it crashes:

radian
r$> lib('sf')
Error: package or namespace load failed for ‘sf’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/usr/local/lib/R/site-library/sf/libs/sf.so':
/usr/lib/x86_64-linux-gnu/libgdal.so.32: undefined symbol: TIFFReadRGBATileExt, version LIBTIFF_4.0

❯ R

R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

library('sf')
Linking to GEOS 3.11.1, GDAL 3.6.4, PROJ 9.1.1; sf_use_s2() is TRUE

sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.3 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0

What can I do to fix this ?

See #396 and #38.

Oh thanks I solved by aliasing radian to

env LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libsqlite3.so.0:/usr/lib/x86_64-linux-gnu/libtiff.so.5' radian

but quite a weird compatibily issue ?