ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 05 Sep 2016 08:16:27 -0500Sage symlink not workinghttp://ask.sagemath.org/question/34658/sage-symlink-not-working/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.Tue, 30 Aug 2016 07:53:03 -0500http://ask.sagemath.org/question/34658/sage-symlink-not-working/Comment by John Palmieri for <p>I've tried to create a symlink for sage to use in my OS X terminal, using the command </p>
<p><code>sudo ln -s /Applications/SageMath-7.3.app/sage/sage /usr/local/bin/sage</code></p>
<p>I got an alias file in my bin-folder, but when I try to open it all I get is this message </p>
<p>"The operation can’t be completed because the original item for “sage” can’t be found."</p>
<p>When I type in just the path <code>/Applications/SageMath-7.3.app/sage/sage</code> in the terminal, sage opens just fine. </p>
<p>Can somebody tell me what I'm doing wrong? I'm not very accustomed to working in the terminal.</p>
http://ask.sagemath.org/question/34658/sage-symlink-not-working/?comment=34666#post-id-34666After completing the `ln` command, what does `command -v sage` tell you?Wed, 31 Aug 2016 09:16:11 -0500http://ask.sagemath.org/question/34658/sage-symlink-not-working/?comment=34666#post-id-34666Comment by kcrisman for <p>I've tried to create a symlink for sage to use in my OS X terminal, using the command </p>
<p><code>sudo ln -s /Applications/SageMath-7.3.app/sage/sage /usr/local/bin/sage</code></p>
<p>I got an alias file in my bin-folder, but when I try to open it all I get is this message </p>
<p>"The operation can’t be completed because the original item for “sage” can’t be found."</p>
<p>When I type in just the path <code>/Applications/SageMath-7.3.app/sage/sage</code> in the terminal, sage opens just fine. </p>
<p>Can somebody tell me what I'm doing wrong? I'm not very accustomed to working in the terminal.</p>
http://ask.sagemath.org/question/34658/sage-symlink-not-working/?comment=34659#post-id-34659Possibly 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.Tue, 30 Aug 2016 08:26:13 -0500http://ask.sagemath.org/question/34658/sage-symlink-not-working/?comment=34659#post-id-34659Answer by slelievre for <p>I've tried to create a symlink for sage to use in my OS X terminal, using the command </p>
<p><code>sudo ln -s /Applications/SageMath-7.3.app/sage/sage /usr/local/bin/sage</code></p>
<p>I got an alias file in my bin-folder, but when I try to open it all I get is this message </p>
<p>"The operation can’t be completed because the original item for “sage” can’t be found."</p>
<p>When I type in just the path <code>/Applications/SageMath-7.3.app/sage/sage</code> in the terminal, sage opens just fine. </p>
<p>Can somebody tell me what I'm doing wrong? I'm not very accustomed to working in the terminal.</p>
http://ask.sagemath.org/question/34658/sage-symlink-not-working/?answer=34729#post-id-34729Try this
$ ln -sf /Applications/SageMath-7.3.app/Contents/Resources/sage/sage /usr/local/bin/sage
Mon, 05 Sep 2016 08:16:27 -0500http://ask.sagemath.org/question/34658/sage-symlink-not-working/?answer=34729#post-id-34729