简体   繁体   English

红帽| 如何为64位编译Python 2.6

[英]Redhat | How to compile Python 2.6 for 64bit

I'm trying to compile Python 2.6 for 64bit, I tried various compile commands but not sure whether those are correct 我正在尝试将Python 2.6编译为64位,我尝试了各种编译命令,但不确定这些命令是否正确

./configure --with-universal-archs=32-bit --prefix="$HOME/python"
make
make install 

What is the correct syntax ... ? 正确的语法是什么?

What exactly doesn't work? 到底什么不起作用? Do you get any error message? 您收到任何错误消息吗?

Try simple compilation without installing first: 尝试简单编译而不先安装:

$ cd path/to/python/source
$ ./configure
$ make all
... wait for some time ...
$ make test  # this runs python's test suite, you can usually skip this
$ ./python   # note the ./ runs the just installed python instead of system's python
$ # note: do not run make install yet, or you will override system's python, see below

also, make sure you have make (GNU Make or otherwise) installed. 另外,请确保已安装make(GNU Make或其他方式)。

Where did you get the source? 您从哪里获得资源? If you're getting it directly from the repository, there is a chance that the source is broken or you may need to re-run autotool. 如果直接从存储库中获取它,则可能是源已损坏,或者您可能需要重新运行自动工具。

After testing that the compilation actually works, then you can: 在测试编译实际上可以工作之后,您可以:

$ cd path/to/python/source/
$ ./configure --prefix=/where/you/want/to/install/it
$ make all
... wait for some time ...
$ make test  # this runs python's test suite, you can usually skip this
$ make install

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

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