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?

18
  • Yes - anyway I can confirm?
    – Student
    Nov 21, 2014 at 18:33
  • It said "trusty". I think I am on "14.04 LTS"
    – Student
    Nov 21, 2014 at 18:36
  • Excellent. You can use the PPA: launchpad.net/~aims/+archive/ubuntu/sagemath
    – muru
    Nov 21, 2014 at 18:39
  • 2
    @muru that is the first step in his link...
    – Mateo
    Nov 21, 2014 at 18:41
  • Okay - so I have to just run those 3 commands one after another? - and nothing else? - how do i run sage after that?
    – Student
    Nov 21, 2014 at 18:42

3 Answers 3

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
  • While it was necessary in 2014 to add a PPA, installing Sage Math no longer requires this, and you can just write apt-get install sagemath in a standard Ubuntu.
    – sshine
    Jan 9, 2022 at 9:26
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.

1
  • 1
    FYI, apt install works nowadays, and has a colorful interface. apt-get install still works, though. Jan 9, 2022 at 10:30
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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .