简体   繁体   English

从Python 2.6.5到Debian 5,失败构建Deb包

[英]Building a Deb package from Python 2.6.5 FOr Debian 5, Failure

Good afternoon, 下午好,

I am building a .deb package on a Voyage6.5.0 (Debian 5 based system) for Python2.6.5 (because the latest python available for that system is 2.5.2-3) 我正在基于Python2.6.5的Voyage6.5.0(基于Debian 5的系统)上构建.deb软件包(因为该系统可用的最新python是2.5.2-3)

The steps to my build are shown below. 我的构建步骤如下所示。

apt-get build-dep python2.5
cd /root
mkdir -p ~/src/
cd ~/src/
wget http://www.python.org/ftp/python/2.6.5/Python-2.6.5.tar.bz2 --no-check-certificate
tar xjpvf Python-2.6.5.tar.bz2
mv Python-2.6.5 python-2.6.5    
      #needed because dpkg doesn't accept capital letters
cd python-2.6.5
dh_make -myemail@gmail.com -c gpl -f ../Python-2.6.5.tar.bz2
dpkg-depcheck -d ./configure
      #list under the packages needed heading is empty 
dpkg-buildpackage -b

The error I get is 我得到的错误是

Compiling /root/src/python-2.6.5/debian/python/usr/lib/python2.6/zipfile.py ...
make[1]: *** [libinstall] Error 1
make[1]: Leaving directory `/root/src/python-2.6.5'
make: *** [install] Error 2
dpkg-buildpackage: failure: debian/rules binary gave error exit status 2
a-gw:~/src/python-2.6.5#
a-gw:~/src/python-2.6.5# make[1]: *** [libinstall] Error 1
-bash: make[1]:: command not found
a-gw:~/src/python-2.6.5# make[1]: Leaving directory `/root/src/python-2.6.5'
> make: *** [install] Error 2
> dpkg-buildpackage: failure: debian/rules binary gave error exit status 2
>

Can anybody help explain what causes this error and how I can fix it? 有人可以帮忙解释一下导致此错误的原因以及如何解决该问题吗?

I am completely new to using dpkg, so please be as explanational as possible. 我对使用dpkg完全陌生,因此请尽可能多地进行说明。 Thank you, 谢谢,

Maybe this workaround can help you: http://bugs.python.org/issue1669349#msg31369 也许这种解决方法可以帮助您: http : //bugs.python.org/issue1669349#msg31369

In that report the build stopped at zipfile.py too. 在该报告中,构建也停止在zipfile.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM