<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="">Hi Roussanka,<div class=""><br class=""></div><div class="">I’d say that with your report this is quite final. Just two comments:</div><div class=""><br class=""></div><div class="">1. If you haven’t already done so, you may try to open a file in Aquamacs from the Terminal with</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>open -a aquamacs <filename></div><div class=""><br class=""></div><div class="">then Aquamacs should pick the right PATH from the environment.</div><div class=""><br class=""></div><div class="">2. the directory service command was to make sure about the shell that you were running (just in case Terminal launches another one, for example). The syntax is correct (of course, replacing <yourusername> with your actual username). It is documented in a man page. It’s also case sensitive in the variable names. </div><div class=""><br class=""></div><div class="">—Ettore</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 1, 2020, at 16:44, Roussanka Loukanova <<a href="mailto:rl.stpuu@gmail.com" class="">rl.stpuu@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:small">I'm not familiar with dscl, and what you gave doesn't seem to be the right syntax, or I do not get it right. But the other commands provide sufficiently to see that Aquqmca doesn't have respective PATH.</div><br class=""></div><div dir="ltr" class="">$ echo $PATH                            <br class="">/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin<br class=""><br class="">$ echo $SHELL                           <br class="">/bin/zsh<br class=""><br class="">$ which gs<br class="">/usr/local/bin/gs<br class=""><br class="">with Aquamacs' PATH<br class="">/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin:/Library/TeX/texbin:/usr/local/texlive/2020/bin<br class=""><br class="">$ gs      <br class="">GPL Ghostscript 9.53.3 (2020-10-01)<br class="">Copyright (C) 2020 Artifex Software, Inc.  All rights reserved.<br class="">This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:<br class="">see the file COPYING for details.<br class="">GS><br class=""><br class="">I myself have never <span class="gmail_default" style="font-size:small">manipulated</span><span class="gmail_default" style="font-size:small"></span> the PATH of Aquamacs<span class="gmail_default" style="font-size:small">, at least not consciously</span><span class="gmail_default" style="font-size:small">.</span> I think that<span class="gmail_default" style="font-size:small"> should be done by the installation or update of Aquamacs itself. I hope that the developers will fix it, soon. I  myself do not like interfering that much with the defaults :)</span><br class=""><br class=""><div class="gmail_default" style="font-size:small">Win, I hope you will read this.</div><br class="">Best Regards,<br class="">Roussanka</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 1, 2020 at 10:17 PM Ettore Aldrovandi <<a href="mailto:ealdrov@math.fsu.edu" class="">ealdrov@math.fsu.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class="">Hi Roussanka,<div class=""><br class=""></div><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 1, 2020, at 15:43, Roussanka Loukanova <<a href="mailto:rl.stpuu@gmail.com" target="_blank" class="">rl.stpuu@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class="">With José's suggestion for running the command getenv:<br class="">M-x getenv<br class="">PATH<br class="">/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin:/Library/TeX/texbin:/usr/local/texlive/2020/bin<br class=""><br class=""></div></div></div></blockquote><div class=""><br class=""></div><div class="">The path form Aquamacs is a bit strange. I’m puzzled: I don’t see /usr/local/bin in it. Aquamacs should <i class="">add</i> to the path, not replace it, I think. </div><div class=""><br class=""></div><div class="">To understand what’s going on, what is the PATH value in Terminal, and what is your shell?</div><div class=""><br class=""></div><div class="">echo $PATH</div><div class="">echo $SHELL</div><div class=""><br class=""></div><div class="">Bettery yet, run:</div><div class=""><br class=""></div><div class="">dscl . -read /Users/<yourusername> UserShell</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""></blockquote></div></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class="">Ghostscript is located in:<br class="">/usr/local/share/ghostscript<br class=""><br class="">I had this problem with ps2pdf when I had ghostscript 9.50. Yesterday, I downloaded and installed ghostscript 9.53.3, from Dick Koch:<br class=""><br class=""><a href="https://pages.uoregon.edu/koch/" target="_blank" class="">https://pages.uoregon.edu/koch/</a><br class=""><br class="">But I am still puzzled why ps2pdf is <span class="gmail_default" style="font-size:small">getting </span>reached and running ok in Terminal.<br class=""></div></div></div></blockquote><div class=""><br class=""></div>In both cases, even with Dick Koch’s version of Ghostscript, the binary should be in /usr/local/bin. If you run</div><div class=""><br class=""></div><div class="">which gs</div><div class=""><br class=""></div><div class="">or </div><div class=""><br class=""></div><div class="">type gs</div><div class=""><br class=""></div><div class="">in your Terminal we can confirm it. (I can’t because I install ghostscript in /opt myself.) If that’s the case, with the path that Aquamacs reports, it can’t find ps2pdf.</div><div class=""><br class=""></div><div class="">—Ettore</div><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:small">I always have been installing TexLive from MacTeX:</div><div class="gmail_default" style="font-size:small"><a href="http://www.tug.org/mactex/" target="_blank" class="">http://www.tug.org/mactex/</a><br class=""></div><br class="">Best Regards,<br class="">Roussanka</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 1, 2020 at 9:26 PM José Miguel Figueroa-O'Farrill <<a href="mailto:j.m.figueroa@ed.ac.uk" target="_blank" class="">j.m.figueroa@ed.ac.uk</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi,<br class="">
<br class="">
If you just do M-x getenv it will prompt for the variable and then you can simply type PATH.  You can then go the *Messages* buffer to read the (typically, lengthy) path.<br class="">
<br class="">
Cheers,<br class="">
        José<br class="">
