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.

-- 
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