Building Vim from Source in Cygwin

余生颓废 提交于 2019-11-30 16:48:25

I think you're missing a required package. Lengthy explanation follows; jump to the end for the answer.

I ran the exact same ./configure ... command on my own system (Windows 7, Cygwin). Part of its output was:

checking for tgetent in -lncurses... yes

which indicates that I don't have the same problem you have.

The configure script writes a more verbose log to src/auto/config.log. On my system, that shows:

configure:9777: checking for tgetent in -lncurses
configure:9802: gcc -o conftest.exe -g -O2   -L/usr/local/lib conftest.c -lncurses  -lelf   >&5
configure:9802: $? = 0
configure:9812: result: yes

The -lncurses option tells the linker to look at /usr/lib/libncurses.foo, where .foo can be .a, or .so, or .dll, depending on the system and whether you're doing dynamic linking. On Cygwin, the cygcheck command can tell you which package owns a specified file or files. On my system:

$ ls /usr/lib/libncurses.*
/usr/lib/libncurses.a  /usr/lib/libncurses.dll.a  /usr/lib/libncurses.la
$ cygcheck -f /usr/lib/libncurses.*
libncurses-devel-5.7-18
libncurses-devel-5.7-18
libncurses-devel-5.7-18

I believe that installing libncurses-devel (via the Cygwin setup.exe) should fix your problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!