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?
Compiling things which link to
something
usually requiressomething-dev
package installed. Do you haveruby-dev
installed?should do the trick
According to this, you're set - just install
vim-gnome
orvim-gtk
and you'll have gvim with Ruby support. No need to compile it yourself.Update for Ubuntu 18.04... to get Ruby support I had to uninstall
vim-gtk3
andvim-gnome
. Here's a list of ok-to-install packages. With only these,+ruby
shows invim --version | grep ruby
and Command-T works.