Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I followed this blog post to compile gvim with ruby support. However, when I make, I get this error:

/usr/bin/ld: cannot find -lruby-static
collect2: ld returned 1 exit status Linking failed
make[1]: *** [vim] Error 1
make[1]: Leaving directory `/home/ramon/vim/src'
make: *** [first] Error 2

I searched around for people who had this problem, and couldn't find any. This guy just changed computers altogether.

And yes, I have ruby:

$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]

What do I do?

share|improve this question

Compiling things which link to something usually requires something-dev package installed. Do you have ruby-dev installed?

apt-get install ruby-dev

should do the trick

share|improve this answer

According to this, you're set - just install vim-gnome or vim-gtkand you'll have gvim with Ruby support. No need to compile it yourself.

share|improve this answer
Thanks jrg, but like the post I mentioned above talks about, a lot of crashing occurred with the version that 11.04 comes with. – Ramon Tayag Sep 16 '11 at 13:41
@Ramon I've been using gvim since alpha 1 of 11.04, and I've never had any crashes. It might be something in your ~/.vimrc or ~/.vim/* files. – James Sep 16 '11 at 13:59

Your Answer


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.