%general-entities; ]> $LastChangedBy$ $Date$ texlive-&texlive-version;-source texlive 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 texlive source. All of those packages are dealt with on their own pages and can be built after installing this package. If you have not already done so, you should start at so that the final commands to initialise the new installation will be found. &lfs79_checked;&gcc6_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &texlive-md5sum; Download size: &texlive-size; Estimated disk space required: &texlive-buildsize; Estimated build time: &texlive-time; Required Additional Downloads 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 installed. 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. Download (HTTP): Download (FTP): Download MD5 sum: &texlive-texmf-md5sum; Download size: &texlive-texmf-size; Required patch: Required patch: TeX Live from source Dependencies Recommended (for dvisvgm - used by asymptote which provides a mathematical coordinate-based framework for technical drawing), Optional Runtime dependencies User Notes: Installation of TeX Live Install TeX Live by running the following commands: The shared libraries will be installed into a texlive directory. As the root user, add it to your /etc/ld.so.conf: cat >> /etc/ld.so.conf << EOF # Begin texlive &texlive-year; addition /opt/texlive/&texlive-year;/lib # End texlive &texlive-year; addition EOF From 2015 onwards, a successful install requires some texlive commands to be run as the root user, so we will export the TEXARCH variable to let root use it. Now, as a normal user: export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') && patch -Np1 -i ../texlive-&texlive-version;-source-upstream_fixes-1.patch && mkdir texlive-build && cd texlive-build && ../configure \ --prefix=/opt/texlive/&texlive-year; \ --bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \ --datarootdir=/opt/texlive/&texlive-year; \ --includedir=/opt/texlive/&texlive-year;/include \ --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \ --libdir=/opt/texlive/&texlive-year;/lib \ --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \ --disable-native-texlive-build \ --disable-static --enable-shared \ --with-system-cairo \ --with-system-fontconfig \ --with-system-freetype2 \ --with-system-gmp \ --with-system-graphite2 \ --with-system-harfbuzz \ --with-system-icu \ --with-system-libgs \ --with-system-libpaper \ --with-system-libpng \ --with-system-mpfr \ --with-system-pixman \ --with-system-poppler \ --with-system-xpdf \ --with-system-zlib \ --with-banner-add=" - BLFS" && make To test the results, issue: make check A few tests may SKIP because kpathsea has not yet been installed. Now, as the root user: make install-strip && make texlinks && ldconfig && mkdir -pv /opt/texlive/&texlive-year;/tlpkg/TeXLive/ && install -v -m644 ../texk/tests/TeXLive/* /opt/texlive/&texlive-year;/tlpkg/TeXLive/ Only run make texlinks once. If it is rerun, it can change all the program symlinks so that they point to themselves and are useless. Now install the additional files as the root user: tar -xf ../../texlive-&texmf-version;-texmf.tar.xz -C /opt/texlive/&texlive-year; --strip-components=1 && pushd /opt/texlive/&texlive-year; && patch -Np1 -i /sources/texlive-&texlive-version;-texmf-upstream_fixes-1.patch && popd Still as the root user, initialise the new system (the commands fmtutil-sys --all and mtxrun --generate will produce a lot of output): mktexlsr && fmtutil-sys --all && mtxrun --generate You can now proceed to , and / or if you wish to install them. Command Explanations patch -Np1 -i ../texlive-&texlive-version;-source...: This fixes a segfault in upmendex which was corrected after the source was released and is included in the binary installer. : use this if you do not have Xorg installed. make texlinks : this runs the texlinks.sh script to create 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 exists". tar -xf texlive-&texmf-version;-texmf.tar.xz -C /opt/texlive/&texlive-year; --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. patch -Np1 -i /sources/texlive-&texlive-version;-texmf...: This fixes various problems in epstopdf which were found after the source was released and are included in the binary installer. Because this is applied to the installated texmf (to minimise disk space) it is necessary to point to /sources instead of using ../ install -v -m644 ../texk/tests/TeXLive/* /opt/texlive/&texlive-year;/tlpkg/TeXLive/: This puts the perl modules TLConfig.pm and TLUtils.pm into the directory where the binary installer puts them - it is at the start of the perl @INC@ PATH within texlive when installed using the above configure switches. Without these modules, texlive is unusable. mktexlsr: Create an ls-R file which lists what was installed - this is used by kpathsea to find files. fmtutil-sys --all: This initialises the TeX formats, Metafont bases and Metapost mems. mtxrun --generate: This initialise the ConTeXt system. Contents Installed Programs Installed Libraries Installed Directories Over 300 binaries and symlinks to scripts libkpathsea.so, libptexenc.so, libsynctex.so, libtexlua52.so, libtexluajit.so /opt/texlive/&texlive-year;/bin, /opt/texlive/&texlive-year;/include, /opt/texlive/&texlive-year;/lib, /opt/texlive/&texlive-year;/texmf-dist Short Descriptions TeX programs TeX Live programs libkpathsea.so (kpathsearch) exists to look up a file in a list of directories and is used by kpsewhich. libkpathsea.so libptexenc.so is a library for Japanese pTeX (publishing TeX). libptexenc.so libsynctex.so is the SyncTeX (Synchronize TeXnology) parser library. libsynctex.so libtexlua52.so provides Lua 5.2, modified for use with LuaTeX. libtexlua52.so libtexluajit.so provides LuaJIT, modified for use with LuaJITTeX. libtexluajit.so