Ask Your Question
1

SageMath installation failed in Ubuntu 20.04

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

mathsnewbie gravatar image

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

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

System:

$ 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
       "/usr/lib/x86_64-linux-gnu/libEGL.so"
    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 libEGL_mesa.so.0 -> libEGL_mesa.so.0.0.0
    -rw-r--r-- 1 root root 267704 Nov 22 08:23 libEGL_mesa.so.0.0.0
    lrwxrwxrwx 1 root root     15 Dec  9 22:58 libEGL.so.1 -> libEGL.so.1.1.0
    -rw-r--r-- 1 root root  80512 Nov 24  2020 libEGL.so.1.1.0
    
  • Second Error -> Non numeric error from Fortran print statement (as seen in config.log):

    configure:11924: gfortran -c   conftest.f >&5
    conftest.f:2:3:
        2 |   program freeform
          |   1
    Error: Non-numeric character in statement label at (1)
    conftest.f:4:26:
        4 |        print *, 'Hello ', &
          |                          1
    Error: Expected expression in PRINT statement at (1)
    conftest.f:5:11:
        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 libEGL.so 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

Comments

Welcome to Ask Sage! Thank you for your question.

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

1 Answer

Sort by » oldest newest most voted
3

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

eric_g gravatar image

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

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 https://doc.sagemath.org/html/en/inst... ?

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

Stats

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

Seen: 507 times

Last updated: Jan 14 '22