preface
When installing PgSQL on linux
, execute /Configure -- prefix =/usr/local/PgSQL
error, the same as the following:
[root@instance-0qymp8uo postgresql-14.1]# ./configure --prefix=/usr/local/pgsql
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 `/root/postgresql-14.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
The reason for the error here is that we can’t find a suitable C compiler. We need to update GCC
./Configure
is used to detect the target characteristics of your installation platform. This step is used to generate makefile
to prepare for the next compilation. – prefix =
is the specified software installation directory. You can set the configuration files of some software by specifying the – sys config =
parameter. Some software can also add parameters such as – with
, – enable
, – without
, – disable
to control compilation. You can allow /Configure – help
View detailed help instructions.
Solution:
Centos
yum install gcc
Ubuntu
apt-get install gcc
Similar Posts:
- [How to Solve] gcc-4.7.2 cannot compute suffix of object fil…
- [Solved] Linux Error: configure: error: C compiler cannot create executables
- Configure: error: no acceptable C compiler found in $PATH [How to Solve]
- About configure error APR not found. And exports. C: error_ hack_ apu_ Solution to the problem of redefining version ‘
- [Solved] PHP Fatal error: Class ‘mysqli’ not found in xxx
- Linux Install Error: pkg-config not found [How to Solve]
- Python3 ImportError: No module named _ssl [How to Solve]
- Make Command ERROR: “make:*** No targets specified and no makefile found.Stop.” [Three Method to Solve]
- Failed to create symbolic link ‘/usr/bin/utserver’: File exists with Error: Cannot find…
- [Solved] configure: error: C++ preprocessor “/lib/cpp” fails sanity check