[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-devel] [bug #56508] Custom library installation fails to link
From: |
Raul Infante-Sainz |
Subject: |
[gnuastro-devel] [bug #56508] Custom library installation fails to link on macOS |
Date: |
Mon, 17 Jun 2019 08:38:14 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:66.0) Gecko/20100101 Firefox/66.0 |
URL:
<https://savannah.gnu.org/bugs/?56508>
Summary: Custom library installation fails to link on macOS
Project: GNU Astronomy Utilities
Submitted by: infantesainz
Submitted on: Mon 17 Jun 2019 12:38:12 PM UTC
Category: Installation
Severity: 3 - Normal
Item Group: Crash
Status: Postponed
Privacy: Public
Assigned to: makhlaghi
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
When the necessary libraries are not present in a standard search path,
Gnuastro's configure script will also search for them in the same directory
that Gnuastro will be installed.
For example this is the output line of ./configure for a custom-build
CFITSIO:
checking for libcfitsio... yes
checking how to link with libcfitsio... -L/path/to/custom/install/dir/lib
-lcfitsio
But since we are intentionally not adding RPATH, when trying to run the
programs built in this way, on macOS we get a linking error, for example this
line in 'config.log' for the test of 'getgroups':
dyld: Library not loaded: libcfitsio.8.dylib
Referenced from: /current/build/dir/gnuastro-0.9.58-5cc8/./conftest
Reason: image not found
The interesting situation is that LD_LIBRARY_PATH has not been set. But it is
also not used in macOS. However, setting DYLD_LIBRARY_PATH and
DYLD_FALLBACK_LIBRARY_PATH for macOS also didn't fix this problem.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56508>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-devel] [bug #56508] Custom library installation fails to link on macOS,
Raul Infante-Sainz <=