Hi,
I tried to run the example in the sage tutorial:
#!/usr/bin/env sage-python
import sys
from sage.all import *
if len(sys.argv) != 2:
print "Usage: %s <n>"%sys.argv[0]
print "Outputs the prime factorization of n."
sys.exit(1)
print factor(sage_eval(sys.argv[1]))
Running the script I get the following error:
/usr/bin/env: sage-python: file or directory not found
I have looked it up and the script env indeed does not offer the
parameter sage-python, but for example python. I am runnig a Suse10.0
and I have updated with sage -upgrade from 2.8.6 to 2.8.7. I have set
the PATH variable SAGE_ROOT to fooDir/sage-2.8.6-suse-i686-Linux.
Is there something wrong with my installation or did I make any
mistake?
Cheers, 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/
-~----------~----~----~----~------~----~------~--~---