Tk Source Code

View Ticket
Login
Ticket UUID: 593646
Title: wish can't open library: libtk8.4.dylib
Type: Bug Version: obsolete: 8.4b1
Submitter: nobody Created on: 2002-08-11 12:40:59
Subsystem: 84. Unix Build Assigned To: wolfsuit
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-05-31 10:40:36
Resolution: Out of Date Closed By: hobbs
    Closed on: 2005-05-31 03:40:36
Description:
I am running MacOS X 10.1.5 with tk8.4b1. The make and make 
install appear to run correctly. I set the configure prefix to /sw. If I 
run /sw/bin/wish8.4 from my user directory I get "wish8.4 can't 
open library: libtk8.4.dylib. If I run /sw/bin/wish8.4 from the src 
directory /sw/src/tk8.4b1/unix, wish works. This directory contains 
libtk8.4.dylib.It appears that the install did not set up wish 
correctly to find libtk8.4. The install did create a /sw/lib/
libtk8.4.dylib file which the correct permissions.
User Comments: hobbs added on 2005-05-31 10:40:35:
Logged In: YES 
user_id=72656

Can this be reproed with a recent build?

wolfsuit added on 2002-08-13 00:23:03:
Logged In: YES 
user_id=169107

Sounds like you are building the X11 version of Wish.  I don't really work 
on that, but the problem here is similar to other Unixes, you have to tell 
the loader where to find shared libraries.  You can do this in two ways.  
Either you pass "-install-name=/sw/lib/libtk8.4.dylib" to the compiler 
when you build the shared library, or you set DYLD_LIBRARY_PATH 
(the equivalend of LD_LIBRARY_PATH) to /sw/lib in your environment.  
The --prefix option to configure should cons up the appropriate install-
name, if it is not that is a bug in the Unix Makefiles.