First time here? Check out the FAQ!

Ask Your Question
0

How to specify existing software when building from source?

asked 7 years ago

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?

Preview: (hide)

Comments

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 ( 7 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 7 years ago

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:

Preview: (hide)
link

Comments

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:

https://fedoraproject.org/wiki/Bundled_Libraries?rd=Packaging:Bundled_Libraries

Cheers, chris.

Chris Denice gravatar imageChris Denice ( 7 years ago )

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: 7 years ago

Seen: 413 times

Last updated: Jul 22 '17