如何编译Python 1.0 [英] How to compile Python 1.0

查看:66
本文介绍了如何编译Python 1.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某种反常的原因,我想尝试使用Python 1.0.如何进行编译,或者更确切地说,将使用当前编译器进行干净编译的早期版本是什么?

For some perverse reason, I want to try Python 1.0.. How would I go about compiling it, or rather, what is the earlier version that will compile cleanly with current compilers?

我正在使用Mac OS X 10.5,尽管因为它只出于好奇(关于语言的变化),所以也可以在Linux虚拟机中进行编译..

I'm using Mac OS X 10.5, although since it's for nothing more than curiosity (about how the language has changed), compiling in a Linux virtual machine is possible too..

推荐答案

Python 1.0.1在Ubuntu 8.10下使用GCC 4.3.2可以完美地编译.它也应该在Leopard下编译.

Python 1.0.1 compiles perfectly under Ubuntu 8.10 using GCC 4.3.2. It should compile under Leopard, too.

此处下载源文件并进行编译通常的方式:

Download the source here, and compile the usual way:

./configure
make

更新:我对其进行了测试,它也可以在Leopard下编译.

UPDATE: I tested it, and it compiles under Leopard, too.

这篇关于如何编译Python 1.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