Ask Your Question
0

Sage symlink not working

asked 2016-08-30 07:53:03 -0500

enanae gravatar image

updated 2017-01-08 05:23:08 -0500

FrédéricC gravatar image

I've tried to create a symlink for sage to use in my OS X terminal, using the command

sudo ln -s /Applications/SageMath-7.3.app/sage/sage /usr/local/bin/sage

I got an alias file in my bin-folder, but when I try to open it all I get is this message

"The operation can’t be completed because the original item for “sage” can’t be found."

When I type in just the path /Applications/SageMath-7.3.app/sage/sage in the terminal, sage opens just fine.

Can somebody tell me what I'm doing wrong? I'm not very accustomed to working in the terminal.

edit retag flag offensive close merge delete

Comments

Possibly permissions issue? For myself, I usually put the path for sage in my .profile, e.g. a line like export PATH=$PATH:'/Applications/SageMath-7.3.app/sage/' might work for you.

kcrisman gravatar imagekcrisman ( 2016-08-30 08:26:13 -0500 )edit

After completing the ln command, what does command -v sage tell you?

John Palmieri gravatar imageJohn Palmieri ( 2016-08-31 09:16:11 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2016-09-05 08:16:27 -0500

Try this

$ ln -sf /Applications/SageMath-7.3.app/Contents/Resources/sage/sage /usr/local/bin/sage
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

Stats

Asked: 2016-08-30 07:53:03 -0500

Seen: 58 times

Last updated: Sep 05 '16