wklken/k-vim

重装时遇到 ycm 错误

Closed this issue · 1 comments

Mac OS X 10.11.6
vim 8.0
用的是 pyenv,但安装 Python 版本时有添加这行

export PYTHON_CONFIGURE_OPTS="--enable-shared" 

.zshrc

最后还是报这个错:

/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `cd /private/var/folders/df/g_gpcyqx3j35s2yvr5k2tysc0000gn/T/ycm_build.jbg_nfbe/ycm && /usr/local/Cellar/cmake/3.8.2/bin/cmake -E copy /private/var/folders/df/g_gpcyqx3j35s2yvr5k2tysc0000gn/T/ycm_build.jbg_nfbe/clang+llvm-3.9.0-x86_64-apple-darwin/lib/libclang.dylib /Users/Scott/Dropbox\ (Personal)/Mackup/.vim/bundle/YouCompleteMe/third_party/ycmd'
make[3]: *** [/Users/Scott/Dropbox (Personal)/Mackup/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so] Error 2
make[3]: *** Deleting file `/Users/Scott/Dropbox (Personal)/Mackup/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so'
make[2]: *** [ycm/CMakeFiles/ycm_core.dir/all] Error 2
make[1]: *** [ycm/CMakeFiles/ycm_core.dir/rule] Error 2
make: *** [ycm_core] Error 2
Traceback (most recent call last):
  File "/Users/Scott/Dropbox (Personal)/Mackup/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 371, in BuildYcmdLib
    subprocess.check_call( build_command )
  File "/usr/local/var/pyenv/versions/3.5.3/lib/python3.5/subprocess.py", line 271, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'ycm_core', '--', '-j', '4']' returned non-zero exit status 2


ERROR: The build failed.

NOTE: It is *highly* unlikely that this is a bug but rather
that this is a problem with the configuration of your system
or a missing dependency. Please carefully read CONTRIBUTING.md
and if you're sure that it is a bug, please raise an issue on the
issue tracker, including the entire output of this script
and the invocation line used to run it.

Traceback (most recent call last):
  File "install.py", line 44, in <module>
    Main()
  File "install.py", line 33, in Main
    subprocess.check_call( [ python_binary, build_file ] + sys.argv[1:] )
  File "/usr/local/var/pyenv/versions/3.5.3/lib/python3.5/subprocess.py", line 271, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/var/pyenv/versions/3.5.3/bin/python', '/Users/Scott/Dropbox (Personal)/Mackup/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py', '--clang-completer']' returned non-zero exit status 1
+ echo 'Install Done!'
Install Done!

安装了很多次,实在无果来求助

发现是 mackup 导致的问题,删了仓库,重新克隆安装,已安装上。