Ask Your Question

start sage

asked 2016-07-11 19:55:16 +0100

jkid314159 gravatar image

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.

edit retag flag offensive close merge delete


How did you install Sage ?

tmonteil gravatar imagetmonteil ( 2016-07-11 23:01:31 +0100 )edit

Have you tried to type ./sage (from the sage root directory), instead of sage ?

eric_g gravatar imageeric_g ( 2016-07-11 23:33:33 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-12 14:43:19 +0100

slelievre gravatar image

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')
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-07-11 19:55:16 +0100

Seen: 1,927 times

Last updated: Jul 12 '16