On Oct 5, 2018, at 15:41, Mark Brethen wrote:

> running the lrtest binary fails:
> 
> brethen-air:examples marbre$ ./lrtest
> dyld: Library not loaded: libreduce.so
>   Referenced from: 
> /opt/local/share/libreduce/x86_64-mac_10.12_sierra-darwin16.7.0/examples/./lrtest
>   Reason: image not found
> Abort trap: 6
> 
> I checked it using otool:
> 
> brethen-air:examples marbre$ otool -L lrtest
> lrtest:
>       libreduce.so (compatibility version 0.0.0, current version 0.0.0)
>       /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
> version 1238.60.2)
> 
> libreduce.so was copied to ${prefix}/lib. Should it be somewhere else?
> 
> 


libreduce.so does not have the correct install_name set. The install_name needs 
to be set to the absolute path where the library will be installed.

Ideally it should be set passing the -install_name flag when the library is 
built.

If that's not easy to fix, you can run the install_name_tool program later to 
fix it.

Reply via email to