在新克隆的存储库中运行./bootstrap
时(https://github.com/coreutils/coreutils),似乎找不到它想要或不信任的某些文件https://translationproject.org.
./bootstrap: Bootstrapping from checked-out coreutils sources...
./bootstrap: consider installing git-merge-changelog from gnulib
./bootstrap: getting gnulib files...
Submodule 'gnulib' (git://git.sv.gnu.org/gnulib.git) registered for path 'gnulib'
Cloning into '/home/vagrant/coreutils/gnulib'...
Submodule path 'gnulib': checked out '0ac98783691bbf8212537ebe18ddb68feb22a760'
./bootstrap: getting translations into po/.reference for coreutils...
ERROR: The certificate of 'translationproject.org' is not trusted.
ERROR: The certificate of 'translationproject.org' has expired.
那么,我要做什么才能使证书受到我的系统的信任,并使其成功编译呢?
首先,要获得证书:
wget --mirror --level=1 -nd -v -A.po -P 'po/.reference' https://translationproject.org/latest/coreutils/
然后使证书可信:
a( 要求openssl信任:
openssl s_client -connect translationproject.org:443 -CApath /etc/ssl/certs -showcerts </dev/null 2>/dev/null
b( 要求cert工具信任
certtool --verbose --verify --infile=/tmp/translationproject.org.certs
最后,您可以成功地使用./bootstrap
。