command-t vim “Impossible de charger l’extension C”

Lorsque je clique sur \ t pour utiliser l’extension Command-T dans VIM, j’obtiens l’erreur

command-t.vim could not load the C extension 

Je ne suis pas sûr de savoir comment résoudre ce problème… des suggestions?

Merci


J’utilise la méthode d’installation de git-repository. Voici ce qui se passe quand je “rake make”:

 ~/.vim/bundle/command-t$ rake make (in /home/petef/.vim/bundle/command-t) /usr/bin/ruby1.8 extconf.rb extconf.rb:24:in `require': no such file to load -- mkmf (LoadError) from extconf.rb:24 rake aborted! Command failed with status (1): [/usr/bin/ruby1.8 extconf.rb...] /home/petef/.vim/bundle/command-t/Rakefile:136 (See full trace by running task with --trace) 

    Pete, vous devez installer le paquet ruby-dev avant d’appeler la commande “rake make”.

    Command-T nécessite une extension C compilée pour fonctionner. Voici la section pertinente de la page d’ accueil de Command-T sur la compilation de l’extension:

     The C extension must also be then comstackd; for instance, if Vimball installs your plugin files in ~/.vim, then you would do this: cd ~/.vim/ruby/command-t ruby extconf.rb make Note that Command-T requires a version of VIM with Ruby support enabled, and it must be comstackd using the same version of Ruby that Vim itself links against. For more details see the documentation: http://git.wincent.com/command-t.git/blob_plain/HEAD:/README.txt 

    Ce qui frappe généralement les gens, c’est que leur Command-t a été compilé avec une version de Ruby différente de celle de Vim. Pour installer Ruby et correspondre aux versions appropriées, vous allez vouloir installer RVM et Ruby, installer la version correcte de Ruby et faire un rake make dans le répertoire du plugin ~/.vim/bundle/Command-T .

    Voici un guide étape par étape pour installer Command-t.