Ask Your Question
1

Installing multiple versions of sage

asked 2013-01-05 21:39:17 +0100

afleck gravatar image

updated 2013-01-05 21:44:06 +0100

Basically, I want to install multiple versions of sage without having to recompile for each version. Say I have sage-5.5 in a directory named "sage." Is there a way to use my existing sage to upgrade to 5.6-beta2 without having to rebuild everything and to still retain both copies?

EDIT: I tried sage.misc.package.upgrade, but that didn't work with the beta.

edit retag flag offensive close merge delete

Comments

1

Well, you could just make a complete copy of your sage-5.5 (maybe named, sage-5.5-to-be-upgraded) and then upgrade that. Or? Maybe I'm missing something to your question.

kcrisman gravatar imagekcrisman ( 2013-01-05 22:55:02 +0100 )edit

I was trying to do it with the beta, I'm not sure how to manually upgrade sage.

afleck gravatar imageafleck ( 2013-01-06 09:24:28 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-01-07 07:25:23 +0100

ppurka gravatar image

updated 2013-01-07 07:27:45 +0100

I will assume you are in a unix environment.

  1. Copy your sage to a new directory using something like

    cd [one directory above where your sage-5.5 is]

    cp -Pr sage-5.5 sage-5.6.beta2

  2. Fix the installation in the new directory:

    ./sage-5.6.beta2/sage -c

  3. Determine the upgrade path URL. For instance, if you are using the main sage server, then the URL is http://boxen.math.washington.edu/home...

  4. Upgrade the copied directory to the newer version:

    ./sage-5.6.beta2/sage -upgrade http://boxen.math.washington.edu/home...

That should upgrade your sage installation, while keeping the old installation intact. Change the URL to a mirror that is closer to your location so that the download happens faster (we can only hope that it downloads faster, given how crazy the routers work).

I must add that this kind of update is unsupported. I think only upgrades between release versions are supported.

edit flag offensive delete link more

Comments

Well, it's supported, just not always guaranteed to work as an "in-progress" beta. But it should work fine.

kcrisman gravatar imagekcrisman ( 2013-01-07 08:50:36 +0100 )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

Stats

Asked: 2013-01-05 21:39:17 +0100

Seen: 857 times

Last updated: Jan 07 '13