Problem installing ‘sf’ & 'units' package in R/4.4.2

Ciao Adrien,

Merci bien de ton message.J’ai effectivement pu réussir à installer le package “units”, selon tes indications (à la fois la version 0.8-7 et 1.0.0). Il semble que l’erreur soit associée avec le module UDUNITS/2.2.28. Si le module n’est pas “load”, alors “units” est installé correctement.

Je rencontre par contre toujours une erreur avec l’installation du package “sf” à proprement parlé, il semble que le programme ne puisse pas detecté les libraries GDAL, même si le module est chargé (l’erreur semble similaire à celle raportée ici: Problem install 'sf' package in R/4.2.1 )

Encore merci pour ton assistance,


module load foss/2024a  GEOS/3.12.2 GDAL/3.10.0 PROJ/9.4.1  CMake R/4.4.2

R

install.packages(“sf”)


Erreur

installing source package ‘sf’ …
** package ‘sf’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: gcc
configure: CXX: g++ -std=gnu++17
checking for gdal-config… /opt/ebsofts/GDAL/3.10.0-foss-2024a/bin/gdal-config
checking gdal-config usability… yes
configure: GDAL: 3.10.0
checking GDAL version >= 2.0.1… yes
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether the compiler supports GNU C… yes
checking whether gcc accepts -g… yes
checking for gcc option to enable C11 features… none needed
checking for stdio.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for strings.h… yes
checking for sys/stat.h… yes
checking for sys/types.h… yes
checking for unistd.h… yes
checking for gdal.h… yes
checking GDAL: linking with --libs only… no
checking GDAL: linking with --libs and --dep-libs… no
/opt/ebsofts/binutils/2.42-GCCcore-13.3.0/bin/ld: warning: libOpenCL.so.1, needed by /opt/ebsofts/GDAL/3.10.0-foss-2024a/lib/libgdal.so, not found (try using -rpath or -rpath-link)
/opt/ebsofts/binutils/2.42-GCCcore-13.3.0/bin/ld: /opt/ebsofts/GDAL/3.10.0-foss-2024a/lib/libgdal.so: undefined reference to clReleaseMemObject@OPENCL_1.0' /opt/ebsofts/binutils/2.42-GCCcore-13.3.0/bin/ld: /opt/ebsofts/GDAL/3.10.0-foss-2024a/lib/libgdal.so: undefined reference to clGetKernelWorkGroupInfo@OPENCL_1.0’

[more similar messages]

collect2: error: ld returned 1 exit status
/opt/ebsofts/binutils/2.42-GCCcore-13.3.0/bin/ld: cannot find -lOpenCL: No such file or directory
collect2: error: ld returned 1 exit status
configure: Install failure: compilation and/or linkage problems.
configure: error: GDALAllRegister not found in libgdal.

*** Installing this package from source requires the prior