[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cannot open termcap database file
From: |
NAKAJI Hiroyuki |
Subject: |
Cannot open termcap database file |
Date: |
23 Oct 2001 20:24:08 +0900 |
User-agent: |
T-gnus/6.15.3 (based on Oort Gnus v0.03) (revision 06) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (UnebigoryĆmae) APEL/10.3 Emacs/20.7 (i386--freebsd) MULE/4.0 (HANANOEN) |
Hi,
I tried emacs-21.1 on my Debian/ppc and failed. :(
First, 'make all' failed because the linker option '-z nocombreloc' is
not available. I removed it and compilation is done.
Second, this is more serious, src/emacs cannot start with an error
message, "Cannot open termcap database file".
I watched src/term.c and src/termcap.c, and found that this error
occurs because my Debian does not have /etc/termcap.
In tgetent() in src/termcap.c,
/* Here we know we must search a file and termcap_name has its name. */
#ifdef MSDOS
fd = open (termcap_name, O_RDONLY|O_TEXT, 0);
#else
fd = open (termcap_name, O_RDONLY, 0);
#endif
if (fd < 0)
return -1; /* <- This leads to fatal() in term.c */
But I have never seen this kind of error with emacs-20.7 and the
system is using terminfo instead of termcap.
Any advice is appreciated. Thanks.
--
NAKAJI Hiroyuki