xml2 icon indicating copy to clipboard operation
xml2 copied to clipboard

Build process on Linux includes shared libraries not in library path.

Open rbrittain opened this issue 7 months ago • 0 comments

When building xml2 on Linux (tested with RHEL7 and R 4.1,4.2,4.3), the compile and link steps will include libraries associated with directories in $PATH, but which aren't in the library search path for anything else. For example, if conda is in use, we have /optnfs/common/miniconda3/bin in $PATH. Building xml2 finds and uses header files in /optnfs/common/miniconda3/include/ and library (.so) files in /optnfs/common/miniconda3/lib (explicitly passed to linker with -L option). The compile succeeds, but then the test load fails with a missing library. Disabling conda makes the build locate the library in one of the default places (/usr/lib64) and it works.

The first library affected in libicui18n.so, but there are many other duplicated libraries between the standard system location and private copies installed by applications.

rbrittain avatar Nov 30 '23 22:11 rbrittain