Skip to content

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

Description

@rbrittain

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.

Activity

  1. added
    bugan unexpected problem or unintended behavior
    on Oct 21, 2024
  2. jeroen commented on Oct 21, 2024

    @jeroen
    Member

    If you are using conda you should install xml2 from conda as explained on: https://anaconda.org/conda-forge/r-xml2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions