gcc -static 在centos stream8 和centos stream9中运行报错的解决办法-CSDN博客

阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6

gcc -static 在centos stream8 和centos stream9中运行报错的解决办法

/usr/bin/ld: cannot find -lc

我们下载glibc-static

选择x86_64的。

还有一个是libxcrypt-static依旧在这个网站里搜。

rpm -ivh glibc-static-2.28-239.el8.x86_64.rpm libxcrypt-static-4.1.1-6.el8.x86_64.rpm

两个文件同时写上 

阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6
标签: centos

“gcc -static 在centos stream8 和centos stream9中运行报错的解决办法-CSDN博客” 的相关文章