Where is my sage?
My computer is Windows-based, so I used WSL (Ubuntu 22.04) to compile Sage 10.0 from source code. I followed the instructions from the link below. It took me approximately 5 hours.
It indicates that the installation was successful.
However, it can only run sage within the Sage directory.
So I executed the following command, but after executing it, I can no longer find the Sage directory.
sudo ln -sf $(pwd)/sage /usr/local/bin
I don't know what happened. I reopened WSL and I don't know where to find my Sage again. The Sage directory is missing!
How can I find my Sage installation directory again and run it? It would be frustrating to recompile it again.
A possible solutions is to set up
SAGE_ROOT
variable like:@Max Alekseyev It gives me that
-bash: export:
=': not a valid identifier -bash: export:/home/user/sage/sage': not a valid identifier
Indeed, I'm not quite sure how to find my Sage executable file. I can't even find sage/sage directory. I assure you I haven't done anything other than running the command
sudo ln -sf $(pwd)/sage /usr/local/bin
in that link. The Sage directory is missing ( was deleted or hidden?)My bad - there should be no spaces around
=
:Your screenshot shows that
sage/sage
directory is located in the home directory of userzlc
.