|
|
解压后进行如下编译
[root@zjnx mysql-5.0.18]# ./configure -prefix=/opt/mysql --with-charset=gb2312 --with-extra-charset=all --with-pic --with-zlib-dir=/opt/mysql/zlib --with-unix-socket-path=/opt/mysql/var/mysql.sock
过不到5秒后出现如下信息:
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
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: gb2312, collation: gb2312_chinese_ci; compiled in: gb2312 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... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
[root@zjnx mysql-5.0.18]# ./configure -prefix=/opt/mysql --with-charset=gb2312 --w
ith-extra-charset=all --with-unix-socket-path=/opt/mysql/var/mysql.sock
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
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: gb2312, collation: gb2312_chinese_ci; compiled in: gb2312 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... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
[root@zjnx mysql-5.0.18]# ./configure -prefix=/opt/mysql --with-charset=gb2312 --w
ith-extra-charset=all --with-pic --with-zlib-dir=/opt/mysql/zlib --with-unix-socket-path=/opt/mysql/var/mysql.sock
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
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: gb2312, collation: gb2312_chinese_ci; compiled in: gb2312 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... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
就自动退出编译了,原以为忘记安装GCC了,一看都安装了啊!!!郁闷不知其解?????????求高手指点,谢谢. |
|