On Fri, Aug 14, 2009 at 9:56 AM, Minh Nguyen<[email protected]> wrote:
>
> Hi,
>
> On Sat, Aug 15, 2009 at 2:42 AM, mrotsliah<[email protected]> wrote:
>>
>> Ok, I just installed sage on a server so that every user can us it.  I
>> installed it in
>>
>> /usr/local/bin/sage-4.0/sage
>>
>> *facepalm*  I know I should know this, but how do I set a path so that
>> a user just has to type "sage" at the command line to run /usr/local/
>> bin/sage-4.0/sage?
>
> On Unix and Linux systems, the directory /usr/local/bin/ is usually in
> users' PATH variable. If you have admin privileges on the system, you
> can make a symbolic link from that directory to where the sage binary
> is located. So for example, I would do this with root privilege:
>
> # ln -s /usr/local/bin/sage-4.0/sage /usr/local/bin/sage
>
> That way, the file /usr/local/bin/sage is a symbolic link to the
> binary /usr/local/bin/sage-4.0/sage. So when a normal user opens a
> shell and type in "sage", then Sage 4.0 (the one you installed
> system-wide) would be loaded. But in order to create the above
> symbolic link, you really need to have sys admin privilege on your
> system. The hash character "#" means execute as root or superuser.
> Another way to create the above symbolic link is as follows:
>
> $ su -c "ln -s /usr/local/bin/sage-4.0/sage /usr/local/bin/sage"
>
> You execute this as a normal user, but then you are prompted for the
> root password.=


You should also edit the ROOT="..." line of
/usr/local/bin/sage-4.0/sage just for good measure.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to