&引用;未找到终端库错误“;在vim配置期间

&引用;未找到终端库错误“;在vim配置期间,vim,aix,Vim,Aix,我尝试在IBMAIX6.1中构建Vim7.4。当我运行configure脚本/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...

我尝试在IBMAIX6.1中构建Vim7.4。当我运行configure脚本
/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.
| 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.
检查
config.info
时,我能够看到以下错误

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.
| 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 */
|#包括
|#如果STDC#U头
|#包括
|#包括
|#endif
|#包括
|#包括“confdefs.h”
|
|int
|主要()
| {
|堆栈sigstk;sigstk.ss_base=0;
|   ;
|返回0;
| }
配置:10339:结果:否
configure:10345:检查--with tlib参数
配置:10354:结果:诅咒
配置:10357:检查与curses库的链接
配置:10370:gcc-o conftest-g-O2 conftest.c-lcurses>&5
collect2:/lib/libcurses.a:不是COFF文件
配置:10370:$?=1.
配置:失败的程序是:
|/*confdefs.h*/

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

安装
libncurse5dev
libtinfo dev
软件包帮了我的忙。我甚至没有费心使用
——with tlib
参数,configure刚刚起作用。可能只有
libtinfodev
包就可以了。我的系统是全新的Debian8.3


`

此查询的更好位置是tgetent do exist in/usr/lib/libcurses.a。。。您应该检查文件
config.log
以查看实际错误消息和失败的测试程序注意:如果
configure
选项
--with-x=no
--without-x
OP可以检查
config.log
并查看实际错误(问题中只显示了摘要),那就太酷了。关于
--不带-x
:使用
sed
对文件src/auto/configure:
sed_repl's/$with_x/no/g'src/auto/configure
都德,他在IBM AIX上。这是一个与Debian截然不同的系统。