【问题标题】:How to build Python 2.6.8 with zlib on Ubuntu Server 12.04?如何在 Ubuntu Server 12.04 上使用 zlib 构建 Python 2.6.8?
【发布时间】:2013-03-03 15:00:20
【问题描述】:

据我所知,缺少 zlib 是 Python 2.6 的常见问题。

我已经安装了zlib1g-dev,我也尝试了this 解决方案 - 仍然没有成功。

我也试过./configure --with-libs=usr/include/zlib.h 并得到:

libpython2.6.a /usr/include/zlib.h -lpthread -ldl  -lutil   -lm  
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers

其他人遇到过这种情况吗?

【问题讨论】:

    标签: python compilation makefile zlib python-2.6


    【解决方案1】:

    要获得 zlib 支持,您需要在编译 python 时设置一些标志,如此处所述。 http://ubuntuforums.org/showthread.php?t=1759873&p=10830295#post10830295

    对于 ssl 支持,您需要应用此处讨论的补丁: http://ubuntuforums.org/showthread.php?t=1976837

    【讨论】:

      猜你喜欢
      • 2013-05-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-10
      • 2013-08-09
      • 1970-01-01
      • 2012-12-11
      相关资源
      最近更新 更多