Open Marc-Girondot opened 1 month ago
Hi,
I got a similar issue installing transformr
on a docker container.
for error : unable to load shared object '/usr/local/lib/R/site-library/units/libs/units.so': libudunits2.so.0:
then run in terminal sudo apt-get install -y libudunits2-dev
for error : unable to load shared object '/usr/local/lib/R/site-library/sf/libs/sf.so': libproj.so.22:
then run in terminal sudo apt-get install libproj-dev
for error :unable to load shared object '/usr/local/lib/R/site-library/sf/libs/sf.so': libgdal.so.30:
then run in terminal sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev
(similar as this issue)
hope this helps!
System: Ubuntu 24.04 R 4.4.1
In R:
It returns an error (all the logs are at the end of this report): Erreur dans dyn.load(file, DLLpath = DLLpath, ...) : impossible de charger l'objet partagé '/usr/local/lib/R/site-library/sf/libs/sf.so' : libgdal.so.32: cannot open shared object file: No such file or directory
Indeed, I have the last version of libgdal.so installed which is version 34: mgirond@caretta:~$ cd /usr/lib/x86_64-linux-gnu mgirond@caretta:/usr/lib/x86_64-linux-gnu$ ls -a libgdal* libgdal.so libgdal.so.34 libgdal.so.34.3.8.4
Using a hack to symlink 34 to 32 does not work either: sudo ln -s /usr/lib/x86_64-linux-gnu/libgdal.so /usr/lib/x86_64-linux-gnu/libgdal.so.32
will return: Erreur dans dyn.load(file, DLLpath = DLLpath, ...) : impossible de charger l'objet partagé '/usr/local/lib/R/site-library/sf/libs/sf.so' : /usr/local/lib/R/site-library/sf/libs/sf.so: undefined symbol: _ZN18OGRGeometryFactory13createFromWkbEPKvP19OGRSpatialReferencePP11OGRGeometrym13OGRwkbVariant
All the logs are here:
Installation du package dans ‘/usr/local/lib/R/site-library’ (car ‘lib’ n'est pas spécifié)
mgirond@caretta:~$ cd /usr/lib/x86_64-linux-gnu mgirond@caretta:/usr/lib/x86_64-linux-gnu$ ls -a libgdal* libgdal.so libgdal.so.34 libgdal.so.34.3.8.4
mgirond@caretta:/usr/lib/x86_64-linux-gnu$ sudo ln -s /usr/lib/x86_64-linux-gnu/libgdal.so /usr/lib/x86_64-linux-gnu/libgdal.so.32
Erreur dans dyn.load(file, DLLpath = DLLpath, ...) : impossible de charger l'objet partagé '/usr/local/lib/R/site-library/sf/libs/sf.so' : /usr/local/lib/R/site-library/sf/libs/sf.so: undefined symbol: _ZN18OGRGeometryFactory13createFromWkbEPKvP19OGRSpatialReferencePP11OGRGeometrym13OGRwkbVariant Appels : ... asNamespace -> loadNamespace -> library.dynam -> dyn.load
Exécution arrêtée