Search code examples
vimcompilationpython-3.xncursesopensuse

Compiling vim from source - fails to configure with libncurses6


I have recently started moving to vim as my main development environment, and I wanted to write some plugins for it in Python. I soon discovered that on my opensuse, vim is distributed without python support so I proceeded to get the source and try to compile it. Calling

./configure --enable-python3interp

returns an error that ncurse is not installed. Since on OpenSuse libncurses6 provides that, I proceeded to do this:

./configure --enable-python3interp --with-tlib=libncurses6

In this case I get the following error:

checking --with-tlib argument... libncurses6
checking for linking with libncurses6 library... configure: error: FAILED

I am not sure what to do. I have installed all ncurse related packages just in case, still no luck. My OS is OpenSuse 11.4 and I would prefer to use the python 3.x interpreter by default. Thanks in advance!


Solution

  • According to the OpenSUSE build service, you should have the ncurses-devel package installed and run configure using --with-tlib=ncurses.