diff --git a/%E7%BC%96%E8%AF%91%E9%97%AE%E9%A2%98%E8%AE%B0%E5%BD%95.md b/%E7%BC%96%E8%AF%91%E9%97%AE%E9%A2%98%E8%AE%B0%E5%BD%95.md new file mode 100644 index 0000000..2f71e26 --- /dev/null +++ b/%E7%BC%96%E8%AF%91%E9%97%AE%E9%A2%98%E8%AE%B0%E5%BD%95.md @@ -0,0 +1,52 @@ +1. make install_cmake时apt源存在无效源,导致make退出,解决办法:删除无效源即可 + +``` +sudo add-apt-repository --remove ppa:george-edison55/cmake-3.x + +sudo apt-get update +``` +报错log: + +``` + +Reading package lists... Done + +E: The repository 'http://ppa.launchpad.net/george-edison55/cmake-3.x/ubuntu focal Release' does not have a Release file. + +N: Updating from such a repository can't be done securely, and is therefore disabled by default. + +N: See apt-secure(8) manpage for repository creation and user configuration details. + +make[1]: *** [Makefile:2: all] Error 100 + +make[1]: Leaving directory '/home/payton/hunting/tools/cmake' + +make: *** [Makefile:17: install_cmake] Error 2 +``` + +2.github克隆仓库失败。主要是国内网络对GitHub不友好,直接使用全局代理即可下载。log如下: +``` +payton@SER:~/hunting$ make compile_llvm + +make -C tools/clang-tidy all + +make[1]: Entering directory '/home/payton/hunting/tools/clang-tidy' + +llvm-project not exist + +Cloning into 'llvm-project'... + +fatal: unable to access 'https://github.com/llvm/llvm-project.git/': GnuTLS recv error (-54): Error in the pull function. + +/bin/sh: line 3: cd: llvm-project/: No such file or directory + +/bin/sh: line 4: cd: build: No such file or directory + +make[1]: *** [Makefile:2: all] Error 1 + +make[1]: Leaving directory '/home/payton/hunting/tools/clang-tidy' + +make: *** [Makefile:20: compile_llvm] Error 2 + +``` +