首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在哪里可以找到运行命令的./configure with-zlib=/usr/include in python 3.2

在哪里可以找到运行命令的./configure with-zlib=/usr/include in python 3.2
EN

Stack Overflow用户
提问于 2011-10-11 19:38:40
回答 1查看 3.4K关注 0票数 2

基于这个zlib-install-on python,我需要运行以下命令

代码语言:javascript
复制
./configure –with-zlib=/usr/include

问:在哪里可以找到python3.2中的配置?

user@ubuntu:~$ ls /usr/include/z* /usr/include/zconf.h .h /usr/include/zlibdefs.h /usr/include/zlib.h

代码语言:javascript
复制
user@ubuntu:~/Downloads/Python-3.2$ ./configure –with-zlib=/usr/include
configure: error: invalid variable name: `–with-zlib'
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-10-11 20:00:31

您需要在python目录中运行./configure。这是你打开源tarball的地方。

代码语言:javascript
复制
cd /path/to/python3.2
./configure --with-zlib=/usr/include

注意,--with-zlib参数的前缀是两个破折号,而不是一个。

编辑:来自./configure -h

-with- PACKAGE =ARG使用包ARG=yes

在尝试了同样会产生错误的./configure --with-zlib=yes之后,我认为PACKAGE可能是一个非标准的包。但是,要解决您的问题(确保python有zlib),您应该能够执行./configure; make; sudo make install。您将看到您有zlib.h,因此应该重新安装python并支持zlib。我会看看是否还能找到关于--with-PACKAGE选项的更多信息,但是这应该可以解决根本问题。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7731545

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档