ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 12 Jul 2016 14:43:19 +0200start sagehttps://ask.sagemath.org/question/34066/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.
Mon, 11 Jul 2016 19:55:16 +0200https://ask.sagemath.org/question/34066/start-sage/Comment by tmonteil for <p>System: #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08)</p>
<p>type in from command line "sage" error says, "bash: sage: command not found" How can I start sage. Thanks.</p>
https://ask.sagemath.org/question/34066/start-sage/?comment=34067#post-id-34067How did you install Sage ?Mon, 11 Jul 2016 23:01:31 +0200https://ask.sagemath.org/question/34066/start-sage/?comment=34067#post-id-34067Comment by eric_g for <p>System: #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08)</p>
<p>type in from command line "sage" error says, "bash: sage: command not found" How can I start sage. Thanks.</p>
https://ask.sagemath.org/question/34066/start-sage/?comment=34068#post-id-34068Have you tried to type `./sage` (from the sage root directory), instead of `sage` ?Mon, 11 Jul 2016 23:33:33 +0200https://ask.sagemath.org/question/34066/start-sage/?comment=34068#post-id-34068Answer by slelievre for <p>System: #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08)</p>
<p>type in from command line "sage" error says, "bash: sage: command not found" How can I start sage. Thanks.</p>
https://ask.sagemath.org/question/34066/start-sage/?answer=34073#post-id-34073Installing 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')
Tue, 12 Jul 2016 14:43:19 +0200https://ask.sagemath.org/question/34066/start-sage/?answer=34073#post-id-34073