为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:1-2-38-21.07.09-143359-10018-ENT
【操作系统】:Red Hat Enterprise Linux Server release 7.6
【CPU】:x86
【问题描述】*:
安装DM安装目录dmPython里面 README.txt进行rpm包制作,过程中报错
报错信息:
py_Dameng.c:3:23: fatal error: py_Dameng.h: No such file or directory
#include "py_Dameng.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
错误:/var/tmp/rpm-tmp.YXj0ui (%build) 退出状态不好
RPM 构建错误:
/var/tmp/rpm-tmp.YXj0ui (%build) 退出状态不好
error: command 'rpmbuild' failed with exit status 1
尝试方法:已经用yum install -y python* 安装了所有python需要的依赖包
1.检查一下gcc相关包有没有安装
2.需要安装pytho-dev 包
请尝试下载最新的版本,然后参考https://eco.dameng.com/docs/zh-cn/start/python-development.html做配置