there must be something wrong with the way you are creating a symbolic
link  (run make??)

just rm the bash script you wrote in /usr/bin/ and try:

sudo ln -s $SAGE_ROOT/sage /usr/bin/sage

try then
sudo ls -l /usr/bin/sage

you should get something like
lrwxrwxrwx 1 root root 18 2007-09-25 09:38 /usr/bin/sage -> /usr/lib/
sage/sage

then put #!/usr/bin/env sage
at the beginning of your scripts. Should work.

btw env is a program to run a script "within an environment" -- here
the environment is provided by sage. It's not clear to me what env
does precisely. Anyway, #!/usr/bin/sage also works !! (i think)


On 17 oct, 12:40, Steffen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am still struggling to run python and also sage scripts in the bash.
> My way was to write the bash script /usr/bin/sage which calls
> $SAGE_ROOT/./sage. This worked fine to start sage. Unfortunatelly
> trying to run a sage script with #!/usr/bin/env sage or a python
> script with #!/usr/bin/env sage -python I still get the error:
>
> /usr/bin/env: sage -python: file or directory not found
>
> I tried to use a symbolic link as mentioned by Justin, but then I am
> asked to run make what I did of course. I am also confused by the fact
> that /usr/bin/env is a script and not a directory. As mentioned above
> I am runnig a Suse10.0 and I have updated with sage -upgrade from
> 2.8.6 to 2.8.7.
>
> Thanks for any help
> Steffen


--~--~---------~--~----~------------~-------~--~----~
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-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to