"sage -i package_name" not working
I've installed the developer's version of sage per the instructions in the installation guide on my mac so that I can install optional packages. Sage appears to be working fine, but when I open a terminal window to execute the command
sage -i database_kohel
the terminal returns "Could not find SageMath-10-0.app." Any help addressing this issue is much appreciated.
In the Terminal you may have to specify the path to the
sageexecutable. (a) Where did you install SageMath? (b) In the Terminal, what doeswhich sagereturn`?Hi John, thanks for replying. It turns out that once I changed the directory to be the file containing the sage executable, I could get the installation command to work via the command ./sage -i database_kohel. So it seems that I needed to ask terminal to run a command in the executable file?
There may be more than one program called
sageon your computer, and Terminal is finding the wrong one by default, one that expects to be connected to SageMath-10-0.app. Using./sagetells it precisely which one to use, so the problem is avoided. You can set yourPATHenvironment variable so that it knows where to look forsage.