Introduction to TeX Live from source
Most of TeX Live can be built from source without a pre-existing
installation, but xindy (for
indexing) needs working versions of latex and pdflatex when configure is run,
and the testsuite and install for asy (for vector graphics) will
fail if TeX has not already been installed. Additionally,
biber is not provided within the
All of those packages are dealt with on their own pages and can be
built after installing this package and proceeding to Setting the PATH for TeX Live.
This package is known to build and work properly using an LFS-7.6
Required Additional Download
Much of the texlive environment (including scripts, documentation,
fonts and various other files) is not part of the source tarball.
You must download it separately. This will give you all of the
additional files which are provided by a full install of the binary
version, there is no realistic way to restrict which parts get
Because of the size of this package, it is unlikely to be mirrored
by BLFS mirrors. In case of difficulty, go to
http://www.ctan.org/mirrors/ to find a more-accessible mirror.
TeX Live from source Dependencies
ghostscript-9.15 (for dvisvgm - used by
asymptote which provides a mathematical coordinate-based framework
for technical drawing), X Window
The source ships with its own versions of many libraries, and will use them unless
it is forced to use the system versions. The following are
recommended so that the system version will be used: Fontconfig-2.11.1, FreeType-2.5.5, GC-7.4.2, Graphite2-1.2.4, Harfbuzz-0.9.38 (linked to graphite2),
ICU-54.1, libpaper-1.1.24+nmu4 (used by at least
context and xelatex), libpng-1.6.16, Poppler-0.30.0
The source ships with its own versions of several libraries which
are either not under active development, or only used for limited
functionality. If you install these, as with some other optional
dependencies in this book you will need to tell configure to use the system
versions. GD, t1lib,
Python-2.7.9 is used by many scripts. Ruby-2.2.0 is used by some scripts, mostly within
mtx_context which is part of conTeXt, but also for one or two others, such
as match_parens, which are generally useful.
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/texlive
Installation of TeX Live
Install TeX Live by running the following commands:
TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &&
mkdir texlive-build &&
cd texlive-build &&
--disable-static --enable-shared \
--with-banner-add=" - BLFS" &&
unset TEXARCH &&
To test the results, issue: make -k
check One test in each of web2c, dvipng and ttf2pk2
will SKIP because kpathsea has not yet been installed.
Now, as the
make install &&
And now, install the additional files as the
mkdir -pv /opt/texlive/2014 &&
tar -xf ../../texlive-20140525-texmf.tar.xz -C /opt/texlive/2014 --strip-components=1
Now proceed to Setting the PATH for TeX Live.
--prefix=, --bindir=, --datarootdir=,
--infodir=, --mandir= ... : these switches ensure that
the files installed from source will overwrite any corresponding
files previously installed by install-tl-unx so that the alternative methods
of installing texlive are
... : these switches ensure that the libraries will be
found at runtime, and that programs can be compiled against them.
switch prevents installation of static versions of the libraries.
--enable-shared: Use shared
this parameter is used, the included versions of these libraries
will be statically compiled into the programs which need them. If
you decided not to install a recommended library, omit the
Uniquely, this parameter has a non-standard meaning, it tells
configure to use the
system-installed poppler headers
and library. Again, omit this if you have not installed
--without-x: use this if you do not
have Xorg installed.
make texlinks : this runs
the texlinks.sh script to create (or recreate) symbolic links from
formats to engines. In practice, several of the targets such as
xetex are now
separate binaries and for these it will report "file already
tar -xf texlive-20140525-texmf.tar.xz
-C /opt/texlive/2014 --strip-components=1: the tarball
contains the files for the texmf-dist directory, and because of its
size we do not want to waste time and space untarring it and then
copying the files.
Over 300 binaries and symlinks to
The programs included in TeX are too numerous to individually
list. Please refer to the individual program HTML and PDF
pages in the installation directory's
2014/doc.html file, or the various
html, man, or pdf files within the subdirectories of
(kpathsearch) exists to look up a file in a list of
is a library for Japanese pTeX (publishing TeX).
Last updated on 2015-01-21 12:44:56 +0000