On 9/14/07, Jan Groenewald <[EMAIL PROTECTED]> wrote:
> I installed 2.8.4.1-i686-ubuntu instead of 2.8-i686 on
>  ubuntu feisty today. I install systemwide, as root:
>
> cd /usr/local/src/
> wget
> http://www.sagemath.org/SAGEbin/linux/32bit/sage-2.8.4.1-i686-ubuntu-Linux.tar.gz
> tar xvzf sage-2.8.4.1-i686-ubuntu-Linux.tar.gz
> cp sage-2.8.4.1-i686-Linux/sage /usr/local/bin/
> sed -ie 's#="....."#="/usr/local/src/sage-2.8.4.1-i686-Linux/"#'
> /usr/local/bin/sage
> rm /usr/local/bin/sagee
> chmod a+r -R /usr/local/src/sage-2.8.4.1-i686-Linux/
>
> Before this used to be fine.
> Now I have to run once as root to create SAGE_ROOT/tmp,
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

No matter what, with any version of Sage, you would have to
run it once as root (or whatever user owns those files) the
first time because the Sage install tree has moved and many
files that hardcode directory paths have to be updated.  That
tmp directory is created then.  That said, in this particular case
creating the tmp directory in SAGE_ROOT is now  totally unnecessary
so I've removed the code that does this (for the next release).


> and thereafter a normal user still cannot run notebook()
>

This is actually an unrelated issue.  A user must have write permissions
to the *current* directory to run the notebook, since it stores its state
files in the current directory.  Try instead:

> [EMAIL PROTECTED]:~$ cd
> [EMAIL PROTECTED]:~$ sage


> 0 [EMAIL PROTECTED]:~$sage
> ----------------------------------------------------------------------
> | SAGE Version 2.8.4.1, Release Date: 2007-09-09                     |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
>
> sage: notebook()
> ---------------------------------------------------------------------------
> <type 'exceptions.IOError'>               Traceback (most recent call last)
>
> /usr/local/src/sage-2.8.4.1-i686-Linux/<ipython console> in <module>()
>
> /usr/local/src/sage-2.8.4.1-i686-Linux/local/lib/python2.5/site-packages/sage/server/notebook/notebook_object.py
>  in __call__(self, *args, **kwds)
>     120     """
>     121     def __call__(self, *args, **kwds):
> --> 122         return self.notebook(*args, **kwds)
>     123
>     124     notebook = run_notebook.notebook_twisted
>
> /usr/local/src/sage-2.8.4.1-i686-Linux/local/lib/python2.5/site-packages/sage/server/notebook/run_notebook.py
>  in notebook_twisted(self, directory, port, address, port_tries, secure, 
> reset, accounts, server_pool, ulimit, timeout, open_viewer)
>     105         print "Updating to new format complete."
>     106
> --> 107     nb.save()
>     108     del nb
>     109
>
> /usr/local/src/sage-2.8.4.1-i686-Linux/local/lib/python2.5/site-packages/sage/server/notebook/notebook.py
>  in save(self, filename)
>    1346         if not os.path.exists(D):
>    1347             os.makedirs(D)
> -> 1348         SageObject.save(self, F, compress=False)
>    1349         #print "Saved notebook to '%s'."%F
>    1350         #print "Press control-C to stop the notebook server."
>
> /usr/local/src/sage-2.8.4.1-i686-Linux/sage_object.pyx in 
> sage_object.SageObject.save()
>
> <type 'exceptions.IOError'>: [Errno 13] Permission denied: 
> '/usr/local/src/sage-2.8.4.1-i686-Linux/sage_notebook/nb.sobj'
> sage:
>
> regards,
> Jan
> --
>    .~.
>    /V\     Jan Groenewald
>   /( )\    www.aims.ac.za
>   ^^-^^
>
> >
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

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