Error building sage on Xubuntu 18.04.4 LTS

35 views
Skip to first unread message

K2

unread,
Mar 3, 2020, 5:59:05 AM3/3/20
to sage-support
Am not able to build sage from the source code on my xubuntu.
I am getting an error in build of r-3.6.2.p0
I have attached the log files below


r-3.6.2.p0.log

Dima Pasechnik

unread,
Mar 3, 2020, 6:14:52 AM3/3/20
to sage-support
This is a known problem.
One way to work around it is to install R and related packages from the system.
We recommend that you do

$ sudo apt-get install bc binutils bzip2 cliquer curl g++ g++ gcc gcc
gfan gfortran git gmp-ecm lcalc libboost-dev libbz2-dev libcliquer-dev
libcurl4-openssl-dev libec-dev libecm-dev libffi-dev libflint-arb-dev
libflint-dev libfreetype6-dev libgd-dev libgf2x-dev libgivaro-dev
libgmp-dev libgsl-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 libreadline-dev
librw-dev libsqlite3-dev libsymmetrica2-dev libz-dev libzmq3-dev m4
make nauty pari-elldata pari-galdata pari-galpol pari-gp2c
pari-seadata patch perl pkg-config python3 tachyon tar xz-utils yasm
cmake coinor-cbc coinor-libcbc-dev libboost-dev libisl-dev
libterm-readline-gnu-perl ninja-build r-base-dev

to install as many packages needed by Sage on the system as possible.

After that, you might need to run at least

make openblas-clean
./configure

and inspect its output to make sure that system R will be used, and no R built.
You'd see

r-3.6.2.p0: using system package;
SPKG will not be installed



Then run

make

HTH
Dmitrii

K2

unread,
Mar 3, 2020, 9:55:09 AM3/3/20
to sage-support
Hi,
Thanks for the quick help.
I have experimented with installing several versions of R :
 3.6.2-1bionic
 3.6.3-1bionic

But None of them are recognized, and the configure still says:
r-3.6.2.p0:                                  no suitable system package; will be installed as an SPKG

Dima Pasechnik

unread,
Mar 3, 2020, 11:10:01 AM3/3/20
to sage-support
what exactly are these versions of R packages? (with urls) One needs development packages, ones that come with headers.

Please  post config.log
as well

--
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/b80e1836-b5e1-44f4-9eb3-eb908f0ec45b%40googlegroups.com.

Dima Pasechnik

unread,
Mar 3, 2020, 11:41:36 AM3/3/20
to sage-support
anyhow, Sage needs R version 3.4.4 or later,
so this is provided by Ubuntu's r-base-dev package.

Did you try it?
(Unless you must use a newer R for some reason...)

K2

unread,
Mar 3, 2020, 2:13:59 PM3/3/20
to sage-support
It worked.
I just removed everything and downloaded and built it again, following to the steps in your first reply.
Thanks a lot :)
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-s...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages