# not able to execute ./sage

I've downloaded the precompiled binary for sagemath 9.1(sage-9.1-Ubuntu_18.04-x86_64.tar.bz2), I'm on ubuntu 20.04. After extracting the file when I run ./sage in the terminal it says bash: ./sage: Permission denied. I made the file executable by changing the permission but then it says ./sage: no Sage installation found in \$SAGE_ROOT = /home/my_pc/Downloads/SageMath. Can anyone help me with this?

Edit: After some tweaks, I found that in the file named relocate-once.py there was a problem in the declaration for the python env after I changed it to pyhton3 it started Rewriting paths for your new installation directory then it gave an error /home/my_pc/Downloads/SageMath/local/bin/python3: line 1: ./python3.7: No such file or directory. I checked it the file exist but for some reason it doesn't execute it. That's where I'm stuck now.

edit retag close merge delete

What is ./python3.7 above? (So line 1 from which file?)

Note: A longer time i also had problems with ubuntu+sage, there was no chance to use tbz's, it was even better to use older version from the unmaintained ppa mentioned in

There is a script file called python3 in SageMath/local/bin which is supposed to be executed as per the sage file. That python3 script has only one command i.e. ./python3.7, which is a file in the same directory. But for some reason, it doesn't run. I tried executing the python3 file it works fine but when I run bash sage or ./sage it gives the error mentioned above.