How to change SAGE_ROOT?

455 views
Skip to first unread message

Han Xiao

unread,
Jan 21, 2016, 5:18:47 AM1/21/16
to sage-support
I installed SAGE 7.0 from the source.
But it won't start and it returns

/usr/local/bin/sage: line 118: cd: /Applications/Sage/sage: Not a directory

/usr/local/bin/sage: cannot determine SAGE_ROOT directory


But after setting 


$ export SAGE_ROOT=/Applications/SAGE


It works properly. However, every time my computer restarts, I need to reset that again.

It seems that I need to set the SAGE_ROOT value. But which file should I edit?

Jan Groenewald

unread,
Jan 21, 2016, 5:39:18 AM1/21/16
to sage-s...@googlegroups.com
Hi

On 21 January 2016 at 12:18, Han Xiao <hn....@gmail.com> wrote:

$ export SAGE_ROOT=/Applications/SAGE

It works properly. However, every time my computer restarts, I need to reset that again.

It seems that I need to set the SAGE_ROOT value. But which file should I edit?



Try

echo "export SAGE_ROOT=/Applications/SAGE" >> .profile

Regards,
Jan



--
  .~.
  /V\     Jan Groenewald
 /( )\    www.aims.ac.za
 ^^-^^ 

Volker Braun

unread,
Jan 21, 2016, 7:10:29 AM1/21/16
to sage-support
I'd recommend not making that persistent, this is a bug that needs to be fixed in Sage. What kind of system is that anyways and how did you install Sage?

Han Xiao

unread,
Jan 21, 2016, 9:04:30 AM1/21/16
to sage-support

I'm using the latest Mac OS X, and Sage is installed from the source.


--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/xusQFvuL7JM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Han Xiao

unread,
Jan 21, 2016, 9:42:17 PM1/21/16
to sage-support
I added the following to my .bash_profile.

export SAGE_ROOT=/Applications/SAGE PATH=$PATH:${SAGE_ROOT} 

And now it works like a charm. Thank you so much for the suggestion.

Regards,
Xiao

Henri Girard

unread,
Jan 21, 2016, 11:41:19 PM1/21/16
to sage-s...@googlegroups.com
Did you uncomment sage in file sage ?
#SAGE_ROOT=/path/to/sage-version
This should be enaugh not need to add it in .bash_profile ?
If you want it for all user you create a link :
sudo ln -s /path/sage/sage /usr/bin/sage
Sorry I didn't follow the mail
Regards
HG
--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages