注册

python36 setup.py bdist_rpm 无法安装

Irving 2021/03/11 1308 3 已解决

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:
【操作系统】:
【CPU】:
【问题描述】*:

[root@localhost dmPython]#
[root@localhost dmPython]# python36 setup.py bdist_rpm
running bdist_rpm
writing ‘build/bdist.linux-mips64el/rpm/SPECS/dmPython.spec’
running sdist
running egg_info
writing dmPython.egg-info/PKG-INFO
writing dependency_links to dmPython.egg-info/dependency_links.txt
writing top-level names to dmPython.egg-info/top_level.txt
reading manifest file ‘dmPython.egg-info/SOURCES.txt’
writing manifest file ‘dmPython.egg-info/SOURCES.txt’
running check
warning: check: missing required meta-data: url

warning: check: missing meta-data: either (author and author_email) or (maintainer and maintainer_email) must be supplied

creating dmPython-2.3
creating dmPython-2.3/dmPython.egg-info
copying files to dmPython-2.3…
copying Buffer.c -> dmPython-2.3
copying Connection.c -> dmPython-2.3
copying Cursor.c -> dmPython-2.3
copying Environment.c -> dmPython-2.3
copying Error.c -> dmPython-2.3
copying README.txt -> dmPython-2.3
copying exBfile.c -> dmPython-2.3
copying exLob.c -> dmPython-2.3
copying exObject.c -> dmPython-2.3
copying py_Dameng.c -> dmPython-2.3
copying row.c -> dmPython-2.3
copying setup.py -> dmPython-2.3
copying tObject.c -> dmPython-2.3
copying trc.c -> dmPython-2.3
copying vBfile.c -> dmPython-2.3
copying vCursor.c -> dmPython-2.3
copying vDateTime.c -> dmPython-2.3
copying vInterval.c -> dmPython-2.3
copying vLob.c -> dmPython-2.3
copying vNumber.c -> dmPython-2.3
copying vObject.c -> dmPython-2.3
copying vString.c -> dmPython-2.3
copying var.c -> dmPython-2.3
copying vlong.c -> dmPython-2.3
copying dmPython.egg-info/PKG-INFO -> dmPython-2.3/dmPython.egg-info
copying dmPython.egg-info/SOURCES.txt -> dmPython-2.3/dmPython.egg-info
copying dmPython.egg-info/dependency_links.txt -> dmPython-2.3/dmPython.egg-info
copying dmPython.egg-info/top_level.txt -> dmPython-2.3/dmPython.egg-info
Writing dmPython-2.3/setup.cfg
Creating tar archive
removing ‘dmPython-2.3’ (and everything under it)
copying dist/dmPython-2.3.tar.gz -> build/bdist.linux-mips64el/rpm/SOURCES
building RPMs
rpmbuild -ba --define __python python3 --define _topdir /root/dmPython/build/bdist.linux-mips64el/rpm --clean build/bdist.linux-mips64el/rpm/SPECS/dmPython.spec
执行(%prep): /bin/sh -e /var/tmp/rpm-tmp.dLcCAX

  • umask 022
  • cd /root/dmPython/build/bdist.linux-mips64el/rpm/BUILD
  • cd /root/dmPython/build/bdist.linux-mips64el/rpm/BUILD
  • rm -rf dmPython-2.3
  • /usr/bin/gzip -dc /root/dmPython/build/bdist.linux-mips64el/rpm/SOURCES/dmPython-2.3.tar.gz
  • /usr/bin/tar -xvvf -
    drwxr-xr-x root/root 0 2021-03-11 16:32 dmPython-2.3/
    -rw-r–r-- root/root 842 2021-03-11 16:32 dmPython-2.3/PKG-INFO
    -rw-r–r-- root/root 2977 2021-03-11 11:39 dmPython-2.3/Buffer.c
    -rw-r–r-- root/root 13277 2021-03-11 11:39 dmPython-2.3/exBfile.c
    -rw-r–r-- root/root 84928 2021-03-11 11:39 dmPython-2.3/Cursor.c
    -rw-r–r-- root/root 3480 2021-03-11 11:39 dmPython-2.3/Error.c
    -rw-r–r-- root/root 21806 2021-03-11 11:39 dmPython-2.3/py_Dameng.c
    -rw-r–r-- root/root 15956 2021-03-11 11:40 dmPython-2.3/vObject.c
    -rw-r–r-- root/root 3398 2021-03-11 11:39 dmPython-2.3/README.txt
    -rw-r–r-- root/root 44544 2021-03-11 11:39 dmPython-2.3/var.c
    -rw-r–r-- root/root 3052 2021-03-11 11:39 dmPython-2.3/trc.c
    -rw-r–r-- root/root 6759 2021-03-11 11:39 dmPython-2.3/vCursor.c
    -rw-r–r-- root/root 19888 2021-03-11 11:39 dmPython-2.3/vDateTime.c
    -rw-r–r-- root/root 19598 2021-03-11 11:40 dmPython-2.3/vString.c
    -rw-r–r-- root/root 59 2021-03-11 16:32 dmPython-2.3/setup.cfg
    -rw-r–r-- root/root 17531 2021-03-11 11:39 dmPython-2.3/exLob.c
    -rw-r–r-- root/root 23313 2021-03-11 11:39 dmPython-2.3/tObject.c
    -rw-r–r-- root/root 10478 2021-03-11 11:39 dmPython-2.3/vInterval.c
    -rw-r–r-- root/root 32685 2021-03-11 11:39 dmPython-2.3/vNumber.c
    -rw-r–r-- root/root 10777 2021-03-11 11:39 dmPython-2.3/vlong.c
    -rw-r–r-- root/root 12788 2021-03-11 11:39 dmPython-2.3/Environment.c
    -rw-r–r-- root/root 57107 2021-03-11 11:39 dmPython-2.3/exObject.c
    -rw-r–r-- root/root 11664 2021-03-11 11:39 dmPython-2.3/vLob.c
    -rw-r–r-- root/root 11014 2021-03-11 11:39 dmPython-2.3/vBfile.c
    -rw-r–r-- root/root 10248 2021-03-11 15:43 dmPython-2.3/setup.py
    -rw-r–r-- root/root 15823 2021-03-11 11:39 dmPython-2.3/row.c
    -rw-r–r-- root/root 63127 2021-03-11 11:39 dmPython-2.3/Connection.c
    drwxr-xr-x root/root 0 2021-03-11 16:32 dmPython-2.3/dmPython.egg-info/
    -rw-r–r-- root/root 842 2021-03-11 16:32 dmPython-2.3/dmPython.egg-info/PKG-INFO
    -rw-r–r-- root/root 357 2021-03-11 16:32 dmPython-2.3/dmPython.egg-info/SOURCES.txt
    -rw-r–r-- root/root 1 2021-03-11 16:32 dmPython-2.3/dmPython.egg-info/dependency_links.txt
    -rw-r–r-- root/root 9 2021-03-11 16:32 dmPython-2.3/dmPython.egg-info/top_level.txt
  • STATUS=0
  • ‘[’ 0 -ne 0 ‘]’
  • cd dmPython-2.3
  • /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
  • exit 0
    执行(%build): /bin/sh -e /var/tmp/rpm-tmp.YItLnR
  • umask 022
  • cd /root/dmPython/build/bdist.linux-mips64el/rpm/BUILD
  • cd dmPython-2.3
  • env ‘CFLAGS=-mips64r2 -O2 -g’ python3 setup.py build
    running build
    running build_ext
    building ‘dmPython’ extension
    creating build
    creating build/temp.linux-mips64el-3.3
    gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -mips64r2 -O2 -g -D_GNU_SOURCE -fPIC -fwrapv -mips64r2 -O2 -g -fPIC -DDM64 -I/dm7/dmdbms/include -I/usr/include/python3.3m -c py_Dameng.c -o build/temp.linux-mips64el-3.3/py_Dameng.o -DBUILD_VERSION=2.3
    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.YItLnR (%build) 退出状态不好

RPM 构建错误:
/var/tmp/rpm-tmp.YItLnR (%build) 退出状态不好
error: command ‘rpmbuild’ failed with exit status 1
[root@localhost dmPython]#

回答 0
暂无回答
扫一扫
联系客服