Debian Codegraph @

README

raw
1 $Id: README 78098 2026-02-23 22:59:59Z karl $
2 Public domain. Originally written 2005 by Karl Berry.
3
4 For a high-level overview of building TeX Live, see
5 http://tug.org/texlive/build.html. In brief:
6
7 - To configure and make the source tree, run ./Build.
8 This builds in subdirectory Work/, and installs into subdirectory inst/.
9 (Nearly everything the Build script does can be overridden via
10 environment variables; just take a look at the script for the details.)
11
12 - To build (mostly) without optimization, run ./Build --debug.
13
14 - If the make fails and you want to rebuild without starting from scratch:
15 cd Work/whatever/subdir && make
16
17 - The result of make install is not a working TeX system, unfortunately.
18 Much more needs to be done afterwards. For a starting point, see
19 the "Installing" chapter in the ./doc/tlbuild* document, online at
20 https://tug.org/texinfohtml/tlbuild.html#Installing. Looking at how
21 various distros handle TeX can also be useful.
22
23 Email [email protected] if problems with the build.
24
25 Many more details about the TL build system, such as configuring to work
26 on a single program, adding new programs or libraries, documentation
27 about the many pieces of the system, etc., are in the ./doc/tlbuild*
28 document and the sibling README* files here (which are generated from
29 that document).
30
31
32 Build information for some of the platforms.
33 See also Master/tlpkg/bin/tl-update-bindir.
34
35 aarch64-linux: Built on github, see below.
36 ./Build --enable-arm-neon=on
37
38 armhf-linux: github, see below.
39
40 x86_64-cygwin: gcc-10.2.0, cygwin-3.1.7
41 TL_CONFIGURE_ARGS="--enable-xindy --enable-shared CLISP=/path/to/clisp.exe
42 CXXFLAGS=-Wa,-mbig-obj
43 LDFLAGS='-Wl,--no-insert-timestamp -Wl,--stack,0x800000'" \
44 ./Build
45
46 i386-freebsd amd64-freebsd: github, see below.
47
48 i386-linux: github, see below.
49
50 i386-netbsd, amd64-netbsd:
51 NetBSD/amd64 10.1
52 TL_MAKE=gmake CC=gcc CXX=g++ \
53 CFLAGS=-D_NETBSD_SOURCE \
54 CXXFLAGS='-D_NETBSD_SOURCE -std=c++17' \
55 LDFLAGS='-L/usr/X11R7/lib -Wl,-rpath,/usr/X11R7/lib' \
56 ./Build --enable-xindy CLISP=/usr/local/bin/clisp
57
58 i386-solaris, x86_64-solaris: github, see below.
59
60 universal-darwin: See Master/source/mactexdoc.tar.xz.
61
62 windows:
63 Makefiles written by hand, see Master/source/windows-src.tar.xz.
64 Visual Studio 2010 and Visual Studio 2015.
65
66 Although we do not use mingw for the distributed Windows
67 binaries, TL can be built with mingw by passing
68 --host=x86_64-w64-mingw32 --build=x86_64-linux-gnu
69 to configure. For a full invocation as of 2025, see:
70 https://tug.org/pipermail/tlbuild/2025q3/005847.html
71 For another invocation, and entire workflow (not just for Windows):
72 https://tug.org/pipermail/tlbuild/2025q2/005794.html
73 A shorter message with incantations:
74 https://github.com/vtex-soft/xdvipsk/issues/17
75
76 x86_64-darwinlegacy: Built on ConTeXtGarden.
77 Mac OS X 10.6, clang 5.0, libc++ required
78 auxiliary installer binaries: Mac OS X 10.6, gcc -std=c99.
79 https://github.com/TeXLive-M/texlive-buildbot
80 http://build.contextgarden.net/waterfall?tag=c/texlive
81 (These links have info on all platforms built by Mojca.)
82
83 x86_64-linux,
84 x86_64-linuxmusl,
85 and others noted above for github:
86 built at https://github.com/TeX-Live/texlive-source/releases.
87 see ./github/scripts/build-tl.sh and workflows/main.yml.
88 Some asy binaries are also built here; see */build-asy.*.