Ask Your Question

Alternative to install vim with dnf package-manager

asked 2017-09-12 18:18:17 +0000

gfe gravatar image

Hi, I'd like to install vim in my Fedora 26 Workstation, I've followed the guide of valloric, but when I compile, an error message appears (is the following):

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.

So, do you guys have any suggestion?.


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-09-12 19:30:33 +0000

jmt gravatar image

updated 2017-09-12 19:38:04 +0000

The question is: Why?

You can install vim with the command sudo dnf install vim-enhanced

If you really want to install from sources, you can get the same version of vim from the Fedora sources patched by Fedora package maintainers: rpm download --source vim-enhanced

Then you can simply install the sources into your home directory: rpm -ivh vim-8.0.1030-1.fc26.src.rpm

Then you need to install the packages rpm-bulid and rpmdevtools and learn to use them.

You might need to install the build dependencies: sudo dnf builddep vim-enhanced

First unpack and patch the sources with rpmbuild -bp rpmbuild/SPECS/vim.spec

Then you can either build the binaries with rpmbuild or even manually from the build directory ~/rpmbuild/BUILD/vim80

I tried to ./configure the Fedora source of vim and there were no problems.

However, if you don't need to modify the sources, I don't see the point of this all.

edit flag offensive delete link more

answered 2017-09-13 00:27:54 +0000

Samuel Sieb gravatar image

I also wonder why you're doing that, but the answer to your question is that you need to install the -devel packages to get the headers. For this specific one, you would need to install ncurses-devel, but I expect you will find you need other ones as well.

edit flag offensive delete link more


Fedora vim is at the moment very up-to-date with the latest vim versions as found on the vim git repository. https://github.com/vim/vim.git

villykruse ( 2017-09-14 09:07:57 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2017-09-12 18:18:17 +0000

Seen: 229 times

Last updated: Sep 13 '17