开发者

Redhat | How to compile Python 2.6 for 64bit

开发者 https://www.devze.com 2022-12-27 01:15 出处:网络
开发者_如何学运维I\'m trying to compile Python 2.6 for 64bit, I tried various compile commands but not sure whether those are correct
开发者_如何学运维

I'm trying to compile Python 2.6 for 64bit, I tried various compile commands but not sure whether those are correct

./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.

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
0

精彩评论

暂无评论...
验证码 换一张
取 消