Georg,

1. Is this a clean, from-source build of sage-2.9.3?

2. What is the output of /usr/bin/env for you? Mine (Intel OS X
10.5.1) doesn't mention sage at all, although mysteriously things are
working for me.

> #!/usr/bin/env sage -python
> import sys

For me, I get
$ ./BMV.sage
$

Also, if I add print 2+2, it works too:
$ ./BMV.sage
4

However, when I run the sage itself, it looks like it's pointing at
some weird version:
$ /usr/bin/env sage
----------------------------------------------------------------------
| SAGE Version 2.9.2, Release Date: 2008-01-05                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
Loading SAGE library. Current Mercurial branch is: demo

This isn't what I was expecting at all (I just recently started using
this particular laptop). After some digging, I discover that my /usr/
local/bin contains a script called "sage", which seems to be pretty
much a copy of the main script "sage", in the root directory of a
typical sage install, but the SAGE_ROOT is explicitly set to another
version of sage.

So here's what I did:

$ export PATH=/Users/rlmill/sage:$PATH
(this explicitly points to the version I want)
$ ./test
SAGE Version 2.9.3, Release Date: 2008-01-05
(hooray - this is what I was hoping for)


The contents of test are: (minus triple quotes)
"""
#!/usr/bin/env sage -python
import sage
import sage.misc
import sage.misc.banner
from sage.misc.banner import version
print version()
"""

Hopefully this helps, although I have a feeling this thread isn't
over...

-- Robert M
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to