Markus Neteler schrieb:
[gekürzt]
Till Francke wrote:
Hallo, ich benutze GRASS 5.0.0pre3 (January 2002) und bin ein ziemlicher Linux-Krüppel, so dass mich folgende Fehlermeldung bei Aufruf eines Monitorfensters ziemlich hilflos macht:
GRASS:~ > d.mon x0 Could not execute monitor: No such file or directory No socket to connect to for monitor <x0>. Problem selecting x0. Will try once more No socket to connect to for monitor <x0>.
Hallo Otto, ertmal danke für die Tips. Ich benutze die GRASS 5.0.0pre3 prekompilierte Version. GISBASE/driver/XDRIVER und GISBASE/driver/etc/monitorcap sind beide OK.
Hi,
versuch mal (wenn Du unter der bash-shell arbeitest, sonst ist die Syntax anders): strace d.mon x0 2> log.txt
und schau in log.txt rein. Dort sollte irgendwo eine Fehlermeldung stehen (schick' mir die Datei, wenn sie Dir zu raetselhaft ist). Wenn 'strace' nicht gefunden wird, muesstest Du es von der CDROM installieren. Es ist ein nuetzliches Werkzeug, um zu herauszufinden, was ein Programm intern tut, ohne gleich den Debugger anzuwerfen.
Die Bibliothek tcl-8.3.2-7mdk ist ebenso installiert. Wo könnte der Fehler noch liegen? Welche Verzeichnisse müssen in der PATH-Systemvariable gesetzt werden? Gib mal ein: wish
Ein leeres Fenster sollte sich oeffnen. Das kannst Du dann wieder zuklicken. Wenn es sich nicht oeffnet, ist wish entweder nicht installiert oder nicht im Pfad. Bei mir 'wohnt' es in which wish /usr/bin/wish
Schoene Gruesse
Markus
Hallo Markus, danke für die Vorschläge. strace liefert folgende Ausgabe, aus der ich irgendwie nur entnehmen kann, dass jede Menge fehlt. Ich weiß aber nicht, wie ich das beheben kann: -------------------- execve("/usr/bin/d.mon", ["d.mon", "x0"], [/* 64 vars */]) = 0 uname({sys="Linux", node="localhost.localdomain", ...}) = 0 brk(0) = 0x8084e8c open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/i686/mmx/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/i686/mmx", 0xbfffe914) = -1 ENOENT (No such file or directory) open("/usr/lib/i686/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/i686", 0xbfffe914) = -1 ENOENT (No such file or directory) open("/usr/lib/mmx/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/mmx", 0xbfffe914) = -1 ENOENT (No such file or directory) open("/usr/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=28672, ...}) = 0 open("/usr/local/grass5/lib/i686/mmx/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/local/grass5/lib/i686/mmx", 0xbfffe914) = -1 ENOENT (No such file or directory) open("/usr/local/grass5/lib/i686/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/local/grass5/lib/i686", 0xbfffe914) = -1 ENOENT (No such file or directory) open("/usr/local/grass5/lib/mmx/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/local/grass5/lib/mmx", 0xbfffe914) = -1 ENOENT (No such file or directory) open("/usr/local/grass5/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/local/grass5/lib", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=45706, ...}) = 0 old_mmap(NULL, 45706, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000 close(3) = 0 open("/lib/libm.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340I\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=129908, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40022000 old_mmap(NULL, 131448, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40023000 mprotect(0x40042000, 4472, PROT_NONE) = 0 old_mmap(0x40042000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1e000) = 0x40042000 close(3) = 0 open("/usr/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/grass5/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libz.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\37"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=56088, ...}) = 0 old_mmap(NULL, 58992, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40044000 mprotect(0x40051000, 5744, PROT_NONE) = 0 old_mmap(0x40051000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xc000) = 0x40051000 close(3) = 0 open("/usr/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/grass5/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\302\1"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=1216268, ...}) = 0 old_mmap(NULL, 1231496, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40053000 mprotect(0x40177000, 35464, PROT_NONE) = 0 old_mmap(0x40177000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x123000) = 0x40177000 old_mmap(0x4017c000, 14984, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4017c000 close(3) = 0 open("/usr/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/grass5/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\302\1"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=1216268, ...}) = 0 close(3) = 0 open("/usr/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/grass5/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\302\1"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=1216268, ...}) = 0 close(3) = 0 mprotect(0x40044000, 53248, PROT_READ|PROT_WRITE) = 0 mprotect(0x40044000, 53248, PROT_READ|PROT_EXEC) = 0 munmap(0x40016000, 45706) = 0 getpid() = 1225 brk(0) = 0x8084e8c brk(0x8084eac) = 0x8084eac brk(0x8085000) = 0x8085000 brk(0x8086000) = 0x8086000 open("/root/.grassrc5", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=84, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 read(3, "GISDBASE: /root/grassdata\nMAPSET"..., 4096) = 84 read(3, "", 4096) = 0 close(3) = 0 munmap(0x40016000, 4096) = 0 access("/root/grassdata/hannover", F_OK) = 0 stat64("/root/grassdata/hannover/kronsberg", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 SYS_199(0x4017af2c, 0, 0x4017bb60, 0x401799d0, 0) = 0 semop(1075293996, 0x401799d0, 0) = 0 stat64("/root/grassdata/hannover/kronsberg", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 SYS_199(0x4017af2c, 0, 0x4017bb60, 0x401799d0, 0) = 0 semop(1075293996, 0x401799d0, 0) = 0 umask(022) = 022 open("/root/.grassrc5", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=84, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 read(3, "GISDBASE: /root/grassdata\nMAPSET"..., 4096) = 84 read(3, "", 4096) = 0 close(3) = 0 munmap(0x40016000, 4096) = 0 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 fork() = 1226 wait4(1226, Could not execute monitor: No such file or directory [WIFEXITED(s) && WEXITSTATUS(s) == 1], 0, NULL) = 1226 rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0 rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 --- SIGCHLD (Child exited) --- rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 fork() = 1227 wait4(1227, No socket to connect to for monitor <x0>. [WIFEXITED(s) && WEXITSTATUS(s) == 1], 0, NULL) = 1227 rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0 rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 --- SIGCHLD (Child exited) --- write(2, "Problem selecting x0. Will try o"..., 41Problem selecting x0. Will try once more ) = 41 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 fork() = 1228 wait4(1228, No socket to connect to for monitor <x0>. [WIFEXITED(s) && WEXITSTATUS(s) == 1], 0, NULL) = 1228 rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0 rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 --- SIGCHLD (Child exited) --- _exit(512) = ? ----------------------------------EOF wish scheint auch nicht installiert zu sein. In welchem Paket kann man das finden oder wo bekommt man das sonst her? Danke Till