Ask Your Question

How to specify existing software when building from source?

asked 2017-07-21 21:26:08 +0200

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-22 00:27:26 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-22 23:54:29 +0200

vdelecroix gravatar image

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


Landed on this post because I would have been interested into packaging Sage for Mageia Linux. But that's currently impossible due to this reason, far too much bundled packages in the source code :(

If this can be of some motivations for the developers to move towards dynamic linking, this little summary from Fedora linux is very well made and explains the issues which prevent these kind of packages to be distributed in most distro:

Cheers, chris.

Chris Denice gravatar imageChris Denice ( 2017-11-10 14:58:36 +0200 )edit

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 21:26:08 +0200

Seen: 335 times

Last updated: Jul 22 '17