LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1413|回复: 5

安装mysql-5.0.18.tar.gz时出现的问题,求解?

[复制链接]
发表于 2007-6-1 01:22:35 | 显示全部楼层 |阅读模式
解压后进行如下编译
[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了,一看都安装了啊!!!郁闷不知其解?????????求高手指点,谢谢.
发表于 2007-6-1 03:21:17 | 显示全部楼层
See `config.log' for more details.
看看里边说什么?
回复 支持 反对

使用道具 举报

发表于 2007-6-1 06:02:10 | 显示全部楼层
系統裡裝了 gcc 沒有?
回复 支持 反对

使用道具 举报

发表于 2007-6-1 06:11:26 | 显示全部楼层
checking for gcc... gcc
应该装了。。。。不然应该是 gcc not found  这类错误
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-1 11:20:22 | 显示全部楼层
从一处文档看了说出现这个问题有可能是因为
libc6-dev
这个类型的包没有安装,于是乎找了N长时间总算找到了安装上了结果还是不行,这下可真是郁闷了!!!
libc6-arm-cross-2.3.2.ds1-22.noarch.rpm                       02-Jun-2006 15:32   1.0M  
libc6-dev-arm-cross-2.3.2.ds1-22.noarch.rpm                   02-Jun-2006 15:32   1.8M  
libc6-pic-arm-cross-2.3.2.ds1-22.noarch.rpm                   02-Jun-2006 15:32   1.2M  
libc6-prof-arm-cross-2.3.2.ds1-22.noarch.rpm                  02-Jun-2006 15:32   1.4M  
libdaemon-dev-arm-cross-0.7-1.noarch.rpm
回复 支持 反对

使用道具 举报

发表于 2007-6-1 13:36:18 | 显示全部楼层
你是 ARM 的机器么?怎么找 arm 的东西了?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表