CentOS 7安装chacha20加密,遇到C preprocessor “/lib/cpp” fails sanity check解决方法

根据YouTube UP主 沙漠狐(地址点我)脚本在CentOS7上安装chacha20,遇到C preprocessor “/lib/cpp” fails sanity check。原脚本如下(略有修改):

yum install build-essential make
wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
tar xf LATEST.tar.gz && cd libsodium-stable
./configure && make -j4 && make install
ldconfig

遇到报错C preprocessor “/lib/cpp” fails sanity check。解决方法,运行如下脚本:

yum -y install glibc-kernheaders

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注