Ask Your Question
0

How do I upgrade sagemath from 7.4 to 8.2

asked 2018-07-26 14:14:06 +0100

Lukaku gravatar image

I'd like to upgrade sagemath directly without installing the software from scratch. May I have to add a specific repository or is there a command to execute it from consolle? thank you.

edit retag flag offensive close merge delete

Comments

Under what operating system? How was Sage installed?

slelievre gravatar imageslelievre ( 2018-07-26 22:27:09 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-07-26 22:26:01 +0100

slelievre gravatar image

updated 2018-07-27 09:49:52 +0100

In the terminal, cd to the directory of your Sage installation, then run the following commands (don't type the initial $ on each line, which represents the bash prompt).

  • update your sources to the latest stable version

    $ git pull origin master
    
  • optionally, set your computer to use many cores while building Sage

    $ export MAKE='make -j4'
    

    (replacing 4 by the number of cores on your machine)

  • build SageMath

    $ make
    

If the compilation fails, you might have to start it again from scratch:

$ make distclean
$ make
edit flag offensive delete link more

Comments

1

If you're going to run make distclean, you might as well download a fresh source tarball and build that. You could try the same but without make distclean, which might work. If it does work, it will be faster.

John Palmieri gravatar imageJohn Palmieri ( 2018-07-26 22:30:36 +0100 )edit

Thanks for voicing this concern. I updated my answer.

slelievre gravatar imageslelievre ( 2018-07-27 20:36:23 +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

1 follower

Stats

Asked: 2018-07-26 14:14:06 +0100

Seen: 1,997 times

Last updated: Jul 27 '18