install CommandT in OsX mojave . I got Error Vim Command-T plugin error: could not load the C extension
I also met this problem after I did brew upgrade
today. I fixed it by following steps:
- Update command-t fist.
cd ~/.vim/bundle/command-t/
git pull
git submodule update --remote --merge
- Update ruby
brew reinstall ruby
- Add ruby into PATH.
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
- Check ruby version is updated to 2.6
$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]
- Build commant-t again
cd ~/.vim/bundle/command-t/
rake make
Hope those steps could solve your problem.
CommandT installation problems on windows
not a real answer but you may wanna try ctrlp instead.
- written in
vimscript
(no dependency, no compiling) - as fast as
CommandT
(subjective to me) - has probably more features than
CommandT
(doesCommandT
have most recent file?)
there is also the good old FuzzyFinder which I haven't tried. seems like it hasn't got updated for about 2 years but it may still be working.
How to change vim ruby version
Try the following:
$ cd ~/.vim/bundle/command-t/ruby/command-t/
$ rbenv local system
$ ruby extconf.rb
$ make clean
$ make
Taken from this post. I've had this problem before and these steps worked for me.
vim-cmake-project error: perl not found
Your vim installation was not installed with perl.
If you look at the first couple of lines of the plugin you find.
if !has('perl')
echo 'Error: perl not found'
finish
else
has('perl')
checks to see if vim has the perl feature. Since you see the output of the if statement you do not have the perl feature.
To fix this error recompile vim with perl enabled.
Related Topics
Instance_Eval Block Not Supplied
Get SASS from Database (Compile Passed Data Instead of Reading from File)
Indentation Sensitive Parser Using Parslet in Ruby
Deploying Sinatra App (With Config.Ru) on Heroku Cedar Stack
Where Are Methods Defined at the Ruby Top Level
How to Get Long Url from Short Url
How to Get the Parent's Class Name in Ruby
What Is the Expected Syntax for Checking Exception Messages in Minitest's Assert_Raises/Must_Raise
How Get All Routes in My Rails Application
How to List Included Modules in a Ruby Class
How Many Rails Apps on 1 Heroku Dyno
Find File Path of a Given Class
How to Authorize a Service Account for Google Calendar API in Ruby
Bundler Install Getting "I18N Requires Ruby Version >= 1.9.3"