1

So I was following the instructions here - https://help.ubuntu.com/community/SAGE

  • The apt get command on your link doesn't find anything.

  • And what is this instruction of putting a link to the "sage executable in /usr/local/bin"

So in my current folder structure I find, ~/Desktop/sage/sage-6.4-x86_64-Linux/src/sage

Is this the "sage executable"?

Guessing so, I did this (as per the above link)

ln -s ~/Desktop/sage/sage-6.4-x86_64-Linux/src/sage /usr/local/bin/sage

But then doing the above yields a link to this in /usr/local/bin called "sage".

But that link doesn't work.

(the sub-folder "sage" of Desktop is something that I created into which I unzipped the file I downloaded from the mirror - the downloaded folder called itself by that name, "sage-6.4-x86_64-Linux" and its subfolders are what it anyway came with)

What am I getting wrong?

muru
  • 207,228
Student
  • 111

3 Answers3

2

There's no way to getting it wrong, there isn't anything for you to miss, but here go some insights into each step:

apt-add-repository -y ppa:aims/sagemath

this add the APT to your repository, in other words it adds this location for you APT look for when trying to install new packages. It should ask for some kind of confirmation regarding the gpu key, accept it and it will add it.

apt-get update

This updates your local listing of packages tough re-downloading every packaging list you has, all the ubuntu's defaults and also the sage listings

apt-get install sagemath-upstream-binary

This one is the one who really installs sage. What is wrong?

1

Since this question was asked in 2014, Sage Math has become a part of the standard Ubuntu distribution:

sudo apt install sagemath

So you don't need to add any PPAs at this point.

sshine
  • 133
0

To allow sage to work in bash, you need to install realpath:

sudo apt-get install realpath

Assuming your link is to the executable, and that /usr/local/bin is in your PATH variable, you should be able to run sage by just typing sage in a terminal.

ubfan1
  • 19,049