randy3k / radian

A 21 century R console
MIT License
1.96k stars 73 forks source link

library(sf) crashes radian #433

Open munoztd0 opened 10 months ago

munoztd0 commented 10 months ago

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 ?

randy3k commented 10 months ago

See https://github.com/randy3k/radian/issues/396 and https://github.com/randy3k/radian/issues/38.

munoztd0 commented 10 months ago

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 ?