Ask Your Question

How to specify existing software when building from source?

asked 2017-07-21 14:26:08 -0500

elbie gravatar image

I'm building sage-7.6 on a CentOS6 machine as per the instructions found on the docs pages, about compiling from source, and it succeeds, but the resulting distribution is 8G in size which is a little unwieldy for deploying to multiple machines.

I notice that it's compiling its own versions of a bunch of things we already have installed, though maybe not at quite exactly the same version number.

Is there a way to use the already installed versions of gcc, python, etc, rather than have sage build its own versions?

edit retag flag offensive close merge delete


It might be possible but not guaranteed to be easy, specially if the versions that you are using do not have features that the sage source uses. Not sure if this will be useful at all, but Arch linux seems to build the sagemath package in this way. You can check out their PGKBUILD file and patches here. PKGBUILD files are more or less easy to follow, but you can read about them here.

fidbc gravatar imagefidbc ( 2017-07-21 17:27:26 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-07-22 16:54:29 -0500

This is sadly not supported for the moment (release 8.0 of Sage). Though this is a hot topic that for example has been discussed in this sage-devel thread.

There has been effort to have Sage using system packages at least on the following platforms:

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: 2017-07-21 14:26:08 -0500

Seen: 51 times

Last updated: Jul 22