1、解压并进入zlib目录tar xf zlib-1.2.11.tar.gz cd zlib-1.2.11 2、查看编辑参数[[email protected] zlib-1.2.11]#./configure --help 3、添加prefix路径 [[email protected] zlib-1.2.11]#./configure --prefix=/usr/local/zlib 3、查看执行结果 [[email protected] zlib-1.2.11]#echo $? 5、编译执行安装 [[email protected] zlib-1.2.11]#make [[email protected] zlib-1.2.11]#make check [[email protected] zlib-1.2.11]#make install 6、写入动态库的路径 [[email protected] zlib-1.2.11]#echo "/usr/local/zlib/lib/" >> /etc/ld.so.conf [[email protected] zlib-1.2.11]#ldconfig -v 完成!
原文地址:https://www.cnblogs.com/wangqiner/p/10642242.html
时间: 2024-10-12 15:25:36