First time here? Check out the FAQ!

Ask Your Question
1

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

asked 3 years ago

System User gravatar image

updated 3 years ago

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.
Preview: (hide)

Comments

Welcome to Ask Sage! Thank you for your question.

slelievre gravatar imageslelievre ( 3 years ago )

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

slelievre gravatar imageslelievre ( 3 years ago )

ah thanks for the head up!

System User gravatar imageSystem User ( 3 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 3 years ago

slelievre gravatar image

updated 3 years ago

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
Preview: (hide)
link

Comments

Thank you!

System User gravatar imageSystem User ( 3 years ago )

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 ( 3 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

Stats

Asked: 3 years ago

Seen: 571 times

Last updated: Mar 08 '22