Ask Your Question
2

Installing from source ./configure can't find texlive

asked 2022-08-12 10:13:22 +0200

Andyfc gravatar image

I'm trying to install SageMath from source on Ubuntu 20.04. ./configure says, among other things that are less a concern to me:

Checking whether SageMath should install SPKG texlive...
checking for pdflatex... /usr/local/texlive/2022/bin/x86_64-linux/pdflatex
checking for latexmk... /usr/local/texlive/2022/bin/x86_64-linux/latexmk
checking for dvipng... /usr/local/texlive/2022/bin/x86_64-linux/dvipng
checking for latex package fontspec... no
checking for latex package xunicode... no
checking for latex package xltxtra... no
checking for latex package amssymb... yes
checking for latex package amsfonts... yes
checking for latex package graphicx... no
checking for latex package mathrsfs... no
checking for latex package textcomp... no
checking for latex package tikz... no
checking for latex package tikz-qtree... no
checking for latex package iftex... yes
checking for latex package tkz-berge... no
checking for latex package tkz-graph... no
checking for latex package xy... no
checking for latex package babel... no
checking for latex package subfigure... no
checking for latex package hyperref... no
checking for latex package hypcap... no
checking for latex package xr... no
checking for latex package tgtermes... no
checking for latex package fncychap... no
configure: no suitable system package found for SPKG texlive

I always install the latest version of texlive, and ./configure does indeed find pdflatex, as you see. All the packages are there, I use some of them all the time and I keep my installation updated frequently. The $PATH is set up as per the instructions of texlive. I really wouldn't like Sage to install another texlive in my system because that will break things.

Is there any way I can tell ./configure where to find those packages?

edit retag flag offensive close merge delete

Comments

Sage will not install another texlive. The sentence "Checking whether SageMath should install SPKG texlive" is a generic sentence which does not make sense here, because texlive is a dummy package (its spkg-install is empty). It is there only to give suggestions on how to install it at the end of the configure log depending on the operating system.

Sébastien gravatar imageSébastien ( 2022-08-25 11:54:16 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2022-08-25 12:03:26 +0200

Sébastien gravatar image

updated 2022-08-25 12:03:49 +0200

As seen in the build/pkgs/texlive/spkg-configure.m4 file, the ./configure is using kpsewhich to detect whether you have each of the latex packages installed.

In my case, I obtain:

$ kpsewhich tikz.sty
/usr/share/texlive/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty

Do you have kpsewhich installed? If no, then, the configure script of Sage should be fixed in order to warn the user that kpsewhich is not installed. If you have kpsewhich installed, then you need to figure out why it does not see your texlive installation.

edit flag offensive delete link more

Comments

... kpsewhich -show-path .sty should give the places where it searches for

Sébastien gravatar imageSébastien ( 2022-08-25 16:18:11 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-08-12 10:13:22 +0200

Seen: 153 times

Last updated: Aug 25 '22