not able to execute ./sage

asked 2020-08-09 18:57:47 +0100

debojit2178 gravatar image

updated 2022-01-21 11:12:47 +0100

FrédéricC gravatar image

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 flag offensive close merge delete

Comments

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

https://launchpad.net/~aims/+archive/...

As this link says, sagemath should be now in debian. My solution was to completely switch to an other distribution. Best for this purpose are the arch based linux distributions. Manjaro did 2y a very good job for me after the first move from ubuntu (and ubuntu based distros), now i am on an arcolinux box, since i could get an arch-like system without any troubles on an older laptop. Consider switching to something else if ubuntu denies access to sage. (And if using sage from debian still makes problems.)

dan_fulea gravatar imagedan_fulea ( 2020-08-10 17:06:07 +0100 )edit

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.

debojit2178 gravatar imagedebojit2178 ( 2020-08-10 18:01:01 +0100 )edit