# how to execute *.sage files?

Hello,

Could anyone tell me how to execute *.sage files? I fail it as follows:

```
% sw_vers
ProductName: Mac OS X
ProductVersion: 10.7.4
BuildVersion: 11E53
$ hdiutil mount /Users/me/Downloads/sage-5.2-OSX-64bit-10.6-x86_64-Darwin.dmg
$ cp -R -P /Volumes/sage-5.2-OSX-64bit-10.6-x86_64-Darwin/sage /Applications
$ open /Applications/sage/sage
:
:
$
$ sage
----------------------------------------------------------------------
| Sage Version 5.2, Release Date: 2012-07-25 |
| Type "notebook()" for the browser-based notebook interface. |
| Type "help()" for help. |
----------------------------------------------------------------------
sage: 1 + 1
2
sage: quit
Exiting Sage (CPU time 0m0.05s, Wall time 0m6.00s).
$
$ env | grep '/sage'
LD_LIBRARY_PATH=/Applications/sage/local/lib:
SAGE_ROOT=/Applications/sage
$ cat test.sage
1 + 1
$ sage test.sage
$ ls -d test.*
test.py test.sage
$ cat test.py
# This file was *autogenerated* from the file test.sage.
from sage.all_cmdline import * # import sage library
_sage_const_1 = Integer(1)
_sage_const_1 + _sage_const_1
$ $SAGE_ROOT/local/bin/python test.py
Traceback (most recent call last):
File "test.py", line 2, in <module>
from sage.all_cmdline import * # import sage library
File "/Applications/sage/local/lib/python2.7/site-packages/sage/all_cmdline.py", line 14, in <module>
from sage.all import *
File "/Applications/sage/local/lib/python2.7/site-packages/sage/all.py", line 61, in <module>
from sage.ext.c_lib import _init_csage, sig_on_count
ImportError: dlopen(/Applications/sage/local/lib/python2.7/site-packages/sage/ext/c_lib.so, 2): Library not loaded: libcsage.dylib
Referenced from: /Applications/sage/local/lib/python2.7/site-packages/sage/ext/c_lib.so
Reason: image not found
$
```