Ask Your Question
1

Sagemath upgrade not recognised as option in Sagemath v.9.5.rc4

asked 2022-03-08 16:43:08 +0100

System User gravatar image

updated 2022-03-08 17:11:14 +0100

Hello there, I have been trying to upgrade my Savemath dev version from 9.5.rc4 to 9.6.rc4 with the upgrade option. it seems like the option isn't available.. when I run ./sage --help it says use the --upgrade version but it doesn't work. Is there another way to get from 9.5.rc4 to 9.6.rc4? Below is a short transcript of what I did:

    user@debian-s01a:~/sage-9.5.rc4$ ./sage --upgrade 9.6.rc4
    response: Error: unknown option: --upgrade.

    user@debian-s01a:~/sage-9.5.rc4$ ./sage --help
    shortened response:--upgrade [version] -- download, build and install the given version. Here,
                             'version' is a git branch or tag name. Useful values
                             are 'master' (the current development version, this
                             is the default) or a version number like '5.13'.
    user@debian-s01a:~/sage-9.5.rc4$ ./sage --upgrade '9.6.rc4'
    response: Error: unknown option: --upgrade.
edit retag flag offensive close merge delete

Comments

Welcome to Ask Sage! Thank you for your question.

slelievre gravatar imageslelievre ( 2022-03-08 17:16:57 +0100 )edit

Note: the current development version is SageMath 9.6.beta4, not 9.6.rc4.

slelievre gravatar imageslelievre ( 2022-03-08 17:17:00 +0100 )edit

ah thanks for the head up!

System User gravatar imageSystem User ( 2022-03-08 17:19:44 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-03-08 17:16:02 +0100

slelievre gravatar image

updated 2022-03-08 17:52:31 +0100

Indeed, the use of sage --upgrade was abandoned.

Here is how to upgrade.

Change to the correct directory, in your case:

$ cd $HOME/sage-9.5.rc4

Then use Git to get the latest development version.

$ git checkout develop
$ git pull origin develop --tags

Run the bootstrap step:

$ ./bootstrap -q

If it fails it will tell you which packages to install in your system (with sudo apt install ...); after which you can try again; alternatively you can run make configure instead.

Run the configure step

$ ./configure

Follow any advice given at the end of the configure step regarding installing system packages (with sudo apt install ...) and re-running configure checks.

When that is done, decide how many jobs to run in parallel:

$ MAKE='make -j8'  # to run 8 jobs in parallel

Finally, build Sage:

$ make -s V=0
edit flag offensive delete link more

Comments

Thank you!

System User gravatar imageSystem User ( 2022-03-08 17:20:06 +0100 )edit

cf. the ticket https://trac.sagemath.org/ticket/33481 for the removal of the --upgrade option from the documentation returned by sage --help

eric_g gravatar imageeric_g ( 2022-03-08 21:38:44 +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: 2022-03-08 16:36:34 +0100

Seen: 506 times

Last updated: Mar 08 '22