Required packages to build SageMath on Ubuntu
Here is the minimal list of Ubuntu packages to install in order to build SageMath from sources (this is for Ubuntu 18.04):
- git
- m4
- gfortran
- libssl-dev
- python-pip
automake (should no longer be required after #26298 is merged)
In addition, it is recommended to install
texlive-generic-extra (to generate pdf documentation)
texlive-xetex (to convert Jupyter notebooks to pdf)
latexmk (to generate pdf documentation)
pandoc (to convert Jupyter notebooks to pdf)
dvipng (to render text with LaTeX in Matplotlib)
default-jdk (to run the Jmol 3D viewer from the console and generate images for 3D plots in the documentation)
ffmpeg (to produce animations)
libavdevice-dev (to produce animations)
Besides, to make SageMath use a maximum of system (Ubuntu) packages instead of building its own versions, see here.
For more details, see the Prerequisites section of Sage Installation Guide.