wrong reference to wish in tk @8.6.11 ?

Murray Eisenberg murrayeisenberg at gmail.com
Fri Jul 2 15:11:39 UTC 2021



> On 2 Jul2021, at 8:00 AM,Ryan Schmidt <ryandesign at macports.org <mailto:ryandesign at macports.org>> wrote:
> 
> 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/ <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.


Some installation had put /usr/local/bin ahead of /opt/local/bin in my $PATH after MacPorts had put /opt/local/bin at or near the beginning. There are two different solutions:

(1) edit $PATH to put /opt/local/bin ahead of /usr/local/bin

(2) edit the script /opt/local/bin/xmaxima so as to change the line 

	exec wish "$0" -- "$@“

to:

	exec /opt/local/bin/wish "$0" -- "$@“

(The latter solution was in an answer to my query on the SourceForge Maxima mailing list https://sourceforge.net/p/maxima/mailman/message/37311724/ <https://sourceforge.net/p/maxima/mailman/message/37311724/> .)

---
Murray Eisenberg		murrayeisenberg at gmail.com
Mobile (413)-427-5334
503 King Farm Blvd #101		
Rockville, MD 20850-6667	





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


More information about the macports-users mailing list