Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to learn how to compile vim from the sources, because there are some additions that I want to add, and learn how to deal with this situations, but until now I didn't have success doing it, I can compile vim, but without its GUI

I think it's a dependencies problem, but I can't figure out which packages I have to install, what are the dependencies to compile vim with its gui?

I found an article about how to compile gvim, but I don't have the packages for install in my ubuntu 10.10 repositories, I hope to find some help with this

Greetings

share|improve this question

2 Answers 2

up vote 8 down vote accepted

Generally you can use the "build-dep" command of "apt-get" to fetch dependencies to a package. Use it like this:

sudo apt-get build-dep [package name]

Or more specifically for gvim:

sudo apt-get build-dep vim-gnome

After that you should be able to compile gvim/vim either without further intervention or with only small set of dependencies to resolve required by a newer version of gvim/vim that you are compiling.

As Marius noted one such dependency resolution is installing libssl-dev manually:

sudo apt-get install libssl-dev

Enjoy!

share|improve this answer
    
I just found this solution on the vim's mailing list, that was I was looking for, thanks! –  forellana Oct 12 '10 at 6:41
    
There's no package gvim. You want sudo apt-get build-dep vim-gnome. –  Marius Gedminas Oct 12 '10 at 13:16
    
One thing I also discovered when building newest vim versions on Ubuntu lucid: you also need to install libssl-dev explicitly, as it was not a build dependency for the version of vim packaged in Ubuntu at the time. –  Marius Gedminas Oct 12 '10 at 13:18

For building Vim on Ubuntu or Debian, follow the steps listed here: https://gist.github.com/211238

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.