Am Freitag, 18. Mai 2012 21:16:08 UTC+2 schrieb kcrisman:

> On Friday, May 18, 2012 2:49:49 PM UTC-4, arshpreet singh wrote:
>>
>> > If you just append the right directory to your PATH in a .bashrc or 
>> .profile 
>> > that should work.  I have 
>> > 
>> > export PATH=$PATH:'/Applications/MathApps/' 
>> > 
>> > (which is where I create a symbolic link to my Sage, but whatever) in 
>> my 
>> > .profile file.  You probably can do something similar.  The error 
>> message is 
>> > telling you that the sage script can only be run from inside its own 
>> > directory. 
>> thanks for replying but i am beginner linux user it will be very 
>> kindful if you please elaborate that what should i do 
>>
>
> Since you talked about moving a script and changing SAGE_ROOT, I figured 
> you were an expert!
>
> You will probably have a file called .profile or .bashrc in your home 
> directory.  It depends on what "shell" you use, or if you have a Mac or 
> Linux, or some other things.  If you add a line exactly like the one I have 
> above, except which says
>
> export PATH=$PATH:'/absolute/path/to/the/sage/home/directory/' 
>
> where only you know where that is, on your computer, then that *should* 
> work.
>
> If you don't have such a file, I am not such an expert myself, and which 
> file to create does depend on the system or what "shell" you use.  Some 
> others may have more concrete information.
>

I didn't change anything in the directory where Sage is installed. I just 
added a symbolic link.
You can do the following:
- If your Sage is installed in your home you can make a directory bin in 
your home, i.e. call "mkdir ~/bin" and then add a symbolic link to sage, 
i.e. do in ~/bin the following: "ln -s 
~/directory/of/sage-installation/sage sage". This creates a symbolic link, 
which can be called, if you are logged in. (maybe you have to restart your 
system, so that .profile is executed, such that ~/bin is recognised.).
- If you want a system wide installation, make the symbolic link in 
/usr/local/bin, i.e. "cd /usr/local/bin" and "ln -s 
/directory/to/sage-installation/sage sage". Then you can start sage by just 
typing "sage" anywhere. (on my system Sage is located in /opt/sage).

Daniel 

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to