已经安装rubygems源码配置并编译python with zlib

编译 Zlib support into your Python interpreter的方法:

 

1. 安装Zlib-dev包 for your distribution. (你可能已经装了zlib,但没有 dev package)

在Ubuntu上叫zlib1g-dev,在其他linux上可能叫: zlib-dev 或 zlib-devel. 搜索系统的发行版的软件包列表来找到它,You should end up with a ‘zlib.h’ file in your system。

在我的Ubuntu系统上,它在 /usr/include/zlib.h

 

2. 使用你的python源码来编译,运行如下的脚本命令:

./configure –with-zlib=/usr/include

 

这里可以看到我用‘/usr/include’目录来查找zlib.h在哪里。在 make && make install 之后,它就起作用了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值