前言:
编译文件 ntfs-3g_ntfsprogs-2021.8.22 时报缺少C编译器错误,所以需要安装gcc编译器。绿色字体标注即是错误提示。
[root@localhost ntfs-3g_ntfsprogs-2021.8.22]# ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/src/ntfs-3g_ntfsprogs-2021.8.22':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
安装方式:
1、yum在线安装,需要配置CentOS-Base.repo(本次未采用此方法)
2、配置本地yum源,进行安装(采用)
配置本地yum源直通车:
CentOS6 搭建本地光盘yum源_走向运维的老男孩的博客-CSDN博客
安装步骤:
第一步、查看本地gcc安装包
[root@localhost yum.repos.d]# yum list | grep gcc
libgcc.x86_64 4.4.7-17.el6 @anaconda-CentOS-201605220104.x86_64/6.8
compat-gcc-34.x86_64 3.4.6-19.el6 c6-media
compat-gcc-34-c++.x86_64 3.4.6-19.el6 c6-media
compat-gcc-34-g77.x86_64 3.4.6-19.el6 c6-media
gcc.x86_64 4.4.7-17.el6 c6-media
gcc-c++.x86_64 4.4.7-17.el6 c6-media
gcc-gfortran.x86_64 4.4.7-17.el6 c6-media
gcc-gnat.x86_64 4.4.7-17.el6 c6-media
gcc-java.x86_64 4.4.7-17.el6 c6-media
gcc-objc.x86_64 4.4.7-17.el6 c6-media
gcc-objc++.x86_64 4.4.7-17.el6 c6-media
libgcc.i686 4.4.7-17.el6 c6-media
说明:我们这里需要安装两个安装包: