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

Submitted by:  Raul Infante-Sainz <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:  Mohammad Akhlaghi <makhlaghi>
Open/Closed:  Open

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>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5