Configure and compile Python with Zlib
来源:互联网 发布:网络拓扑软件 编辑:程序博客网 时间:2024/05/16 10:25
I just spent an hour trying to figure this out, AGAIN! To compile Zlib support into your Python interpreter, do this:
1. Install the Zlib-dev package for your distribution. (you probably have zlib already, but not the dev package)
On Ubuntu it’s called ‘zlib1g-dev’, on others it might just be: zlib-dev or zlib-devel. Do a search on your distro package lists to find it.
You should end up with a ‘zlib.h’ file in your system. In mine, Ubuntu, I have /usr/include/zlib.h
2. Get your python sources to compile and run the configure script like so:
./configure –with-zlib=/usr/include
See there that I included the ‘/usr/include’ directory to find zlib.h in? After the make && make install it worked great!
Keep in mind your mileage may vary, but this might help I hope. More importantly, now I can remember how I did this!
- Configure and compile Python with Zlib
- opensource codes configure and compile with toolchain
- libvorbis configure and compile
- fontconfig configure compile and install
- compile vim with python
- Cross Compile zlib as static and dynamic library
- Cross Compile zlib as static and dynamic library
- python source compile and upgrade
- Android SDK Add-on Configure, Compile and Release
- Android SDK Add-on Configure, Compile and Release
- Android SDK Add-on Configure, Compile and Release
- Stellarium:Compile with MSVC2012 and Qt5 (OpenGL)
- caffe and c++ compile with g++
- Cross Compile zlib
- Configure Zend Debugger with Apache and PHP5
- Install and configure MySQL 5 with MacPorts
- Configure with Build, Host and Target
- Configure with --host, --target and --build options
- 使用RLibrary加载DLL
- java操作excel文件()
- loongson & MySQL 如何处理 /etc/lsb-base-logging.sh: line 72: RUNLEVEL: unbound variable
- Nehe OpenGL AppWizards with vs 2008
- ORACLE SQL性能优化系列(十)
- Configure and compile Python with Zlib
- 参禅
- SQL查询连续号码段
- SQL SERVER 2000 导入导出数据
- 关于网络文件系统NFS
- Moblin
- 获取成员函数的指针
- Java反射学习
- 一、狼的十大处世哲学