2012-09-05 67 views
1

我試圖用建立與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 
+0

糟糕!看起來我沒有安裝一些libncurses源代碼(儘管我認爲我已經安裝了)。不幸的是,我採取了霰彈槍的方法,併爲所有ncurses/libncurses軟件包安裝了源代碼(並且還添加了一些gcc軟件包),所以我不能100%確定哪些是必需的,但我認爲它是libncurses-devel源代碼。 配置並使現在工作正常。 – riedldar

回答

2

糟糕!看起來我沒有安裝一些libncurses源代碼(儘管我認爲我已經安裝了)。不幸的是,我採取了霰彈槍的方法,併爲所有ncurses/libncurses軟件包安裝了源代碼(並且還添加了一些gcc軟件包),所以我不能100%確定哪些是必需的,但我認爲它是libncurses-devel源代碼。

注:初步回答了上面的註釋由於SO的等待期之前,新用戶可以回答自己的問題

+0

我可以確認安裝libncurses-devel足以解決這個問題。不過,我將日誌消息解釋爲還有其他解決方案。 – johnny

+0

這真的幫了我很多,它解決了這個問題。 –

+0

但任何人都可以幫助我在配置中添加'+ clientserver'功能? –