简体   繁体   English

在ubuntu 10.04上使用python 2.3

[英]using python 2.3 on ubuntu 10.04

i need to run some old python programs on a ubuntu 10.04 system. 我需要在ubuntu 10.04系统上运行一些旧的python程序。 it seems, that there are no python 2.3 packages for ubuntu 10.04 available. 看来,没有适用于ubuntu 10.04的python 2.3软件包。 so i got python 2.3 directly from python.org: http://www.python.org/download/releases/2.3/ 所以我直接从python.org获得了python 2.3: http ://www.python.org/download/releases/2.3/

but "make" python fails with a buffer overflow. 但是“make”python因缓冲区溢出而失败。

has anyone suggestions how to get python 2.3 to work on ubuntu 10.04? 有谁建议如何让python 2.3在ubuntu 10.04上工作?

This appears to be an old bug in Python 2.3. 这似乎是Python 2.3中的一个老错误。 From here: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/286334 从这里: https//bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/286334

The solution is to run configure with BASECFLAGS=-U_FORTIFY_SOURCE. 解决方案是使用BASECFLAGS = -U_FORTIFY_SOURCE运行configure。

./configure BASECFLAGS=-U_FORTIFY_SOURCE

Then run make as you usually would. 然后像往常一样运行make。

You could decompile your python compiled files back to source. 您可以将python编译的文件编译回源代码。 That way they will work in any python version up to 2.7+, probably unchanged. 这样他们就可以在任何高达2.7+的python版本中工作,可能没有改变。

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

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