在 vim 配置期间"No terminal library found error"



我尝试在IBM AIX 6.1中构建Vim 7.4。当我运行配置脚本./configure时,出现以下错误

checking --with-tlib argument... empty: automatic terminal library selection
checking for tgetent in -ltinfo... no
checking for tgetent in -lncurses... no
checking for tgetent in -ltermlib... no
checking for tgetent in -ltermcap... no
checking for tgetent in -lcurses... no
no terminal library found
checking for tgetent()... configure: error: NOT FOUND!
      You need to install a terminal library; for example ncurses.
      Or specify the name of the library with --with-tlib.

检查config.info我能够看到以下错误

| int
| main ()
| {
| char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
|   ;
|   return 0;
| }
configure:10492: error: NOT FOUND!
      You need to install a terminal library; for example ncurses.
      Or specify the name of the library with --with-tlib.

但是curses库(libcurses.a)存在于/usr/lib目录中。然后我./configure --with-tlib=curses尝试了以下命令,这次得到了不同的错误,如下所示

checking --with-tlib argument... curses
checking for linking with curses library... configure: error: FAILED

config.info错误消息是

| #include <sys/types.h>
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #endif
| #include <signal.h>
| #include "confdefs.h"
|
| int
| main ()
| {
| stack_t sigstk; sigstk.ss_base = 0;
|   ;
|   return 0;
| }
configure:10339: result: no
configure:10345: checking --with-tlib argument
configure:10354: result: curses
configure:10357: checking for linking with curses library
configure:10370: gcc -o conftest -g -O2   conftest.c  -lcurses >&5
collect2: /lib/libcurses.a: not a COFF file
configure:10370: $? = 1
configure: failed program was:
| /* confdefs.h */

我做错了什么,我该如何构建?

安装 libncurses5-devlibtinfo-dev 软件包为我提供了诀窍。我什至没有费心使用 --with-tlib 参数和配置只是工作。可能是仅libtinfo-dev包就可以了。我的系统是全新的 Debian 8.3。

'

最新更新