1,下载 zlib
www.zlib.net
2,解压 zlib
#tar xjvf zlib-1.2.6.tar.bz2
3,配置 zlib (推荐 ARM 交叉编译工具 CodeSourcery GNU Toolchain for ARM Processors: 2009q1-203 version)
#CC=arm-none-linux-gnueabi-gcc ./configure -shared --prefix=/opt/arm-2009q1/arm-none-linux-gnueabi/libc/usr
4,编译 zlib
#make
5,安装 zlib
#make install