我正在尝试安装Vim的Command-T插件,但到目前为止没有成功。
我使用brew重新安装了vim,vim使用的ruby版本是2.5.1
我使用RVM安装了ruby 2.5.1,然后运行了 ruby extconf.rb 命令,得到以下输出:
checking for float.h... yes
checking for ruby.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for fcntl.h... yes
checking for stdint.h... yes
checking for sys/errno.h... yes
checking for sys/socket.h... yes
checking for ruby/st.h... yes
checking for st.h... yes
checking for pthread_create() in -lpthread... yes
creating Makefile
然后我运行了make命令并成功获取了结果。
compiling ext.c
compiling heap.c
compiling match.c
compiling matcher.c
compiling watchman.c
linking shared-object ext.bundle
但是当我尝试在vim中使用它时,我收到了以下消息:
command-t.vim could not load the C extension.
Please see INSTALLATION and TROUBLE-SHOOTING in the help.
Vim Ruby version: 2.5.1-p57
For more information type: :help command-t
如果我使用 Ruby 版本 2.5.0 进行编译,会提示我使用了错误的 Ruby 版本。我不知道还能做什么,请帮帮我。
:ruby puts "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
。该命令的输出是什么? - Dmitry Shvetsov