On Tuesday, June 12, 2012 5:32:04 PM UTC+8, Sylvain wrote:
>
> Hello 
>
> I have just downloaded sage 5.0 from ubuntu ppa. I think the installation 
> has 
> been working properly since i can execute sage. Moreover when I type 'env' 
> in 
> Sage I have: 'SAGE_ROOT': '/usr/lib/sage' and 'LD_LIBRARY_PATH': 
> '/usr/lib/sage/local/lib:/usr/lib/sage/local/lib/R/lib:'. 
>

When you run 'env' from inside Sage, your environment is already set up by 
sage itself. When you want to import from outside Sage, you will probably 
have to set those variables in your shell rc files, or set them inside your 
python file before importing sage.all.
 

>
> However when typing import sage.all in the Sage's python 
> (/usr/lib/sage/local/bin/python) I have : "raise RuntimeError("To use the 
> Sage 
> libraries, set the environment variable SAGE_ROOT to the Sage build 
> directory 
> and LD_LIBRARY_PATH to $SAGE_ROOT/local/lib") 
> RuntimeError: To use the Sage libraries, set the environment variable 
> SAGE_ROOT 
> to the Sage build directory and LD_LIBRARY_PATH to $SAGE_ROOT/local/lib" 
>
> I don't understand why since my 'SAGE_ROOT' and 'LD_LIBRARY_PATH' seem to 
> have 
> the good path. 
>
> Does Someone know where my problem comes from? 
> Thank you so much 
>
>
> Sylvain 
>
>

-- 
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