Hi,

> I've got past line 32 of sage.all.py where it asks me to set SAGE_ROOT
> and LD_LIBRARY_PATH but it appears there are other benefits beyond
> this that "sage -sh" gives me but what these are and how to give them
> to Eclipse, I don't know.
>
>    from sage.all import *
>  File "/home/bee/sage/sage-4.5.2/local/lib/python2.6/site-packages/
> sage/all.py", line 56, in <module>
>    from sage.rings.memory import pmem_malloc
> ImportError: libcsage.so: cannot open shared object file: No such file
> or directory
>

This is what i did:

window->preferences->PyDev->interpreter-Python
* python interpreter: ${SAGE_ROOT}/local/bin/python
* environment:
-------------------------------------------------------
 DOT_SAGE=/home/niels/.sage/
 SAGE_ROOT=/home/niels/Desktop/n/app/sage
 PYTHONHOME=${SAGE_ROOT}/local
 ECLDIR=${SAGE_ROOT}/local/lib/ecl/
 
LD_LIBRARY_PATH=${SAGE_ROOT}/local/lib/R/lib:${SAGE_ROOT}/local/lib/openmpi:${SAGE_ROOT}/local/lib:${SAGE_ROOT}/local/include/singular:
 PATH=${SAGE_ROOT}:${SAGE_ROOT}/local/bin:/usr/bin:/bin
 RHOME=${SAGE_ROOT}/local/lib/R
 SAGE_DATA=${SAGE_ROOT}/data
 SAGE_LOCAL=${SAGE_ROOT}/local
 SAGE_PACKAGES=${SAGE_ROOT}/spkg
 SAGE_DOC=${SAGE_ROOT}/devel/sage/doc
 SAGE_SERVER=http://www.sagemath.org/
 SINGULARPATH=${SAGE_ROOT}/local/share/singular
 SINGULAR_BIN_DIR=${SAGE_ROOT}/local/bin
-------------------------------------------------------

(btw when unresolved error markers occurs in Eclipse, then reindexing these
env. vars. solves the problem, i think this is an error in PyDev, it works
when mouseover on a sage method shows its documentation)

project properties->PyDev - PYTHONPATH->external libraries->add spkg:
* ${SAGE_ROOT}/spkg/standard/sage-4.3.2.spkg

Running external tool (ie sage -python ${path_to_source_file}) works.

Running with 'internal tool' configuration doesn't work when maxima is
called (eg maxima(1+1)
gives "TypeError: Unable to start maxima").

Does anyone know which environment variable should be added in order for
maxima to work?

Thanks,

Niels

-- 
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
URL: http://www.sagemath.org

Reply via email to