<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 15 March 2018 at 18:14,  <span dir="ltr"><<a href="mailto:karl@aspodata.se" target="_blank">karl@aspodata.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">George N. White III:<br>
<span>> On 15 March 2018 at 06:49, <<a href="mailto:karl@aspodata.se">karl@aspodata.se</a>> wrote:<br>
><br>
> > As user texlive.texlive I installed texlive2017, but I have trouble<br>
> > getting it to work.<br>
> ><br>
> > E.g.:<br>
> > $ kpsewhich article.cls<br>
> > $ find . -name article.cls<br>
> > ./2017/texmf-dist/tex/latex/<wbr>base/article.cls<br>
> > $ pwd<br>
> > /usr/local/texlive<br>
> > $<br>
> ><br>
> > any ideas ?<br>
> ><br>
> > =======================<br>
> >  I have added:<br>
> > MANPATH=$MANPATH:/usr/local/<wbr>texlive/2017/texmf-dist/doc/<wbr>man<br>
> > INFOPATH=$INFOPATH:/usr/local/<wbr>texlive/2017/texmf-dist/doc/<wbr>info<br>
> > PATH=$PATH:/usr/local/texlive/<wbr>2017/bin/x86_64-linux<br>
> >  [...]<br>
><br>
> OP Karl  has:<br>
><br>
> $ ls -l /usr/local<br>
> lrwxrwxrwx 1 root root 13 Jan 23  2016 /usr/local -> ../home/local<br>
><br>
> TL is designed so you can put it anywhwere in your filesystem<br>
> and have it work by adjusting the PATH variable.  Is there any<br>
> pressing reason to use /usr/local/texlive over /home/local/texlive?<br>
<br>
</span>No, it's just that I have /usr ro, and most configure prefixes are<br>
/usr/local.<br>
<span><br>
> OP Karl -- can you try:<br>
><br>
>   PATH=/home/local/texlive/2017/<wbr>bin/x86_64-linux:$PATH<br>
<br>
</span>Ok, rearranged thoose three PATHs above.<br>
<span><br>
$ which kpsewhich<br>
/usr/local/texlive/2017/bin/<wbr>x86_64-linux/kpsewhich<br>
$ kpsewhich article.cls<br>
$<br>
<br>
</span>Same result.<br>
<span><br>
> It could be instructive to play around with the kpsewhich debugging<br>
> options.<br>
<br>
</span>$ kpsewhich -debug 2 article.cls<br>
kdebug:db:init(): using db file /home/local/texlive/texmf-<wbr>local/ls-R.<br>
kdebug:db:init(): using db file /home/local/texlive/2017/<wbr>texmf-config/ls-R.<br>
kdebug:db:init(): using db file /home/local/texlive/2017/<wbr>texmf-var/ls-R.<br>
kdebug:db:init(): using db file /home/local/texlive/2017/<wbr>texmf-dist/ls-R.<br>
kdebug:/home/local/texlive/<wbr>texmf-local/ls-R: 29 entries in 28 directories (0 hidden).<br>
kdebug:ls-R hash table:64007 buckets, 18 nonempty (0%); 29 entries, average chain 1.6.<br>
kdebug:/home/local/texlive/<wbr>2017/texmf-config/ls-R: 2 entries in 1 directories (0 hidden).<br>
kdebug:ls-R hash table:64007 buckets, 18 nonempty (0%); 31 entries, average chain 1.7.<br>
kdebug:/home/local/texlive/<wbr>2017/texmf-var/ls-R: 148 entries in 35 directories (0 hidden).<br>
kdebug:ls-R hash table:64007 buckets, 142 nonempty (0%); 179 entries, average chain 1.3.<br>
kdebug:/home/local/texlive/<wbr>2017/texmf-dist/ls-R: 167171 entries in 12327 directories (0 hidden).<br>
kdebug:ls-R hash table:64007 buckets, 54321 nonempty (84%); 167350 entries, average chain 3.1.<br>
$ grep -B4 ^article.cls `kpsewhich -debug 2 article.cls 2>&1 | grep db:init | grep dist | sed -e 's/.*file//; s/\.$//;'`<br>
./tex/latex/base:<br>
alltt.sty<br>
ansinew.def<br>
applemac.def<br>
article.cls<br>
$<br>
<br>
So, kpsewhich is using a db file where the answer is.<br>
Is there any other debug num's I should try ?<br></blockquote><div><br></div><div><div style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:1019px;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal">I use a symbolic link, e. g.:<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"></div><div style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:1019px;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal"><br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"></div><div style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:1019px;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal">    $ ls -l /usr/local/texlive/current<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">    lrwxrwxrwx 1 gwhite bod 10 Jun  4  2017 /usr/local/texlive/current -> svn/Master<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"></div><div style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:1019px;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal"> </div><div style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:1019px;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal">but kpsewhich always reports the real path, e.g., "<span style="font:400 13.33px arial,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;font-size-adjust:none;font-stretch:normal;float:none;background-color:transparent">/usr/local/texlive/svn/Master".</span></div><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><br></div><div>I've forgotten the details of how kpsewhich deals with full paths.  I think</div><div>it constructs a path from the real location of the ls-R file and the subpath</div><div>from the ls-R file.    Maybe it expects /opt/local and rejects results from </div><div>/home/local.   Does "texconfig conf" have all "/home/local" paths or </div><div>are some "/opt/local"?</div><div><br></div><div>Have a look at the results for debug values 32 and 64.<br></div></div><div class="gmail_quote"><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>George N. White III<br><br></div></div></div>
</div></div>