unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Cannot open termcap database file for emacs?
Date: Sat, 30 Jul 2005 20:31:23 +0200	[thread overview]
Message-ID: <78fb33e88955f16278da6e6be13f3fa4@Web.DE> (raw)
In-Reply-To: <1122745711.408528.87540@g43g2000cwa.googlegroups.com>


Am 30.07.2005 um 19:48 schrieb Erik the Red:

> emacs is definitely installed because a man page comes up when I type
> "man emacs".

That's no proof: a man page can exist without the binary, and 
viceversa. Try 'which emacs'!

>
> However, if I try to run emacs, it gives me this error message in bash:
>
> emacs: Cannot open termcap database file
>

You have two choices: run emacs as an X client inside its own window 
(for which you need to launch X11 and set the environment variable 
DISPLAY) or you set in your terminal emulations the environment 
variable TERMCAP and give it as value the absolute to the file 
termcap.src inside the emacs distribution.

If Emacs has to run without its own windows inside a terminal emulation 
it needs to know some properties of this terminal to move the cursor, 
'split' the terminal to create buffers and the mode-line with 
mini-buffer, etc. This information is taken from the termcap file. 
Since modern UNIX systems rely on TERMINFO Emacs seems to be like an 
elderly woman that once, before the war, used to pay in shilling and 
pence and guineas (in UK), it still needs TERMCAP, which once was the 
file /etc/termcap. This file has become part of the Emacs distribution 
as the file termcap.src, usually in 
/usr/local/share/emacs/<version>/etc/termcap.src.

This file might be to old, not knowing your modern terminal emulation. 
You can use the terminfo utilities (tic, infotocap, toe, captoinfo, 
infocmp, ...) to convert the most needed terminfo entries to termcap 
format and store it in some private dot file, $HOME/.termcap for 
example. Start with 'man 5 terminfo', 'man 5 term' to learn some basics 
-- if Ubuntu doesn't provide them, debian will have it. 'apropos 
termcap' and 'apropos terminfo' might give you some more appropriate 
pointers.

--
Mit friedvollen Grüßen

   Pete

Der Bezug einer Zeitung oder der Kauf eines Buches gibt niemand das 
Recht, an die Verfasserinnen von Artikeln oder Büchern dreiste Briefe 
zu schreiben. (Friedrich Sieburg)

  reply	other threads:[~2005-07-30 18:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-30 17:48 Cannot open termcap database file for emacs? Erik the Red
2005-07-30 18:31 ` Peter Dyballa [this message]
     [not found] ` <mailman.2126.1122748577.20277.help-gnu-emacs@gnu.org>
2005-07-30 22:01   ` Erik the Red
2005-07-31  8:52     ` Peter Dyballa
2005-08-01  0:14 ` Henrik Enberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=78fb33e88955f16278da6e6be13f3fa4@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).