blfs(systemv版本)学习笔记-wget的安装与配置

blfs wget项目地址:http://www.linuxfromscratch.org/blfs/view/8.3/basicnet/wget.html

推荐依赖:make-ca-0.8(必须安装,用于运行时校验秘钥)

1.用主机下载wget和make-ca包,并移动到/sources/blfs-sources,例如:

sudo mv '/home/renren/下载/make-ca-0.8.tar.gz' '/home/renren/下载/wget-1.19.5.tar.gz'  /mnt/lfs/sources/blfs-sources/

2.校验md5

md5sum  -c md5sums

3.解压wget包并进入包目录

tar -xvf wget-1.19..tar.gz

cd wget-1.19.

4.使用书中的说明编译安装

./configure --prefix=/usr      \
--sysconfdir=/etc \
--with-ssl=openssl &&
make make -j8 check make install

5.返回blfs-sources目录并删除包目录

cd $LFS/sources/blfs-sources

rm -rf wget-1.19.

6.解压make-ca包并进入包目录

tar -xvf make-ca-0.8.tar.gz

cd make-ca-0.8

7.参照书中说明编译安装

install -vdm755 /etc/ssl/local &&
wget http://www.cacert.org/certs/root.crt &&
wget http://www.cacert.org/certs/class3.crt &&
openssl x509 -in root.crt -text -fingerprint -setalias "CAcert Class 1 root" \
-addtrust serverAuth -addtrust emailProtection -addtrust codeSigning \
> /etc/ssl/local/CAcert_Class_1_root.pem &&
openssl x509 -in class3.crt -text -fingerprint -setalias "CAcert Class 3 root" \
-addtrust serverAuth -addtrust emailProtection -addtrust codeSigning \
> /etc/ssl/local/CAcert_Class_3_root.pem make install

8.返回blfs-sources目录并删除包目录

cd $LFS/sources/blfs-sources

rm -rf make-ca-0.8

9.更新证书命令

/usr/sbin/make-ca -g
上一篇:css强制html不换行 css强制英文单词断行 重拾丢失的


下一篇:win8和win7下解决php5.3和5.4、5.5等不能加载php_curl.dll的终极解决办法 收藏