Ask Your Question
0

Alternative to install vim with dnf package-manager

asked 2017-09-12 13:18:17 -0500

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?.

Thanks.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2017-09-12 14:30:33 -0500

jmt gravatar image

updated 2017-09-12 14:38:04 -0500

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
2

answered 2017-09-12 19:27:54 -0500

ssieb 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

Comments

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 gravatar imagevillykruse ( 2017-09-14 04:07:57 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-09-12 13:18:17 -0500

Seen: 405 times

Last updated: Sep 12 '17