基于这个zlib-install-on python,我需要运行以下命令
./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
user@ubuntu:~/Downloads/Python-3.2$ ./configure –with-zlib=/usr/include
configure: error: invalid variable name: `–with-zlib'发布于 2011-10-11 20:00:31
您需要在python目录中运行./configure。这是你打开源tarball的地方。
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选项的更多信息,但是这应该可以解决根本问题。
https://stackoverflow.com/questions/7731545
复制相似问题