ncurses not found when trying to build vim

后端 未结 2 1401
时光说笑
时光说笑 2021-01-14 18:14

I am trying to build vim in my user dir after recently upgraded to Fedora 23

I have ncurses and ncurses-devel

[root@statquant-laptop lib]# dnf instal         


        
相关标签:
2条回答
  • 2021-01-14 18:37

    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'

    0 讨论(0)
  • 2021-01-14 18:47

    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:

    • how to install ncurses library in fedora?
    • RPM resource ncurses-devel
    0 讨论(0)
提交回复
热议问题