wrong reference to wish in tk @8.6.11 ?

Ryan Schmidt ryandesign at macports.org
Fri Jul 2 09:17:11 UTC 2021


On Jun 29, 2021, at 09:16, Murray Eisenberg wrote:

> In order to install maxima, including xmaxima, using the port in MacPorts-Maxima-5.45.1, available from https://sourceforge.net/projects/maxima/files/Maxima-MacOS/, one needs to install tk + quarts, which I did:
> 
> 	 tk @8.6.11_0+quartz (active)
> 
> the xmaxima command in Terminal fails with error:
> 
> dyld: Library not loaded: /usr/local/lib:/opt/X11/lib/libtk8.6.dylib
>   Referenced from: /usr/local/bin/wish
>   Reason: image not found
> [1]    4913 abort      xmaxima
> 
> The reference should be instead to /opt/local/bin/wish.
> 
> Is this an error in the tk port? (rather than in the maxima/xmaxima port?>

The "dyld: Library not loaded" message clearly comes from /usr/local/bin/wish, so if you want that fixed, you should report the problem to whoever provided the installer that installed /usr/local/bin/wish. The path "/usr/local/lib:/opt/X11/lib/libtk8.6.dylib" doesn't look valid; it should be a simple absolute path to a library, like "/opt/X11/lib/libtk8.6.dylib".

If your complaint is that running xmaxima runs /usr/local/bin/wish rather than /opt/local/bin/wish, then that could be a matter of setting your $PATH environment variable so that /opt/local/bin precedes /usr/local/bin (or so that /usr/local/bin is removed), or it could be an absolute path hardcoded in xmaxima that needs to be changed there. Since you said xmaxima was installed from something downloaded from that SourceForge URL, you could report it to that SourceForge project.



More information about the macports-users mailing list