在vim配置期间“没有发现终端库发现错误”

时间:2016-01-21 05:03:47

标签: vim aix

我尝试在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 */

我做错了什么以及如何进行构建?

1 个答案:

答案 0 :(得分:-1)

安装libncurses5-devlibtinfo-dev软件包对我来说很有用。我甚至不打扰使用--with-tlib参数并配置刚工作。可能只有libtinfo-dev包才能做到。我的系统是一个新的Debian 8.3。

`