红帽 |如何编译 64 位 Python 2.6

发布于 2024-08-29 00:56:27 字数 187 浏览 7 评论 0原文

我正在尝试编译 64 位的 Python 2.6,我尝试了各种编译命令,但不确定这些命令是否正确

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

正确的语法是什么...?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

百合的盛世恋 2024-09-05 00:56:27

究竟是什么不起作用?您收到任何错误消息吗?

尝试简单编译而不先安装:

$ 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

另外,请确保已安装 make(GNU Make 或其他)。

你从哪里得到来源?如果您直接从存储库获取它,则源代码可能已损坏,或者您可能需要重新运行 autotool。

测试编译确实有效后,您可以:

$ 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

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文