using python 2.3 on ubuntu 10.04

拈花ヽ惹草 提交于 2019-12-10 15:09:54

问题


i need to run some old python programs on a ubuntu 10.04 system. it seems, that there are no python 2.3 packages for ubuntu 10.04 available. so i got python 2.3 directly from python.org: http://www.python.org/download/releases/2.3/

but "make" python fails with a buffer overflow.

has anyone suggestions how to get python 2.3 to work on ubuntu 10.04?


回答1:


This appears to be an old bug in Python 2.3. From here: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/286334

The solution is to run configure with BASECFLAGS=-U_FORTIFY_SOURCE.

./configure BASECFLAGS=-U_FORTIFY_SOURCE

Then run make as you usually would.




回答2:


You could decompile your python compiled files back to source. That way they will work in any python version up to 2.7+, probably unchanged.



来源:https://stackoverflow.com/questions/4934925/using-python-2-3-on-ubuntu-10-04

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!