<div dir="ltr"><div><div><div><div><div>Karl,<br><br></div>The problem with asymptote has been resolved, but a question lingers about the correct use of kpse and on top of that - about multiple installation of TeXLive.<br><br></div>First the problem:<br><br></div>I have two installations of TL, one coming from Ubuntu  in /usr/share/texlive/ and the other standard from CTAN at: /usr/local/texlive/2015/ (where several others are installed at the same top level).<br><br></div><div>The one from Ubuntu does not have a Asymptote installed. And when I use TL2015 Asymptote, instead of using:<br><br>    /usr/local/texlive/2015/bin/x86_64-linux/kpsewhich<br><br></div><div>it uses the one in the PATH, which was:<br><br>      /usr/bin/kpsewhich<br><br></div><div>that was installed by the Ubuntu installation... and obviously cannot find its own files.<br><br></div><div>And here is the big question:<br><br></div>I thought that a TL binary was supposed to use **always** the kpse of its own distribution and not the one in the PATH. Is that not the case???<br><br></div>Paulo Ney<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 11:19 AM, Karl Berry <span dir="ltr"><<a href="mailto:karl@freefriends.org" target="_blank">karl@freefriends.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Paulo,<br>
<br>
    Welcome to Asymptote version 2.35 (to view the manual, type help)<br>
    error: could not load module 'plain'<br>
<br>
Does not happen for me (of course; I wouldn't have released it if that<br>
failed).  I don't have ASYMPTOTE_HOME or other relevant envvars set.<br>
<br>
By design, neither the asy binary (2.35) nor the asy support files<br>
(e.g., texmf-dist/asymptote/plain.asy) have changed since the initial<br>
TL15 release.<br>
<br>
Maybe you have some other kpathsea envvar set that is interfering?  I<br>
cannot guess.  asy (that is, the tl binary -- compiling direct from<br>
upstream is different) constructs the default by running<br>
kpsewhich -var-value=TEXMFMAIN and appending "/asymptote" to the value.<br>
(source file settings.cc)<br>
<br>
If the above is insufficient, maybe more debugging info could be gleaned<br>
by running env KPATHSEA_DEBUG=-1 asy </dev/null >/tmp/out 2>&1<br>
and see what is happening with after the TEXMFMAIN lookup.<br>
<br>
Good luck,<br>
Karl<br>
</blockquote></div><br></div>