[Root @ server mysql-5.0.56] #. /configure -- prefix =/usr/local/mysql -- with-charset = gbk -- with-extra-charset = all -- enable-thread-safe-client -- enable-local-infile -- with-low-memory
Checking build system type... i686-pc-linux-gnu
Checking host system type... i686-pc-linux-gnu
Checking target system type... i686-pc-linux-gnu
Checking for a BSD-compatible install.../usr/bin/install-c
Checking whether build environment is sane... yes
Checking for gawk... gawk
Checking whether make sets $ (MAKE)... yes
Checking "character sets"... default: gbk, collation: gbk_chinese_ci; compiled in: gbk latin1 utf8
Checking whether to compile national Unicode collations... yes
Checking whether build environment is sane... yes
Checking whether make sets $ (MAKE)... (cached) yes
Checking for gawk... (cached) gawk
Checking for gcc... no
Checking for cc... no
Checking for cc... no
Checking for cl... no
Configure: error: no acceptable C compiler found in $ PATH
See 'config. log' for more details.
The above problem was encountered during mysql installation today. Solution: Install the GCC software suite.
[Root @ server mysql-5.0.56] # yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Base: centos.ustc.edu.cn
* Extras: centos.ustc.edu.cn
* Updates: centos.ustc.edu.cn
Addons | 951 B 00: 00
Addons/primary | 202 B: 00
Base | 1.1 kB
Base/primary | 961 kB
Base 2705/2705
Extras | 2.1 kB: 00
Extras/primary_db | 171 kB: 00
Updates | 1.9 kB: 00
........................................ ........................................ ..........
........................................ .........................................
........................................ ........................
Run the preceding command again to install mysql:
[Root @ server mysql-5.0.56] #. /configure -- prefix =/usr/local/mysql -- with-charset = gbk -- with-extra-charset = all -- enable-thread-safe-client -- enable-local-infile -- with-low-memory
Checking build system type... i686-redhat-linux-gnu
Checking host system type... i686-redhat-linux-gnu
Checking target system type... i686-redhat-linux-gnu
Checking for a BSD-compatible install.../usr/bin/install-c
Checking whether build environment is sane... yes
Checking for gawk... gawk
Checking whether make sets $ (MAKE)... yes
Checking "character sets"... default: gbk, collation: gbk_chinese_ci; compiled in: gbk latin1 utf8
Checking whether to compile national Unicode collations... yes
Checking whether build environment is sane... yes
Checking whether make sets $ (MAKE)... (cached) yes
Checking for gawk... (cached) gawk
........................................ ........................................ .............................
........................................ ........................................ ..............
........................................ ......................................
This article is from the "second dwelling" blog