arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen (JIRA)" <>
Subject [jira] [Created] (ARROW-5090) Linking failure on MacOS due to @rpath in dylib
Date Tue, 02 Apr 2019 14:31:01 GMT
Jeroen created ARROW-5090:

             Summary: Linking failure on MacOS due to @rpath in dylib
                 Key: ARROW-5090
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
            Reporter: Jeroen

Linking an application or bindings against the arrow shared lib (from homebrew) fails with:

  dlopen(/Users/travis/build/r-lib/arrow/arrow.Rcheck/arrow/libs/, 6): Library not
loaded: @rpath/libarrow.13.dylib
  Referenced from: /usr/local/opt/apache-arrow/lib/libparquet.13.dylib
  Reason: image not found

I don't think an installed lib should contain @rpath. The workaround is to set the rpath when
linking. The R package [apparently hardcodes](
this to be /usr/local/lib which is appropriate.

I think the proper solution is to build with: CMAKE_BUILD_WITH_INSTALL_RPATH=ON

This message was sent by Atlassian JIRA

View raw message