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 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
link.sh: 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
add comment

2 Answers 2

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
add comment

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. –  jrg Sep 16 '11 at 13:59
add comment

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.