태그 보관물: extension

extension

command-t vim“C 확장을로드 할 수 없습니다” 확장을 사용하기 위해

VIM에서 Command-T 확장을 사용하기 위해 \ t를 누르면 오류가 발생합니다.

command-t.vim could not load the C extension

이 문제를 해결하는 방법을 잘 모르겠습니다 … 제안 사항이 있습니까?

감사


git-repository 설치 방법을 사용하고 있습니다. 내가 “갈퀴”를 만들 때 어떻게됩니까?

~/.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, “rake make”명령을 호출하기 전에 ruby-dev 패키지를 설치해야합니다.


답변

Command-T가 작동하려면 컴파일 된 C 확장이 필요합니다. 확장을 컴파일하는 방법에 대한 Command-T 홈페이지 의 관련 섹션은 다음과 같습니다 .

The C extension must also be then compiled; 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 compiled 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


답변

일반적으로 사람들을 가장 많이 찾는 것은 Command-t가 Vim 버전과 다른 Ruby 버전으로 컴파일되었다는 것입니다. Ruby를 설치하고 올바른 버전을 일치 시키려면 RVM 및 Ruby를 설치하고 올바른 버전의 Ruby를 설치 한 rake make~/.vim/bundle/Command-T플러그인 디렉토리 에서 수행하십시오 .

다음 은 Command-t를 설치하는 단계별 안내서입니다.


답변