ncurses not found when trying to build vim

梦想与她 提交于 2019-12-01 11:10:33

I ran into the same issue on Fedora23. Here is my solution:

  1. make sure you have ncurses-devel installed
  2. CFLAGS=-fPIC ./configure --with-tlib=ncurses and your_options

I checked the config.log and found that gcc complained the lack of '-fPIC'

You apparently do not have the development package for ncurses installed. On Fedora23, that would be ncurses-devel, e.g., ncurses-devel-5.9-21.20150214.fc23.x86_64

Without that, you have only the runtime libraries (which are required).

Once you have that, the configuration for vim 7.4 would show something like this:

checking --with-tlib argument... empty: automatic terminal library selection
checking for tgetent in -ltinfo... yes
checking whether we talk terminfo... yes
checking what tgetent() returns for an unknown terminal... zero
checking whether termcap.h contains ospeed... yes
checking whether termcap.h contains UP, BC and PC... yes
checking whether tputs() uses outfuntype... no

Further reading:

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