2024-10-31 SageMath 10.4 Compiling successfully on RHEL9. cd /opt/sagemath # made writable to this user wget https://mirror.dogado.de/sage/src/sage-10.4.tar.gz tar -xzf sage-10.4.tar.gz cd sage-10.4 ./configure make -j4 cd ../bin ln -s ../sagemath/sage-10.4/sage sage Note that this was after the package-installation listed below (dnf install ...). Older notes follow, about an attempted "greedy compilation" to get more options, locally provided. # with SageMath 10.4: # I tried configure/make with asking for all options and for not using the "system" versions of packages (so, bigger compilation work and installed size, but hoped to be more capable and portable [copyable to other fairly similar systems]); had to renege to saying to use RHEL9 system gfortran as there was a compilation error with gfortran, and there were a couple of apparently trivial complaints about xindy and free_fonts bundled packages being just placeholders, but it did seem to run ok after a few runs of make / make install [although the latter is said to be a no-op]. Then, having deleted the source directory (as the given PREFIX was outside it) the files under PREFIX *didn't* run. Environment variables from the compilation were needed? Or the source/build place and/or the sage script therein were needed? Or I just imagined it working before? # But, when starting afresh, running plain ./configure && make without any PREFIX (defaults to a prefix within the source/build dir) and without any exhortations to ignore system packages or build extras, it worked on RHEL9. Probably the extra packages not thereby enabled are for extra-obscure stuff, much outside my usual interest. # older efforts dnf install autoconf automake binutils boost-devel bzip2 bzip2-devel clang cmake curl diffutils fflas-ffpack-devel findutils gc gcc gcc-c++ gcc-gfortran gc-devel gd gd-devel gengetopt git givaro givaro-devel glpk glpk-devel glpk-utils gmp gmp-devel gnu-free-mono-fonts gnu-free-sans-fonts gnu-free-serif-fonts gnupg2 graphviz gsl gsl-devel ImageMagick iml iml-devel info isl-devel latexmk libatomic_ops libatomic_ops-devel libbraiding-devel libcurl-devel libffi libffi-devel libjpeg-turbo-devel libmpc libmpc-devel libtool libxml2-devel m4 make meson mpfr-devel ncurses-devel ninja-build openblas-devel openssh openssl openssl-devel pandoc patch patchelf perl perl-ExtUtils-Embed perl-ExtUtils-MakeMaker perl-File-Slurp perl-IPC-Cmd perl-JSON perl-TermReadKey perl-Term-ReadLine-Gnu perl-XML-LibXML perl-XML-LibXSLT perl-XML-Writer ppl ppl-devel python3 python3-devel python3-setuptools qhull-devel R R-devel readline-devel sqlite sqlite-devel suitesparse suitesparse-devel tar tbb-devel texinfo tox which xz xz-devel zeromq zeromq-devel zlib-devel (mkdir and make writable to this user) cd /opt/sagemath wget https://mirror.dogado.de/sage/src/sage-10.4.tar.gz tar -xzf sage-10.4.tar.gz cd sage-10.4 ./configure with all this clobber (below); make -j4 and make install -j4 a few times (still getting errors about xindy and freefonts being only "none" spkgs to request installation of system packages, but somehow causing a problem anyway - seems to have installed and worked anyway to run ../10-4/bin/sage then deleted the unpacked source tree, leaving the installation directory (PREFIX) .... now it had errors and wouldn't run... ./configure --prefix=/opt/sagemath/10-4 --disable-silent-rules --with-system-4ti2=no --with-system-gcc=no --with-system-gmp=no --with-system-glpk=no --with-system-zlib=no --with-system-_develop=no --with-system-_prereq=no --with-system-_recommended=no --with-system-appdirs=no --with-system-virtualenv=no --with-system-tox=no --with-system-bliss=no --with-system-boost_cropped=no --with-system-brial=no --with-system-m4ri=no --with-system-libpng=no --with-system-bzip2=no --with-system-cachetools=no --with-system-cbc=no --with-system-openblas=no --with-system-gfortran=yes --with-system-texlive_luatex=yes --with-system-xindy=yes --with-system-cddlib=no --with-system-chardet=no --with-system-cliquer=no --with-system-cmake=no --with-system-colorama=no --with-system-coxeter3=no --with-system-curl=no --with-system-distlib=no --with-system-ecl=no --with-system-gc=no --with-system-libatomic_ops=no --with-system-eclib=no --with-system-ntl=no --with-system-pari=no --with-system-readline=no --with-system-ncurses=no --with-system-flint=no --with-system-mpfr=no --with-system-ecm=no --with-system-fflas_ffpack=no --with-system-givaro=no --with-system-ffmpeg=no --with-system-filelock=no --with-system-fplll=no --with-system-fricas=no --with-system-gap=no --with-system-gengetopt=no --with-system-gf2x=no --with-system-gfan=no --with-system-giac=no --with-system-git=no --with-system-gp2c=no --with-system-graphviz=no --with-system-gsl=no --with-system-iconv=no --with-system-igraph=no --with-system-imagemagick=no --with-system-iml=no --with-system-info=no --with-system-isl=no --with-system-lcalc=no --with-system-libbraiding=no --with-system-libffi=no --with-system-libgd=no --with-system-libgraphviz=no --with-system-libhomfly=no --with-system-libjpeg=no --with-system-liblzma=no --with-system-xz=no --with-system-libnauty=no --with-system-nauty=no --with-system-libsemigroups=no --with-system-libxml2=no --with-system-linbox=no --with-system-m4rie=no --with-system-llvm=no --with-system-lrcalc=no --with-system-lrslib=no --with-system-mathjax=no --with-system-maxima=no --with-system-meson=no --with-system-mpc=no --with-system-mpfi=no --with-system-ninja_build=no --with-system-onetbb=no --with-system-openssl=no --with-system-python3=no --with-system-palp=no --with-system-pandoc=no --with-system-pari_elldata=no --with-system-pari_galdata=no --with-system-pari_galpol=no --with-system-pari_nftables=no --with-system-pari_seadata=no --with-system-pari_seadata_small=no --with-system-patch=no --with-system-patchelf=no --with-system-pdf2svg=no --with-system-perl_cpan_polymake_prereq=no --with-system-perl_mongodb=no --with-system-perl_term_readline_gnu=no --with-system-pkgconf=no --with-system-planarity=no --with-system-polymake=no --with-system-ppl=no --with-system-primecount=no --with-system-primesieve=no --with-system-qhull=no --with-system-r=no --with-system-rw=no --with-system-sbcl=no --with-system-singular=no --with-system-sqlite=no --with-system-suitesparse=no --with-system-symengine=no --with-system-symmetrica=no --with-system-sympow=no --with-system-tachyon=no --with-system-texlive=no --with-system-zeromq=no --with-system-admcycles=no --with-system-alabaster=no --with-system-anyio=no --with-system-appnope=no --with-system-argon2_cffi=no --with-system-argon2_cffi_bindings=no --with-system-arrow=no --with-system-asttokens=no --with-system-async_lru=no --with-system-attrs=no --with-system-auditwheel_or_delocate=no --with-system-babel=no --with-system-beautifulsoup4=no --with-system-beniget=no --with-system-biopython=no --with-system-bleach=no --with-system-calver=no --with-system-certifi=no --with-system-cffi=no --with-system-charset_normalizer=no --with-system-comm=no --with-system-contourpy=no --with-system-conway_polynomials=no --with-system-cppy=no --with-system-cvxopt=no --with-system-cvxpy=no --with-system-cycler=no --with-system-cylp=no --with-system-cypari=no --with-system-cysignals=no --with-system-cython=no --with-system-database_cubic_hecke=no --with-system-database_knotinfo=no --with-system-dateutil=no --with-system-debugpy=no --with-system-ipykernel=no --with-system-decorator=no --with-system-defusedxml=no --with-system-docutils=no --with-system-dot2tex=no --with-system-ecos_python=no --with-system-editables=no --with-system-entrypoints=no --with-system-exceptiongroup=no --with-system-executing=no --with-system-fastjsonschema=no --with-system-flit_core=no --with-system-fonttools=no --with-system-fpylll=no --with-system-numpy=no --with-system-fqdn=no --with-system-furo=no --with-system-gap_jupyter=no --with-system-gast=no --with-system-gitpython=no --with-system-gmpy2=no --with-system-hatchling=no --with-system-httpcore=no --with-system-httpx=no --with-system-idna=no --with-system-imagesize=no --with-system-importlib_metadata=no --with-system-importlib_resources=no --with-system-ipympl=no --with-system-ipython=no --with-system-ipython_genutils=no --with-system-ipywidgets=no --with-system-isoduration=no --with-system-jedi=no --with-system-jinja2=no --with-system-json5=no --with-system-jsonpointer=no --with-system-jsonschema=no --with-system-jsonschema_specifications=no --with-system-jupymake=no --with-system-jupyter_client=no --with-system-jupyter_core=no --with-system-jupyter_events=no --with-system-jupyter_jsmol=no --with-system-jupyter_lsp=no --with-system-jupyter_server=no --with-system-jupyter_server_terminals=no --with-system-jupyter_sphinx=no --with-system-jupyterlab=no --with-system-jupyterlab_mathjax2=no --with-system-jupyterlab_pygments=no --with-system-jupyterlab_server=no --with-system-jupyterlab_widgets=no --with-system-kiwisolver=no --with-system-lrcalc_python=no --with-system-markupsafe=no --with-system-mathics=no --with-system-mathics_scanner=no --with-system-matplotlib=no --with-system-matplotlib_inline=no --with-system-memory_allocator=no --with-system-meson_python=no --with-system-mistune=no --with-system-mpmath=no --with-system-nbclient=no --with-system-nbconvert=no --with-system-nbformat=no --with-system-nest_asyncio=no --with-system-networkx=no --with-system-nibabel=no --with-system-notebook=no --with-system-notebook_shim=no --with-system-notedown=no --with-system-ore_algebra=no --with-system-osqp_python=no --with-system-overrides=no --with-system-p_group_cohomology=no --with-system-packaging=no --with-system-palettable=no --with-system-pandoc_attributes=no --with-system-pandocfilters=no --with-system-pari_jupyter=no --with-system-parso=no --with-system-pathspec=no --with-system-pexpect=no --with-system-phitigra=no --with-system-pickleshare=no --with-system-pillow=no --with-system-pint=no --with-system-pip=no --with-system-pkgconfig=no --with-system-platformdirs=no --with-system-pluggy=no --with-system-ply=no --with-system-pplpy=no --with-system-primecountpy=no --with-system-prometheus_client=no --with-system-prompt_toolkit=no --with-system-psutil=no --with-system-ptyprocess=no --with-system-pure_eval=no --with-system-py=no --with-system-pybind11=no --with-system-pybtex=no --with-system-pycosat=no --with-system-pycparser=no --with-system-pycryptosat=no --with-system-pygments=no --with-system-pygraphviz=no --with-system-pynormaliz=no --with-system-pyparsing=no --with-system-pyppeteer=no --with-system-pyproject_api=no --with-system-pyproject_metadata=no --with-system-pyrsistent=no --with-system-pyscipopt=no --with-system-pysingular=no --with-system-pytest=no --with-system-pytest_mock=no --with-system-pytest_xdist=no --with-system-python_build=no --with-system-python_igraph=no --with-system-python_json_logger=no --with-system-pythran=no --with-system-pytz=no --with-system-pytz_deprecation_shim=no --with-system-pyx=no --with-system-pyyaml=no --with-system-pyzmq=no --with-system-qdldl_python=no --with-system-referencing=no --with-system-requests=no --with-system-rfc3339_validator=no --with-system-rfc3986_validator=no --with-system-rpy2=no --with-system-rst2ipynb=no --with-system-sagelib=no --with-system-sagenb_export=no --with-system-sagetex=no --with-system-scipy=no --with-system-scs=no --with-system-send2trash=no --with-system-setuptools=no --with-system-setuptools_scm=no --with-system-singular_jupyter=no --with-system-six=no --with-system-slabbe=no --with-system-snappy=no --with-system-sniffio=no --with-system-snowballstemmer=no --with-system-soupsieve=no --with-system-sphinx=no --with-system-sphinx_basic_ng=no --with-system-sphinx_copybutton=no --with-system-sphinx_inline_tabs=no --with-system-sphinxcontrib_applehelp=no --with-system-sphinxcontrib_devhelp=no --with-system-sphinxcontrib_htmlhelp=no --with-system-sphinxcontrib_jsmath=no --with-system-sphinxcontrib_qthelp=no --with-system-sphinxcontrib_serializinghtml=no --with-system-sphinxcontrib_websupport=no --with-system-sqlalchemy=no --with-system-stack_data=no --with-system-surface_dynamics=no --with-system-symengine_py=no --with-system-sympy=no --with-system-terminado=no --with-system-texttable=no --with-system-tinycss2=no --with-system-tomli=no --with-system-tornado=no --with-system-traitlets=no --with-system-trove_classifiers=no --with-system-types_python_dateutil=no --with-system-typing_extensions=no --with-system-tzlocal=no --with-system-uri_template=no --with-system-urllib3=no --with-system-wcwidth=no --with-system-webcolors=no --with-system-webencodings=no --with-system-websocket_client=no --with-system-wheel=no --with-system-widgetsnbextension=no --with-system-zipp=no --enable-4ti2 --enable-benzene --enable-bliss --enable-buckygen --enable-cbc --enable-ccache --enable-coxeter3 --enable-csdp --enable-cunningham_tables --enable-cvxpy --enable-cylp --enable-d3js --enable-database_cremona_ellcurve --enable-database_cubic_hecke --enable-database_jones_numfield --enable-database_knotinfo --enable-database_kohel --enable-database_mutation_class --enable-database_odlyzko_zeta --enable-database_stein_watkins --enable-database_stein_watkins_mini --enable-database_symbolic_data --enable-dot2tex --enable-dsdp --enable-e_antic --enable-ecos_python --enable-fricas --enable-frobby --enable-gap_jupyter --enable-gap_packages --enable-glucose --enable-gp2c --enable-igraph --enable-isl --enable-jupymake --enable-kenzo --enable-kissat --enable-latte_int --enable-libnauty --enable-libogg --enable-libsemigroups --enable-lidia --enable-lrslib --enable-mathics --enable-mathics_scanner --enable-matroid_database --enable-mcqd --enable-meataxe --enable-modular_resolution --enable-mpfrcx --enable-msolve --enable-normaliz --enable-notedown --enable-onetbb --enable-osqp_python --enable-p_group_cohomology --enable-palettable --enable-pandoc_attributes --enable-papilo --enable-pari_elldata --enable-pari_galpol --enable-pari_jupyter --enable-pari_nftables --enable-pari_seadata --enable-perl_term_readline_gnu --enable-pint --enable-plantri --enable-polymake --enable-polytopes_db_4d --enable-pycosat --enable-pynormaliz --enable-pyscipopt --enable-pysingular --enable-python_flint --enable-python_igraph --enable-qdldl_python --enable-qepcad --enable-rst2ipynb --enable-rubiks --enable-saclib --enable-sage_numerical_backends_coin --enable-sage_numerical_backends_cplex --enable-sage_numerical_backends_gurobi --enable-sage_sws2rst --enable-sagemath_bliss --enable-sagemath_categories --enable-sagemath_coxeter3 --enable-sagemath_doc_pdf --enable-sagemath_environment --enable-sagemath_mcqd --enable-sagemath_meataxe --enable-sagemath_objects --enable-sagemath_repl --enable-sagemath_sirocco --enable-sagemath_tdlib --enable-scip --enable-scip_sdp --enable-scs --enable-singular_jupyter --enable-sirocco --enable-soplex --enable-symengine --enable-symengine_py --enable-tdlib --enable-texlive --enable-texttable --enable-tides --enable-topcom