Vim Command-T plugin error: could not load the C extension

Carlo picture Carlo · Oct 28, 2011 · Viewed 14.7k times · Source

I'm trying to install the Command-T plugin.

I compiled vim following the instructions in this comment: Installing vim with ruby support (+ruby)

So now there's the +ruby flag, but still when I try to use the plugin I get this error:

command-t.vim could not load the C extension
Please see INSTALLATION and TROUBLE-SHOOTING in the help              
For more information type:    :help command-t

I have ruby on my system:

> ruby -v
> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

suggestions?

Answer

lucapette picture lucapette · Oct 28, 2011

Go to plugin dir and run the following command:

rake make

It compiles the plugin extension you need.