bugGNU Astronomy Utilities - Bugs: bug #56508, Custom library installation fails...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #56508: Custom library installation fails to link on macOS

Submitter:  Raul Infante-Sainz <infantesainz>
Submitted:  Mon 17 Jun 2019 12:38:12 PM UTC
   
 
Category:  Installation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Crash
Status:  Postponed Privacy:  Public
Assigned to:  makhlaghi Open/Closed:  Open

Discussion

Mon 17 Jun 2019 12:38:12 PM UTC, original submission:  

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.

Raul Infante-Sainz <infantesainz>
Group Member

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by infantesainz (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-11ef.
    Corresponding source code