<br class="">
<br class="">
> On 1 Nov 2020, at 20:17, Roussanka Loukanova <<a href="mailto:rl.stpuu@gmail.com" target="_blank" class="">rl.stpuu@gmail.com</a>> wrote:<br class="">
> <br class="">
> Hi,<br class="">
> <br class="">
> I tried the following, in the *scratch* buffer of Aquamacs, but they do not produce anything visible by me in "scratch":<br class="">
> <br class="">
> (getenv "PATH") ctrl-J<br class="">
> getenv "PATH" ctrl-J<br class="">
> getenv("PATH")ctrl-J<br class="">
> <br class="">
> The "man getenv" gives the following syntax:<br class="">
> getenv(const char *name);<br class="">
> <br class="">
> The problem continues from Aquamacs. But ps2pdf runs ok from Terminal.<br class="">
> <br class="">
> Best Regards,<br class="">
> Roussanka<br class="">
> <br class="">
> On Sun, Nov 1, 2020 at 7:16 PM Ettore Aldrovandi <<a href="mailto:ealdrov@math.fsu.edu" target="_blank" class="">ealdrov@math.fsu.edu</a>> wrote:<br class="">
> Hi John,<br class="">
> <br class="">
> thanks for the clarifications.<br class="">
> <br class="">
> > On Nov 1, 2020, at 12:44, John Wroclawski <<a href="mailto:jtw@csail.mit.edu" target="_blank" class="">jtw@csail.mit.edu</a>> wrote:<br class="">
> ><br class="">
> >> On Nov 1, 2020, at 12:30 PM, Ettore Aldrovandi <<a href="mailto:ealdrov@math.fsu.edu" target="_blank" class="">ealdrov@math.fsu.edu</a>> wrote:<br class="">
> >><br class="">
> >> what Pete says is correct. (It’s indeed great to see him back on the list.) However, if you install TeX Live via MacTex, the installer takes care of putting the appropriate item in /etc/paths.d, so that shouldn’t be the issue, as you say.<br class="">
> ><br class="">
> > Without speculating at all on what’s happening to Roussanka, it might be worth noting in passing that<br class="">
> ><br class="">
> > - ps2pdf is part of ghostscript, not TeXLive, and normally lives in /usr/local/bin. (so the TeXLive /etc/paths.d file isn’t relevant to this particular program..)<br class="">
> <br class="">
> Yes, you are right. Even better. The path is synthesized by calling /usr/libexec/path_helper, which takes care of putting /usr/local/bin in it before looking into /etc/paths.d.  This happens in both bash and zsh (through different startup files, of course).<br class="">
> <br class="">
> > - ps2pdf is also typically a chain of three or four shell scripts before it gets to actually running gs, and I suppose it could possibly have been broken by the switch to zsh (running 10.14 here, can’t check..)<br class="">
> <br class="">
> Eventually they all call ps2pdfwr, which calls gs. But due to the way bash and zsh construct the path, the result should be the same.  Bash would call path_helper in /etc/profile. Zsh does the same in /etc/zprofile.<br class="">
> <br class="">
> > - simpdftex, which Roussanka mentioned in other contexts, _is_ part of TeXLive and typically lives in /Library/TeX/texbin/. But it itself manipulates paths to find the programs it uses. So the fact that simpdftex can find ps2pdf doesn’t necessarily mean that other things will.<br class="">
> ><br class="">
> > (Is AQM using simpdftex, or calling programs directly?)<br class="">
> <br class="">
> No idea. I see that Aquamacs adds /Library/TeX/texbin to the path itself. I have TeXLive installed in /opt and therefore no /Library/TeX/texbin in my path, but it’s there in Aquamacs when I run (getenv “PATH”).<br class="">
> <br class="">
> —Ettore<br class="">
> <br class="">
> <br class="">
> _____________________________________________________________<br class="">
> MacOSX-Emacs mailing list<br class="">
> <a href="mailto:MacOSX-Emacs@email.esm.psu.edu" target="_blank" class="">MacOSX-Emacs@email.esm.psu.edu</a><br class="">
> <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-emacs" rel="noreferrer" target="_blank" class="">https://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br class="">
> List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" rel="noreferrer" target="_blank" class="">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br class="">
> <br class="">
> _____________________________________________________________<br class="">
> MacOSX-Emacs mailing list<br class="">
> <a href="mailto:MacOSX-Emacs@email.esm.psu.edu" target="_blank" class="">MacOSX-Emacs@email.esm.psu.edu</a><br class="">
> <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-emacs" rel="noreferrer" target="_blank" class="">https://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br class="">
> List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" rel="noreferrer" target="_blank" class="">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br class="">
<br class="">
Prof José Figueroa-O'Farrill<br class="">
School of Mathematics<br class="">
University of Edinburgh<br class="">
PGP Key: 0x6A6BD529 (MIT PGP Key Server)<br class="">
<br class="">
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
_____________________________________________________________<br class="">
MacOSX-Emacs mailing list<br class="">
<a href="mailto:MacOSX-Emacs@email.esm.psu.edu" target="_blank" class="">MacOSX-Emacs@email.esm.psu.edu</a><br class="">
<a href="https://email.esm.psu.edu/mailman/listinfo/macosx-emacs" rel="noreferrer" target="_blank" class="">https://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br class="">
List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" rel="noreferrer" target="_blank" class="">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br class="">
</blockquote></div>
<br class="">_____________________________________________________________<br class="">MacOSX-Emacs mailing list<br class=""><a href="mailto:MacOSX-Emacs@email.esm.psu.edu" target="_blank" class="">MacOSX-Emacs@email.esm.psu.edu</a><br class=""><a href="https://email.esm.psu.edu/mailman/listinfo/macosx-emacs" target="_blank" class="">https://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br class="">List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" target="_blank" class="">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div>
</div></blockquote></div><br class=""></div></body></html>