新装ubuntu14.04,编译以前代码发现找不到Python库

 编译信息:

CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindPythonLibs.cmake:208 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  org.sipesc.opt/OPTPYTHON/CMakeLists.txt:13 (FIND_PACKAGE)


简单百度了一下,没有有用结果,突然想到Python可能没装全。于是看了一下啊新力得。

估计是libpython2.7-dev没有装,安装后一切ok!

你可能感兴趣的:(新装ubuntu14.04,编译以前代码发现找不到Python库)