Ask Your Question

Upgrade sage: build from sources?

asked 2011-07-13 18:16:37 +0200

Sammy Black gravatar image

I'm using an older version of Sage (4.5.3) in Ubuntu 10.04. I like it, but I'd like to upgrade to a more recent version. From the command prompt, calling

$ sage -upgrade

throws a scary warning at me:

 ** WARNING: This is a source-based upgrade, which could take hours,
 ** fail, and render your Sage install useless!! This is a binary
 ** install, so upgrading in place is *not* recommended unless you are
 ** an expert.  Please consider installing a new binary from
 ** instead.

Question: Is there really a significant advantage to building the binaries from source?

I am running a Sony Vaio laptop on 4 2.13 GHz Intel cores. (I can specify more stats if it helps somebody to give me good advice.)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-07-13 18:25:42 +0200

Shashank gravatar image

I have never build sage from source. It is useful only if you plan on working on the development of sage or modify the source code. Your notebooks are not stored in sage directory but home. So you can just delete the present version, download sage 4.7 and install the binaries. That should work for most users.

edit flag offensive delete link more


Even for development, I use a binary install usually.

niles gravatar imageniles ( 2011-07-14 11:03:36 +0200 )edit

I did not know. I tried modifying code of sage for some reason and I build sage from source. Can you give a reference on how to change code while using binary install.

Shashank gravatar imageShashank ( 2011-07-14 19:35:42 +0200 )edit

I think it's the same set of instructions: modify code in $SAGE_ROOT/devel/sage, and then rebuild using sage -b.

niles gravatar imageniles ( 2011-07-14 20:48:21 +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


Asked: 2011-07-13 18:16:37 +0200

Seen: 551 times

Last updated: Jul 13 '11