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