1. ホーム
  2. gcc

configure: エラー: $PATH に受け入れ可能な C コンパイラがありません。

2022-02-10 18:16:02

CentOS 6.5 で glibc を glibc-2.14 にアップグレードする際、configure を実行すると以下のエラーが表示されます。

# . /configure 
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/opt/glibc-2.14':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

回避策 GCCをインストールする

# yum install gcc
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * extras: mirrors.opencas.cn
 * updates: mirrors.opencas.co.uk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-16.el6 will be installed
--> Processing Dependency: libgomp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: cpp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: libgcc >= 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-16.el6.x86_64
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-16.el6 will be installed
---> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-16.el6.x86_64
---> Package libgcc.x86_64 0:4.4.7-4.el6 will be updated
---> Package libgcc.x86_64 0:4.4.7-16.el6 will be an update
---> Package libgomp.x86_64 0:4.4.7-4.el6 will be updated
---> Package libgomp.x86_64 0:4.4.7-16.el6 will be an update
---> Running transaction check
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================== =============================================================
 Package Arch Version Repository Size
================================================================================================================================== =============================================================
Installing:
 gcc x86_64 4.4.7-16.el6 base 10 M
Installing for dependencies:
 cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k
 cpp x86_64 4.4.7-16.el6 base 3.7 M
 mpfr x86_64 2.4.1-6.el6 base 157 k
 ppl x86_64                    
 libgomp x86_64 4.4.7-16.el6 base 134 k

Transaction Summary
================================================================================================================================== =============================================================
Install 5 Package(s)
Upgrade 2 Package(s)

Total download size: 16 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm | 93 kB 00:00     
(2/7): cpp-4.4.7-16.el6.x86_64.rpm | 3.7 MB 00:00     
(3/7): gcc-4.4.7-16.el6.x86_64.rpm | 10 MB 00:02     
(4/7): libgcc-4.4.7-16.el6.x86_64.rpm | 103 kB 00:00     
(5/7): libgomp-4.4.7-16.el6.x86_64.rpm | 134 kB 00:00     
(6/7): mpfr-2.4.1-6.el6.x86_64.rpm | 157 kB 00:00     
(7/7): ppl-0.10.2-11.el6.x86_64.rpm | 1.3 MB 00:00     
---------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------
Total 5.3 MB/s | 16 MB 00:02     
Running rpm_check_debug
Running Transaction Test
Running Transaction Test Succeeded
Running Transaction
  Updating : libgcc-4.4.7-16.el6.x86_64 1/9 
/sbin/ldconfig: /usr/lib/libsigar-ppc-aix-5.so is not an ELF file - it starts with the wrong magic number.

/sbin/ldconfig: /usr/lib/libsigar-ppc64-aix-5.so is not an ELF file - it starts with the wrong magic number.

  Installing : ppl-0.10.2-11.el6.x86_64 2/9 
/sbin/ldconfig: /usr/lib/libsigar-ppc-aix-5.so is not an ELF file - it starts with the wrong magic number.

/sbin/ldconfig: /usr/lib/libsigar-ppc64-aix-5.so is not an ELF file - it starts with the wrong magic number.

  Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 3/9 
/sbin/ldconfig: /usr/lib/libsigar-ppc-aix-5.so is not an ELF file - it starts with the wrong magic number.

/sbin/ldconfig: /usr/lib/libsigar-ppc64-aix-5.so is not an ELF file - it starts with the wrong magic number.

  Installing : mpfr-2.4.1-6.el6.x86_64 4/9 
/sbin/ldconfig: /usr/lib/libsigar-ppc-aix-5