python 三方包源码编译错误
来源:互联网 发布:阿猫阿狗 知乎 编辑:程序博客网 时间:2024/06/08 17:05
在编译jpype python setup.py build 时遇到如下错误:
4-2.4/src/native/python/jpype_javaarray.oIn file included from src/native/python/jpype_javaarray.cpp:18:src/native/python/include/jpype_python.h:24:20: error: Python.h: No such file or directorysrc/native/python/include/jpype_python.h:28:20: error: pyport.h: No such file or directoryIn file included from src/native/python/include/jpype_python.h:109, from src/native/python/jpype_javaarray.cpp:18:src/native/python/include/py_monitor.h:20:20: error: object.h: No such file or directorysrc/native/python/include/pythonenv.h:40: error: ISO C++ forbids declaration of 'PyObject' with no typesrc/native/python/include/pythonenv.h:40: error: expected ';' before '*' tokensrc/native/python/include/pythonenv.h:43: error: ISO C++ forbids declaration of 'PyObject' with no typesrc/native/python/include/pythonenv.h:43: error: expected ';' before '*' tokensrc/native/python/include/pythonenv.h:44: error: ISO C++ forbids declaration of 'PyObject' with no typesrc/native/python/include/pythonenv.h:44: error: expected ';' before '*' tokensrc/native/python/include/pythonenv.h:61: error: 'PyObject' has not been declaredsrc/native/python/include/pythonenv.h:62: error: 'PyObject' has not been declaredsrc/native/python/include/pythonenv.h:62: error: 'PyObject' has not been declaredsrc/native/python/include/pythonenv.h: In static member function 'static void JPyErr::check()':src/native/python/include/pythonenv.h:65: error: 'PyObject' was not declared in this scopesrc/native/python/include/pythonenv.h:65: error: '__ex' was not declared in this scopesrc/native/python/include/pythonenv.h:65: error: 'PyErr_Occurred' was not declared in this scopesrc/native/python/include/pythonenv.h: At global scope:
整了半天才找到原因,原来是python 开发包没有安装
yum install python-devel-2.4.3-44.el5
搞定。
小注:在编译jpype时,还需要设定JAVA_HOME环境变量。
- python 三方包源码编译错误
- hadoop源码编译错误
- Android 编译源码 错误
- android 编译源码错误
- android源码编译错误
- android源码编译错误
- Android 源码编译错误
- Android 源码编译错误
- python 源码编译
- vs2010 编译 python 源码
- python 源码编译
- python编译错误总结
- 编译Android源码错误汇集
- android 编译源码 错误解决
- android源码编译错误总结
- android 源码编译常见错误
- 解决方案--gloox源码编译错误
- Android源码编译常见错误
- java.net.URL处理中文URL,导致java.io.FileNotFoundException的解决!
- java集合框架图
- opencv矩阵运算
- hdoj 1596(floyd)(c++过啦)
- 画十字参考代码
- python 三方包源码编译错误
- PHP开发配置-windows环境下zend studio + wamp + zend debugger
- Notional Principal Amount
- Oracle数据泵(EXPDP和IMPDP)的使用
- Linux内核的Makefile和kconfig解读
- 移动开发者应注意的2012年五趋势
- NHibernate 3.2.0 经验谈
- Scala学习笔记(一)简洁之道
- c/c++程序在内存中的分布