Based on this zlib-install-on-python, I need to run the following command
./configure –with-zlib=/usr/include
Question: Where can I find the configure in python 3.2?
user@ubuntu:~$ ls /usr/include/z* /usr/include/zconf.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'
You’ll need to run
./configurein your python install directory. This is wherever you unpacked the source tarball.Notice that the
--with-zlibargument is prefixed with two dashes, not one.EDIT:
From
./configure -h,After trying
./configure --with-zlib=yes, which also produces the error, I thinkPACKAGEmight be a non-standard package. However, to solve your problem (making sure python has zlib), you should just be able to do./configure; make; sudo make install. You show that you havezlib.h, so this should reinstall python with support for zlib. I’ll see if I can find anymore info on the--with-PACKAGEoption, but this should solve the root issue.