步骤我是参考以下链接:
https://blog.csdn.net/zz2633105/article/details/126076286
过程中的坑:
一,
Please make sure locale 'en_US.UTF-8' is available on your system
解决:
To ensure that the locale ‘en_US.UTF-8’ is available on your system, you can follow these steps:
Open a terminal or command prompt. Check if the ‘en_US.UTF-8’ locale
is already installed by using the commandlocale -a | grep
en_US.UTF-8
. If the locale is listed, it means it is already available
on your system. If the locale is not listed, you need to generate it.
You can do this by running the commandsudo locale-gen en_US.UTF-8
and
then sudo dpkg-reconfigure locales (for Debian/Ubuntu-based systems)
orsudo dpkg-reconfigure locale
(for Red Hat/Fedora/CentOS-based
systems). During the reconfiguration process, choose ‘en_US.UTF-8’
from the available options and set it as the default locale. Once the
locale is generated and set as the default, you can verify it again
using the command locale -a | grep en_US.UTF-8. It should now be
listed. By following these steps, you can make sure that the
‘en_US.UTF-8’ locale is available on your system.
二,
ERROR: The following required tools (as specified by HOSTTOOLS) appear to be unavailable in PATH, please install them in order to proceed:
chrpath diffstat pzstd
解决:
sudo apt-get install chrpath diffstat pzstd
三,
fatal: unable to access 'https://github.com/facebook/zstd.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
解决:
尝试通过像这样设置 git config 来强制 git 使用 HTTP 1.1:
git config --global http.version HTTP/1.1
然后再尝试git clone