Closed stephenashton-dhsc closed 5 months ago
We see that most often on systems that have more than one instance of GDAL, GEOS or PROJ installed; see here.
Hmmmm. There are multiple versions on the system, but they should be isolated within lmod modules. I’ll check with our tech folks to see if there’s any leakage - thanks 🙂
I'm not the most familiar with Linux, but here's the portion of the debug return leading up to the error - if you've got any pointers for where to look for duplicate libraries and/or other errors, that'd be great :)
Ah - managed to fix it by changing which of the PROJ modules was being loaded via lmod
(changed from 4.9.3 to 6.3.2).
I'm running into exactly the same issue with version 1.0-16. 1.0-15 works. What have you done to fix it?
library(devtools)
devtools::install_version("sf", version="1.0-16")
...
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘sf’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/username/R/x86_64-pc-linux-gnu-library/4.3/00LOCK-sf/00new/sf/libs/sf.so':
/home/username/R/x86_64-pc-linux-gnu-library/4.3/00LOCK-sf/00new/sf/libs/sf.so: undefined symbol: _Z16CPL_set_data_dirN4Rcpp6VectorILi16ENS_15PreserveStorageEEEb
Error: loading failed
Execution halted
library(devtools)
devtools::install_version("sf", version="1.0-15")
...
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (sf)
geos: 3.9.1 gdal: 2.4.4 proj: 4.9.3
I've got it working with GEOS 3.11.0, GDAL 2.4.4 and PROJ 6.3.2 (although I'm now running into issues with the interaction between raster
and PROJ 6.3.2)
Although if the error is only appearing in 1.0-16 (but not in 1.0-15), maybe it is an issue with the version?
Just double checked this myself. For a system with GEOS 3.11.0, GDAL 2.4.4 and PROJ 4.9.3, 1.0-15 works but 1.0-16 does not.
Thanks, this should fix the proj 4.9.3 compile error.
Fantastic - thanks :)
Describe the bug Apologies if this is something obvious, but I'm getting a failed install of
sf
due to a missing symbol. Output below: