为cygwin建立vim - 没有终端库

时间:2012-09-05 22:40:06

标签: vim cygwin ncurses

我正在尝试使用python支持cygwin来构建vim:

./configure --enable-pythoninterp --enable-gui=no --without-x \
--enable-multibyte --prefix=/usr

但无法解决错误:

checking --with-tlib argument... empty: automatic terminal library selection
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.

我安装了libncurses-devel(所以这与SO问题Building Vim from Source in Cygwin不同)

我还尝试添加--with-tlib=ncurses标记,但结果相同。

有人建议让vim识别libncurses库吗?

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

摘自auto \ config.log:

configure:9897: result: no
configure:9903: checking --with-tlib argument
configure:9938: result: empty: automatic terminal library selection
configure:9946: checking for tgetent in -ltinfo
configure:9971: gcc -o conftest.exe -g -O2   -L/usr/local/lib conftest.c -ltinfo   >&5
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -ltinfo
collect2: ld returned 1 exit status
configure:9971: $? = 1
configure: failed program was:

...

configure:9981: result: no
configure:9946: checking for tgetent in -lncurses
configure:9971: gcc -o conftest.exe -g -O2   -L/usr/local/lib conftest.c -lncurses   >&5
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lncurses
collect2: ld returned 1 exit status
configure:9971: $? = 1
configure: failed program was:
configure:9981: result: no

...

configure:9946: checking for tgetent in -ltermlib
configure:9971: gcc -o conftest.exe -g -O2   -L/usr/local/lib conftest.c -ltermlib   >&5
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -ltermlib
collect2: ld returned 1 exit status
configure:9971: $? = 1
configure: failed program was:

...

configure:9981: result: no
configure:9946: checking for tgetent in -ltermcap
configure:9971: gcc -o conftest.exe -g -O2   -L/usr/local/lib conftest.c -ltermcap   >&5
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -ltermcap
collect2: ld returned 1 exit status
configure:9971: $? = 1
configure: failed program was:

...

configure:9981: result: no
configure:9946: checking for tgetent in -lcurses
configure:9971: gcc -o conftest.exe -g -O2   -L/usr/local/lib conftest.c -lcurses   >&5
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lcurses
collect2: ld returned 1 exit status
configure:9971: $? = 1
configure: failed program was:

...

configure:9981: result: no
configure:10027: result: no terminal library found
configure:10033: checking for tgetent()
configure:10046: gcc -o conftest.exe -g -O2   -L/usr/local/lib conftest.c  >&5
C:\cygwin\tmp\cc4wgcbm.o: In function `main':
C:\Temp\vim\src/conftest.c:46: undefined reference to `tgetent'
collect2: ld returned 1 exit status
configure:10046: $? = 1
configure: failed program was:

configure:10052: error: NOT FOUND!
      You need to install a terminal library; for example ncurses.
      Or specify the name of the library with --with-tlib.

ls / usr / lib / libncurses。*

/usr/lib/libncurses.a /usr/lib/libncurses.dll.a /usr/lib/libncurses.la

1 个答案:

答案 0 :(得分:3)

糟糕!看起来我没有安装一些libncurses源(虽然我以为我有)。不幸的是,我采用了一个猎枪方法并为所有ncurses / libncurses包安装了源代码(并且还添加了一些gcc包),所以我不是100%确定哪些是必需的,但我认为它是libncurses-devel源。 / p>

注意:由于SO在新用户可以回答自己的问题之前的等待时间,最初在上面评论中回答