Le 19/06/2015 06:35, Ken Moffat a écrit :
On Fri, Jun 19, 2015 at 01:44:47AM +0100, Ken Moffat wrote:
On Fri, Jun 19, 2015 at 01:34:18AM +0100, Ken Moffat wrote:
At the moment, I've twice installed the binaries into a user-writable
directory, attempted to cp [ -dp ] the files up, and then used some
sh/find/sed/awk/sed to
      ^^^^

Doh!  I'm slow tonight.  I was storing the list of symlinks in a
variable - obviously it contained a very long line which scrolled
out of sight.  The end of it was as expected, but the beginning
will have included the subdirectories.

Doesn't explain the whole problem, but it's a start.  Sometimes, it
helps (eventually) to explain the problem - I just wish I could
manage by talking to myself :)

TLDR : trying to move the binaries to /opt/texlive/2015/bin is a
non-starter.

Well, I solved those problems (still not quite sure why the sed was
failing), but when I tried to run my tests on the binaries I
discovered that none of the sty files seemed to be present.  Digging
down,I tried to look at texdoc kpathsea to see why kpsewhich seemed
to be failing, but all I got was:

/opt/texlive/2015/bin/texdoc:7: module 'texdoc.main' not found:
         no field package.preload['texdoc.main']
         [kpse lua searcher] file not found: 'texdoc.main'
         [kpse C searcher] file not found: 'texdoc.main'
         no file '/usr/local/lib/lua/5.2/texdoc.so'
         no file '/usr/local/lib/lua/5.2/loadall.so'
         no file './texdoc.so'

and indeed those .so files did not exist (not really surprising,
given where it seems to be looking, but they are not present at all
in the /opt/texlive tree).

Then I decided to try running pdflatex anyway, and got:

kpathsea: Running mktexfmt pdflatex.fmt
Can't locate mktexlsr.pl in @INC (@INC contains: /opt/texlive/tlpkg
/opt/texlive/texmf-dist/scripts/texlive
/usr/lib/perl5/site_perl/5.22.0/x86_64-linux
/usr/lib/perl5/site_perl/5.22.0
/usr/lib/perl5/vendor_perl/5.22.0/x86_64-linux
/usr/lib/perl5/vendor_perl/5.22.0 /usr/lib/perl5/5.22.0/x86_64-linux
/usr/lib/perl5/5.22.0 .) at /opt/texlive/2015/bin/mktexfmt line 23.
BEGIN failed--compilation aborted at /opt/texlive/2015/bin/mktexfmt
line 25.
I can't find the format file `pdflatex.fmt'!
Makefile:22: recipe for target 'pdflatex' failed
make: *** [pdflatex] Error 1

When I installed from source into /opt/texlive/2015/bin/x86_64-linux
I also had problems with kpathsea, but they were different (I needed
to install a perl _module_ from the TL tree - to be certain, I
installed both of them).

I've now unmounted that attempt and had another go, but using
/opt/texlive/2015/bin/x86_64-linux for the binary progs - and it
works.

Summary: the apparently-redundant 'TEXARCH' directory is required.

ĸen
If it is a kpathsea problem, I'd guess you need some TEX_* envar, or maybe run "mktexlsr" on the right directory...

I'm almost sure kpathsea is agnostic about the install directory, but it needs to be given a few hints.

It seems that "kpsewhich --help" can tell you where files are searched for.

I'm sorry I have not much to (try to) help more.

Pierre
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to