系统相关
首页 > 系统相关> > arch-linux – Python.h:没有这样的文件或目录

arch-linux – Python.h:没有这样的文件或目录

作者:互联网

我正在尝试在Arch Linux下构建omniORB 4.1.6.当我输入make时,这里是消息:

../../../../../src/tool/omniidl/cxx/idlpython.cc:188:26: fatal error:  python3.3/Python.h: No such file or directory
#  include PYTHON_INCLUDE

我确定安装了python3和python2,我记得上次我在Linux Mint下做同样的事情我遇到了同样的问题.那个时候,我用这个命令解决了这个问题:

sudo apt-get install python-dev

但是,似乎Arch并没有将python-dev与python分开.我检查了我的/ usr并在/usr/include/python3.3m下找到了Python.h,那么我该怎么办呢?

解决方法:

正常运行

./configure

在运行make之前应该正确设置东西,但在今年秋天似乎并非如此.

Python 3.3.X将其头文件放在… / include / Python3.3m中,而2.7.x使用… / include / python2.7(没有任何后缀),也许omniORB不知道那个后缀米

您可以使用以下命令建立从python3.3m到python3.3的链接:

cd /usr/include
ln -s python3.3m python3.3

并重试构建过程(假设python3.3使用–prefix = / usr配置,根据需要调整cd).

标签:python,compiling,arch-linux
来源: https://codeday.me/bug/20190814/1657572.html