configure: error: no acceptable C compiler found in $PATH
安装pg12, ./configure --prefix=/app/postgres/12时报错:checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking which template to use... linux
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for gcc... no
checking for cc... no
configure: error: in `/tmp/postgresql-12.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details安装gcc
# yum install gcc
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirrors.aliyun.com
* updates: mirror.bit.edu.cn
base | 3.6 kB00:00:00
extras | 2.9 kB00:00:00
updates | 2.9 kB00:00:00
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-39.el7 will be installed
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-39.el7.x86_64
--> Running transaction check
---> Package glibc-devel.x86_64 0:2.17-292.el7 will be installed
--> Processing Dependency: glibc-headers = 2.17-292.el7 for package: glibc-devel-2.17-292.el7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-292.el7.x86_64
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.17-292.el7 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-292.el7.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-292.el7.x86_64
--> Running transaction check
---> Package kernel-headers.x86_64 0:3.10.0-1062.18.1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
gcc x86_64 4.8.5-39.el7 base 16 M
Installing for dependencies:
glibc-devel x86_64 2.17-292.el7 base 1.1 M
glibc-headers x86_64 2.17-292.el7 base 687 k
kernel-headers x86_64 3.10.0-1062.18.1.el7 updates 8.8 M
Transaction Summary
=============================================================================================================================================================
Install1 Package (+3 Dependent packages)
Total download size: 27 M
Installed size: 44 M
Is this ok : y
Downloading packages:
(1/4): glibc-devel-2.17-292.el7.x86_64.rpm | 1.1 MB00:00:00
(2/4): glibc-headers-2.17-292.el7.x86_64.rpm | 687 kB00:00:00
(3/4): kernel-headers-3.10.0-1062.18.1.el7.x86_64.rpm | 8.8 MB00:00:01
(4/4): gcc-4.8.5-39.el7.x86_64.rpm |16 MB00:00:03
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 7.6 MB/s |27 MB00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : kernel-headers-3.10.0-1062.18.1.el7.x86_64 1/4
Installing : glibc-headers-2.17-292.el7.x86_64 2/4
Installing : glibc-devel-2.17-292.el7.x86_64 3/4
Installing : gcc-4.8.5-39.el7.x86_64 4/4
Verifying: glibc-devel-2.17-292.el7.x86_64 1/4
Verifying: gcc-4.8.5-39.el7.x86_64 2/4
Verifying: glibc-headers-2.17-292.el7.x86_64 3/4
Verifying: kernel-headers-3.10.0-1062.18.1.el7.x86_64 4/4
Installed:
gcc.x86_64 0:4.8.5-39.el7
Dependency Installed:
glibc-devel.x86_64 0:2.17-292.el7 glibc-headers.x86_64 0:2.17-292.el7 kernel-headers.x86_64 0:3.10.0-1062.18.1.el7重新开始编译安装。
页:
[1]