我試圖用建立與Python支持的vim的Cygwin的無終端庫:建築VIM的cygwin的 -
./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庫嗎?
+++++++++++++可能相關的信息++++++++++++++++
從自動節選\的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
糟糕!看起來我沒有安裝一些libncurses源代碼(儘管我認爲我已經安裝了)。不幸的是,我採取了霰彈槍的方法,併爲所有ncurses/libncurses軟件包安裝了源代碼(並且還添加了一些gcc軟件包),所以我不能100%確定哪些是必需的,但我認爲它是libncurses-devel源代碼。 配置並使現在工作正常。 – riedldar