start sage
System: #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08)
type in from command line "sage" error says, "bash: sage: command not found" How can I start sage. Thanks.
System: #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08)
type in from command line "sage" error says, "bash: sage: command not found" How can I start sage. Thanks.
Installing Sage just installs Sage, it does not automatically make the sage
command point to Sage.
So either change directory to where sage is installed and run ./sage
as @eric_g suggests,
or take one of the following steps.
use an alias by adding this line in your .bashrc
or .bash_profile
settings file:
alias sage='/path/to/sage'
or add a symbolic link in a place that is in your PATH, say /usr/local/bin
, by running the command
$ sudo ln -s /path/to/sage /usr/local/bin
(you would replace /path/to/sage
by the actual path to the sage
executable you have installed).
A related trick: GAP, Singular, etc., are bundled with Sage. There is a command
to create creating symbolic links for all of them in a chosen directory. To create
the symbolic links in /usr/local/bin
, run this command:
$ sudo sage -c "install_scripts('/usr/local/bin')
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2016-07-11 19:55:16 +0100
Seen: 2,515 times
Last updated: Jul 12 '16
How did you install Sage ?
Have you tried to type
./sage
(from the sage root directory), instead ofsage
?