[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 安装完emacs21.4a,运行时候提示:Emacs: cannot open termcap database file



嗯,thanks for the reply.

http://www.debian.org/doc/manuals/debian-faq/ch-compat.html 是debian关于这个
问题的论述:
3.8 Why can't I compile programs that require libtermcap?
Debian uses the terminfo database and the ncurses library of terminal
interface routes, rather than the termcap database and the termcap library.
Users who are compiling programs that require some knowledge of the terminal
interface should replace references to libtermcap with references to
libncurses.

To support binaries that have already been linked with the termcap library,
and for which you do not have the source, Debian provides a package called
termcap-compat. This provides both libtermcap.so.2 and /etc/termcap. Install
this package if the program fails to run with the error message "can't load
library 'libtermcap.so.2'", or complains about a missing /etc/termcap file.


我想需要做的就是在源码中修改TERMCAP的reference到terminfo。对这个没有研究过,
昨晚整了一晚,还是不成功。

我的系统中有libncurses.so.5的库,应该不是obsolete的问题,而是没有链接到它。
目前还没糕清楚在源码中怎么链接它。

另,我的Ubuntu目前不能上网,所以,没法使用apt-get install termcap-compat.

----- Original Message -----
From: "Luo Yong" <cyberblue.yong@gmail.com>
To: <yue.li@nw.idt.com>
Cc: <debian-chinese-gb@lists.debian.org>
Sent: Friday, September 15, 2006 12:50 AM
Subject: Re: 安装完emacs21.4a,运行时候提示:Emacs: cannot open termcap
database file


> 那段说明里说让你升级ncurses库.
>
> On 9/14/06, Li Yue <yue.li@nw.idt.com> wrote:
> > os: Ubuntu 6.06
> >
> > Hi,大家好
> >  不知道这个问题是否在debian组里提问合适,虽然Ubuntu是基于Debian而来的。
> >  在网上查了下,也有人在Debian下遇到这个问题。
> >
> >  以下是在网上搜到的,好像是问题的原因,只是不知道怎么解决它。
> >  If your system uses Terminfo rather than termcap (most modern
> > systems do), this could happen if the proper version of
> > ncurses is not visible to the Emacs configure script (i.e. it
> > cannot be found along the usual path the linker looks for
> > libraries). It can happen because your version of ncurses is
> > obsolete, or is available only in form of binaries.
> >
> >  我在系统中只能找到Terminfo,想来应该是上面的原因。
> >  请问大家,该怎么解决?
> >
> >
> > 谢谢
> >
> >
> > Li Yue
> > ------
> > GNU for free
> >
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
> >
> >
>




Reply to: