Explain how to respond to the error message

Epstein, David David.Epstein at warwick.ac.uk
Sat Mar 26 09:54:50 UTC 2022

I am using MacPorts base version 2.7.2 under OS 11.6.4.

All my dealings with MacPorts is done using sudo

I got the following error:

45 try:
---> 46     _lib = cdll.LoadLibrary('libopenslide.0.dylib')
     47 except OSError:
     48     # MacPorts doesn't add itself to the dyld search path, but
     49     # does add itself to the find_library() search path
     50     # (DEFAULT_LIBRARY_FALLBACK in ctypes.macholib.dyld) on
     51     # Python 2.6 and 2.7.  Python 3 users on MacPorts should add
     52     # the MacPorts lib directory to DYLD_LIBRARY_PATH.

Q1 Where is DYLD_LIBRARY_PATH defined?

Q2 What is the official pathname of the “MacPorts lib directory”?

Q3 How should I have found the answers to the above two questions, without

bothering macports-users?

It would be nice if the standard MacPorts distribution dealt with this

problem so that I didn’t have to deal with it manually.

Thanks for your help.

David Epstein

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20220326/c5007c45/attachment.htm>

More information about the macports-users mailing list