gfortran installating

23 views
Skip to first unread message

Prasanth G. Narasimha-Shenoi

unread,
Jan 27, 2020, 6:38:44 AM1/27/20
to sage-support
I have installed CentOS version 8 to my server.  and I am tring to install sage.  While installation there is an error
Error building gfortran-9.2.0
...

What is to be done?

Dima Pasechnik

unread,
Jan 27, 2020, 7:29:34 AM1/27/20
to sage-support
On Mon, Jan 27, 2020 at 11:38 AM Prasanth G. Narasimha-Shenoi
<prasa...@gmail.com> wrote:
>
> I have installed CentOS version 8 to my server. and I am tring to install sage. While installation there is an error
> Error building gfortran-9.2.0

I suggest that you install gfortran system package, then Sage won't
need to try to build gfortran.
the package is called gcc-gfortran; you'll also need gcc-g++

here is a complete list to install, from
https://doc.sagemath.org/html/en/installation/source.html#linux-recommended-installation

$ sudo yum install binutils xz gcc gcc-c++ gcc-gfortran make m4 perl \
tar git patch perl-ExtUtils-MakeMaker openssl openssl-devel zlib-devel \
bzip2 bzip2-devel xz-devel gmp gmp-devel libcurl-devel curl yasm \
pkg-config ntl-devel mpfr-devel libmpc-devel libsymmetrica-devel \
eclib-devel gmp-ecm-devel lrcalc-devel isl-devel givaro-devel \
pari-devel pari-elldata pari-seadata pari-galdata pari-galpol \
m4ri-devel m4rie-devel L-function-devel

(more precisely, this list is for Fedora LInux, but it should be the same...)

after you're done installing these, in Sage's source directory, do

make distclean
./configure && make

HTH
Dmitrii

> ...
>
> What is to be done?
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/f395bbe2-eccf-41c1-b0aa-0ac711846920%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages