Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
i'm using vundle to install YCM plugin.After cloning it, I installed cmake using "yum install cmake",but when running "yum install python-dev" , i get the error:
Loaded plugins: langpacks, presto, refresh-packagekit No package python-dev available. Error: Nothing to do
subsequently,i run the "$./install.sh" command,and get the error:
/tmp/ycm_build.tqeE3f ~/.vim/bundle/YouCompleteMe -- The C compiler identification is GNU 4.7.2 -- The CXX compiler identification is GNU 4.7.2 -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- 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 Your C++ compiler supports C++11, compiling in that mode. CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "2.5") Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake/Modules/FindPythonLibs.cmake:186 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) BoostParts/CMakeLists.txt:29 (find_package)
i google it, but still can't resolve.please help.my OS is fedora
i'm using vundle to install YCM plugin.After cloning it, I installed cmake using "yum install cmake",but when running "yum install python-dev" , i get the error:
Loaded plugins: langpacks, presto, refresh-packagekit
No package python-dev available.
I think you must execute yum install python-devel package.
"python-dev" is ubuntu/Debian's package name.
The issue tracker is not for tech support; please use it only to report possible bugs/feature requests for YCM.
@Shougo ,thanks you are right.
on Ubuntu you shoud run
sudo apt-get install python2.7-dev
@liugangnhm it works, thanks!
+1 @liugangnhm
+1 @liugangnhm
+1 @liugangnhm
+1 @liugangnhm