<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 2 Jul2021, at 8:00 AM,<span class="" style="float: none; display: inline !important;">Ryan Schmidt <</span><a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a><span class="" style="float: none; display: inline !important;">></span> wrote:</div></blockquote><blockquote type="cite" class=""><div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">On Jun 29, 2021, at 09:16, Murray Eisenberg wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">In order to install maxima, including xmaxima, using the port in MacPorts-Maxima-5.45.1, available from<span class="Apple-converted-space"> </span><a href="https://sourceforge.net/projects/maxima/files/Maxima-MacOS/" class="">https://sourceforge.net/projects/maxima/files/Maxima-MacOS/</a>, one needs to install tk + quarts, which I did:<br class=""><br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-converted-space"> </span>tk @8.6.11_0+quartz (active)<br class=""><br class="">the xmaxima command in Terminal fails with error:<br class=""><br class="">dyld: Library not loaded: /usr/local/lib:/opt/X11/lib/libtk8.6.dylib<br class=""> Referenced from: /usr/local/bin/wish<br class=""> Reason: image not found<br class="">[1] 4913 abort xmaxima<br class=""><br class="">The reference should be instead to /opt/local/bin/wish.<br class=""><br class="">Is this an error in the tk port? (rather than in the maxima/xmaxima port?><br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">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".</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">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.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""></div></blockquote></div><div class=""><br class=""></div>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:<div class=""><br class=""></div><div class="">(1) edit $PATH to put /opt/local/bin ahead of /usr/local/bin</div><div class=""><br class=""></div><div class="">(2) edit the script /opt/local/bin/xmaxima so as to change the line </div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>exec wish "$0" -- "$@“</div><div class=""><br class=""></div><div class="">to:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>exec /opt/local/bin/wish "$0" -- "$@“</div><div class=""><br class=""></div><div class="">(The latter solution was in an answer to my query on the SourceForge Maxima mailing list <a href="https://sourceforge.net/p/maxima/mailman/message/37311724/" class="">https://sourceforge.net/p/maxima/mailman/message/37311724/</a> .)</div><div class=""><br class=""></div><div class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;"> </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a></div><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Mobile (413)-427-5334<br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;"> </span><br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;"> </span><br class=""><br class=""><br class=""><br class=""><br class=""></div>
</div>
<br class=""></div></body></html>