Ask Your Question

SageMath installation failed in Ubuntu 20.04

asked 2022-01-12 02:06:27 +0100

mathsnewbie gravatar image

updated 2022-01-21 21:49:36 +0100

FrédéricC gravatar image

I tried compiling SageMath 9.4 using source files downloaded from the website. Ran ./configure and the make. The build appeared to have failed with two errors:

make[1]: *** [Makefile:39: all-start] Error 1
make: *** [Makefile:13: all] Error 2


$ uname -a with output
Linux XXXX-desktop 5.11.0-46-generic #51~20.04.1-Ubuntu SMP Fri Jan 7 06:51:40 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • First Error -> The problem appears to be missing libraries (as seen in cmake-3.21.0.log):

    The imported target "Qt5::Gui" references the file
    but this file does not exist.

    Output from directory -> /usr/lib/x86_64-linux-gnu$ ls -l libE*

    lrwxrwxrwx 1 root root     20 Nov 22 08:23 ->
    -rw-r--r-- 1 root root 267704 Nov 22 08:23
    lrwxrwxrwx 1 root root     15 Dec  9 22:58 ->
    -rw-r--r-- 1 root root  80512 Nov 24  2020
  • Second Error -> Non numeric error from Fortran print statement (as seen in config.log):

    configure:11924: gfortran -c   conftest.f >&5
        2 |   program freeform
          |   1
    Error: Non-numeric character in statement label at (1)
        4 |        print *, 'Hello ', &
          |                          1
    Error: Expected expression in PRINT statement at (1)
        5 |           'world.'
          |           1
    Error: Invalid character in name at (1)
    configure:11924: $? = 1
    configure: failed program was:
    |   program freeform

Not sure if I can use a symbolic link name to resolve 1st error. Not sure how to resolve the Fortran error (Years since I ever did Fortran programming).

Tried attaching files, but some issues regarding requiring some points?

Any solution please.

edit retag flag offensive close merge delete


Welcome to Ask Sage! Thank you for your question.

slelievre gravatar imageslelievre ( 2022-01-12 10:23:28 +0100 )edit

1 Answer

Sort by » oldest newest most voted

answered 2022-01-13 11:43:51 +0100

eric_g gravatar image

updated 2022-01-14 02:42:08 +0100

slelievre gravatar image

Prior to SageMath installation, have you performed the following

sudo apt-get install bc binutils bzip2 ca-certificates cliquer cmake curl ecl eclib-tools fflas-ffpack flintqs g++ gcc gfan gfortran glpk-utils gmp-ecm lcalc libatomic-ops-dev libboost-dev libbraiding-dev libbrial-dev libbrial-groebner-dev libbz2-dev libcdd-dev libcdd-tools libcliquer-dev libcurl4-openssl-dev libec-dev libecm-dev libffi-dev libflint-arb-dev libflint-dev libfreetype6-dev libgc-dev libgd-dev libgf2x-dev libgiac-dev libgivaro-dev libglpk-dev libgmp-dev libgsl-dev libhomfly-dev libiml-dev liblfunction-dev liblrcalc-dev liblzma-dev libm4rie-dev libmpc-dev libmpfi-dev libmpfr-dev libncurses5-dev libntl-dev libopenblas-dev libpari-dev libpcre3-dev libplanarity-dev libppl-dev libpython3-dev libreadline-dev librw-dev libsqlite3-dev libssl-dev libsuitesparse-dev libsymmetrica2-dev libz-dev libzmq3-dev libzn-poly-dev m4 make nauty openssl palp pari-doc pari-elldata pari-galdata pari-galpol pari-gp2c pari-seadata patch perl pkg-config planarity ppl-dev python3 python3-distutils r-base-dev r-cran-lattice sqlite3 sympow tachyon tar tox xcas xz-utils yasm

as recommended in ?

edit flag offensive delete link more

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


Asked: 2022-01-12 02:06:27 +0100

Seen: 73 times

Last updated: Jan 14