Some background: I use LaTeX a lot, and in my opinion evince is the
friendliest
browser (also has the best name). The documents I work with often include
complicated ps files, so making a pdf is usually excessively slow, so I
either
view the ps file, or the dvi without the includes. There are several issues
so
I'll start with the easiest.
Postscript support in evince requires libspectre as indicated by the
optional
requirements. However, libspectre does not compile with ghostscript-9 as the
error type enumerate in gserrors.h are prefixed gs_error_, whereas
spectre-gs.c
expects e_ This was easy enough to fix and I see now there is already a
patch.
Ah well ...
dvi support is a little more involved. I would appreciate it if someone has
a
more elegant solution.
I have put the texlive addition in ld.so.conf and configured the environment
according to the BLFS instructions. However, libkpathsea is not found. I
also
tried appending /opt/texlive/2017/lib/pkgconfig to PKG_CONFIG_PATH, also
without
success. The following resulted in a successful compile.
CFLAGS="-g -O2 -I/opt/texlive/2017/include" \
LDFLAGS=-L/opt/texlive/2017/lib \
./configure --prefix=/usr --enable-compile-warnings=minimum \
--enable-introspection --disable-static --enable-t1lib &&
make
Next, opening a dvi document with evince takes an inordinate amount of time
because kpathsea cannot find texmf.cnf, the output is:
warning: kpathsea: configuration file texmf.cnf not found in these
directories:
/usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:
/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:
/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:
/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:
/usr/texmf-dist/web2c:/usr/texmf/web2c://texmf-local/web2c:
/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c:
//texmf-local/web2c://texmf-dist/web2c://texmf/web2c.
Clearly the last 8 entries suggest there is a missing opt/texlive/2017 I
have
been unsuccessful in figuring out how to get kpathsea to insert it. A fix
that
works (besides linking texmf.cnf somewhere kpathsea is looking) is to set
the
environment variable
export TEXMFCNF='/opt/texlive/2017/texmf-dist/web2c/'
Lastly, a minor comment regarding dependencies: Graphite2 is listed as an
optional dependency for harfbuzz. However, if harbuzz is not compiled with
graphite2, the texlive compilation fails --with-system-harfbuzz (the include
/usr/include/harfbuzz/hb-graphite2.h is missing). My suggestion would be to
put
a warning in the harfbuzz instruction. Something like
HarfBuzz-1.7.4 -> Command Explanations
--with-graphite2: This switch enables Graphite2 support.
--with-graphite2: This switch enables Graphite2 support (required if
building
TeX Live with system HarfBuzz).
Regards -- Allard
PS. I have a bunch of typos and minor glitches to report if there is
interest.
PPS. Atlas finally compiled. I needed to explicitly pass -msse3 to gcc.
There
are a number of packages, particularly video packages, that can benefit from
optimized BLAS routines -- not that I do any video.
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page