On 23 Mrz., 12:37, AD <
adphy2...@gmail.com> wrote:
> 1. The result of ls -ld /dev/shm/ is:
>
> drwxrwxrwt 2 root root 40 2012-03-23 16:57 /dev/shm/
That's strange, as the error message in your first post suggests it
wasn't writable (by ordinary users).
What does
$ mount | grep shm
give?
In case it is mounted read-only ("ro"), you may try to remount /dev/
shm read-write ("rw"):
$ sudo mount -v -o remount,rw /dev/shm
> 2. I ran the python script (as ordinary user, not superuser) you suggested;
> the response was:
>
> Error creating semaphores.
> On Linux, make sure /dev/shm is mounted and user-writable.
So at least your pseudo ttys work... :-)
(The script doesn't give any output in case everything's fine; and it
only checks whether things work, it doesn't cure anything.)
> What do I do now? Also please tell me what is expected if the python script
> runs without any problem and then how do I solve my original problem? Will
> my problem be automatically solved by running the python script?
(See above.) If the Python script exits without any message, you
should be able to build and run Sage without any problems (at least
not ones related to this).
As long as the script gives the message above, you won't be able to
build the Sage library [in parallel], and would probably run into
trouble when /running/ Sage.
The second check, which tests whether pseudo ttys (/dev/pts) are
functional, is only relevant for /running/ Sage, since these are used
by the PExpect interfaces, which are used to run stand-alone programs
like GAP, Maxima, the PARI/GP interpreter and Singular etc., from
within Sage.
If you somehow manage to fix /dev/shm (maybe by rebooting your
machine? :-) ) such that semaphores work, it should be sufficient to
resume the build of Sage by simply typing 'make' again. (Don't forget
to again set environment variables in advance in case you did so
before you attempted the first build; this will e.g. be necessary if
you rebooted your machine or switched to another terminal.)
You *might* also be able to build the Sage library sequentially,
without using multiple threads (and hence without the need for
semaphores) by typing
$ SAGE_NUM_THREADS=1 make
but I haven't tested this; and as mentioned before, without a working /
dev/shm you'll probably run into problems later, when running Sage.
Hope that helps,
-leif