教程我参考的这篇文章:
https://note.f5.pm/go-33235.html
总结一下自己遇到的问题:
- 运行gn gen out/Default 时报错 /lib64/libc.so.6: version `GLIBC_2.18’ not found
去安装GLIBC_2.18,又报错 These critical programs are missing or too old: make,尽管我已经安装并更新了4.21版本的make。
原因及解决方案:找了好久没找到解决方案,个人猜测可能是make版本较高,GLIBC_2.18 configure文件没监测出。我重新下载了GLIBC_2.30进行编译(参照https://developer.aliyun.com/article/718698),成功编译安装成功,再次运行gn gen out/Default 及 ninja -C out/Default chrome 没再出现报错。