fedora21 vim_在Fedora 21上构建Vim的YouCompleteMe所需的软件包

fedora21 vim

YouCompleteMe for Vim on Fedora 21 reports this error:

Fedora 21上的Vim YouCompleteMe报告此错误

[zma@laptop:~/.vim/bundle/YouCompleteMe]$ ./install.sh 
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring incomplete, errors occurred!
See also "/tmp/ycm_build.22CI4l/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
  File "/home/zma/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 177, in <module>
    Main()
  File "/home/zma/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 172, in Main
    BuildYcmdLibs( GetCmakeArgs( args ) )
  File "/home/zma/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 145, in BuildYcmdLibs
    sh.cmake( *full_cmake_args, _out = sys.stdout )
  File "/home/zma/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/sh/sh.py", line 1021, in __call__
    return RunningCommand(cmd, call_args, stdin, stdout, stderr)
  File "/home/zma/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/sh/sh.py", line 486, in __init__
    self.wait()
  File "/home/zma/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/sh/sh.py", line 500, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/zma/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/sh/sh.py", line 516, in handle_command_exit_code
    raise exc(self.ran, self.process.stdout, self.process.stderr)
sh.ErrorReturnCode_1: 

  RAN: '/usr/bin/cmake -G Unix Makefiles /home/zma/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp'

  STDOUT:


  STDERR:
Your C++ compiler supports C++11, compiling in that mode.
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
  Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
  (Required is at least version "2.6")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindPythonLibs.cmake:201 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  BoostParts/CMakeLists.txt:30 (find_package)

Which package is missing here? python-libs is installed:

这里缺少哪个包裹? python-libs已安装:

$ rpm -qa | grep python-libs
python-libs-2.7.8-7.fc21.i686
python-libs-2.7.8-7.fc21.x86_64

The message is a little bit misleading here for the Fedora environment.

对于Fedora环境,此消息有点误导。

What you need is the python-devel package here. You can install it by

您需要的是此处的python-devel软件包。 您可以通过安装

# yum install python-devel
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/required-packages-for-building-youcompleteme-for-vim-on-fedora-21/

fedora21 vim

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值