Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Installation SageMath on Ubuntu 17.04

Finally due to the problems of transfer of text between the VM and the Host I prefer to try installing sagemath on a PC W10 and UBUNTU in double boot mode. I will switch to Ubuntu when I want to use SageMath What's wrong ?

jpo@jpodesktop:~/Téléchargements$ cd SageMath/

jpo@jpodesktop:~/Téléchargements/SageMath$ ./sage

Rewriting paths for your new installation directory

This might take a few minutes but only has to be done once.

Traceback (most recent call last): File "/home/jpo/Téléchargements/SageMath/relocate-once.py", line 139, in <module> p = SearchAndReplace(ROOT_PATH, '/home/buildbot/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidmas391yaj2', DESTINATION) File "/home/jpo/Téléchargements/SageMath/relocate-once.py", line 120, in __init__ self.root_path = root_path.encode('utf-8') UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128) ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 7.6, Release Date: 2017-03-25 │ │ Type "notebook()" for the browser-based notebook interface. │ │ Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘

ERROR: The Sage installation tree has moved

from /home/buildbot/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidmas391yaj2 to /home/jpo/Téléchargements/SageMath

This is not supported, and Sage will not work. To install Sage from a binary package:

  1. Open the .tar.bz2 archive (or .dmg on OSX)

  2. Move the SageMath folder/app to where you want it to be. You can also rename the directory now.

  3. Start sage for the first time. This will then automatically patch paths in binaries.

After starting Sage for the first time you cannot change the installation any more. To install Sage elsewhere, start over from the binary package. Or recompile Sage from scratch in the new location ("make distclean && make")