Hi everyone:

I have a problem when trying to execute commands that require Sage's
python with sudo into a Sage subshell. I don't know if it is a problem
of my setup, the binary someone packaged for my OS (Arch Linux) or
Sage, but I would like to get a clue before compiling Sage from source
to be sure (it would take the whole night to complete, and the fans
would get mad at 4:00 AM more or less).

    juanlu@mercurius ~ $ sage -sh

    Starting subshell with Sage environment variables set.
    Be sure to exit when you are done and do not do anything
    with other copies of Sage!

    Bypassing shell configuration files ...

    SAGE_ROOT=/opt/sage
    (sage subshell) mercurius:~ juanlu$ pwd
    /home/juanlu
    SAGE_ROOT=/opt/sage
    (sage subshell) mercurius:~ juanlu$ easy_install pip
    error: can't create or remove files in install directory

    [...]
    [Okay, I know I have no permissions here]

    SAGE_ROOT=/opt/sage
    (sage subshell) mercurius:~ juanlu$ sudo easy_install pip
    python: error while loading shared libraries: libpython2.6.so.1.0:
cannot open shared object file: No such file or directory
    SAGE_ROOT=/opt/sage
    (sage subshell) mercurius:~ juanlu$ sudo python
    python: error while loading shared libraries: libpython2.6.so.1.0:
cannot open shared object file: No such file or directory
    SAGE_ROOT=/opt/sage
    (sage subshell) mercurius:~ juanlu$

As it can be seen, via sudo the system cannot find Sage's python.
Maybe I could remove my system-wide installation and make another one
for just an user so I could have permissions, but I wonder if there is
another way.

Thank you in advance.

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