@@ -4,38 +4,58 @@ set -euxo pipefail
4
4
ARCH=$( uname -m)
5
5
6
6
if [[ " $ARCH " == " ppc64le" ]]; then
7
- echo " Installing TeX Live from source for $ARCH "
8
-
9
- # Download and extract source
10
- wget https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2025/texlive-20250308-source.tar.xz
11
- tar -xf texlive-20250308-source.tar.xz
12
- cd texlive-20250308-source
7
+ echo " Installing TeX Live from source for $ARCH ..."
13
8
14
9
# Install build dependencies
15
10
dnf install -y gcc-toolset-13 perl make libX11-devel libXt-devel \
16
11
zlib-devel freetype-devel libpng-devel ncurses-devel \
17
12
gd-devel libtool wget tar xz bison flex libXaw-devel
18
13
14
+ # Step 1: Download and extract the TeX Live source
15
+ wget https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2025/texlive-20250308-source.tar.xz
16
+ tar -xf texlive-20250308-source.tar.xz
17
+ cd texlive-20250308-source
18
+
19
+ # Enable newer GCC toolchain
19
20
source /opt/rh/gcc-toolset-13/enable
20
21
21
- # Create build directory
22
+ # Create build directory and build
22
23
mkdir ../texlive-build
23
24
cd ../texlive-build
24
-
25
- # Configure, build, install
26
25
../texlive-20250308-source/configure --prefix=/usr/local/texlive
27
26
make -j" $( nproc) "
28
27
make install
29
28
30
29
# Symlink for pdflatex
31
30
cd /usr/local/texlive/bin/powerpc64le-unknown-linux-gnu
32
- ln -s pdftex pdflatex
31
+ ln -sf pdftex pdflatex
33
32
34
- # Cleanup TeX source to reduce image size
33
+ # Cleanup sources to reduce image size
35
34
rm -rf /texlive-20250308-source /texlive-build
36
35
37
- export PATH=" /usr/local/texlive/bin/powerpc64le-unknown-linux-gnu:$PATH "
36
+ # Step 2: Run TeX Live installer for runtime tree setup
37
+ cd /
38
+ wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
39
+ tar -xzf install-tl-unx.tar.gz
40
+ cd install-tl-2* /
41
+
42
+ # Create a custom install profile
43
+ TEXLIVE_INSTALL_PREFIX=" /usr/local/texlive"
44
+ cat << EOF > texlive.profile
45
+ selected_scheme scheme-small
46
+ TEXDIR $TEXLIVE_INSTALL_PREFIX
47
+ TEXMFCONFIG ~/.texlive2025/texmf-config
48
+ TEXMFVAR ~/.texlive2025/texmf-var
49
+ option_doc 0
50
+ option_src 0
51
+ EOF
52
+
53
+ ./install-tl --profile=texlive.profile --custom-bin=$TEXLIVE_INSTALL_PREFIX /bin/powerpc64le-unknown-linux-gnu
54
+
55
+ # Set up environment
56
+ export PATH=" $TEXLIVE_INSTALL_PREFIX /bin/powerpc64le-unknown-linux-gnu:$PATH "
38
57
pdflatex --version
58
+ tlmgr --version
39
59
40
60
elif [[ " $ARCH " == " x86_64" ]]; then
41
61
# tex live installation
0 commit comments