• «
  • 1
  • 2
  • »
  • Pages: 2/2     Go
主题 : 安装GCC-3.4.0时,配置出错 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 6655
精华: 0
发帖: 34
金钱: 285 两
威望: 241 点
综合积分: 68 分
注册时间: 2009-06-10
最后登录: 2013-07-24
10楼  发表于: 2009-07-22 16:54
模拟器安装搞不定,现把模拟器QEMU传上来(3M多,传不来,先不传了,有需要的跟贴,我再传),可是无法编译这个模拟器,请高手帮忙
cd /tmp
tar zxvf qemu-0.10.5.tar.gz
cd qemu-0.10.5
./configure --c=gcc-3.4            (此句话,不知道什么意思)当我执行这条语句后就会出现如下错误
ERROR:“gcc-3.4" either does not exist or does not work
所以我想后面的GCC-3.4应该是对应GCC交叉编译器,所以我就改成
./configure --c=arm-linux-gcc-4.3.2  (我安装的是ARM-LINUX-GCC-4.3.2)
可是又报错
bit/little test failed
Error: zlib check failed
Make sure to have the zlib libs and headers installed
请求帮助这个配置文件需要怎么配置,谢谢!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
11楼  发表于: 2009-07-22 17:08
编译qemu需要gcc-3.x(非交叉编译器), 确认你的redhat 9上有安装相应版本的gcc。如果没有,去网上找一个相应的rpm包安装
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
12楼  发表于: 2009-07-22 17:13
不过建议你不要用redhat 9做开发平台了,这个老古董早就该扔了,Fedora 9/Ubuntu 8.10或更新的系统对qemu的支持会比较好
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 6655
精华: 0
发帖: 34
金钱: 285 两
威望: 241 点
综合积分: 68 分
注册时间: 2009-06-10
最后登录: 2013-07-24
13楼  发表于: 2009-07-22 17:23
谢谢总版主的解答,原来是这个原因啊,那估计是没有了这个GCC-3.X了。
Fedora9/Ubuntu 8.10还没有了解过,回家下载一个试一下,也可以安装在vmware下的吧。
级别: 新手上路
UID: 6655
精华: 0
发帖: 34
金钱: 285 两
威望: 241 点
综合积分: 68 分
注册时间: 2009-06-10
最后登录: 2013-07-24
14楼  发表于: 2009-07-23 10:24
安装GCC-3.4.0时,配置出错

# usr/local/gcc-3.4.0-source/configure --prefix=/usr/local/gcc-3.4.0 --enable-threads=posix --disable-checking --enable--long-long --host=i386-redhat-linux --with-system-zlib --enable-languages=c,c++,java
回车后
/usr/local/gcc-3.4.0.-source/configure:line2332: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
难道又是我下载的文件有错,
真是不知道为什么啊,请版主再次出手,谢谢!(我想应该不是文件有错吧)
级别: 新手上路
UID: 6655
精华: 0
发帖: 34
金钱: 285 两
威望: 241 点
综合积分: 68 分
注册时间: 2009-06-10
最后登录: 2013-07-24
15楼  发表于: 2009-07-23 10:40
我知道什么原因了,我想应该是我的系统里还没有GCC,所以configure是不可用的,必须先下载一个GCC的RPM软件包,执行安装RPM后才能配置,还得找找这个软件包啊。如果我说的有错的地方,还望大家给予指点,谢谢!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
16楼  发表于: 2009-07-23 11:08
你最好还是从系统的软件管理器界面安装吧,gcc一般属于开发类软件
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 6655
精华: 0
发帖: 34
金钱: 285 两
威望: 241 点
综合积分: 68 分
注册时间: 2009-06-10
最后登录: 2013-07-24
17楼  发表于: 2009-07-23 11:09
我下载了一个gcc-3.4.3.22.1.src.rpm,然后安装,又报错了
warning:gcc-3.4.3-22.1.src.rpm: V3 DSA signature: NOKEY,key ID db42a60e
error: cannot create %sourcedir /usr/src/redhat/SOURCES
这次我就搞不定了,请求帮助。3Q!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
18楼  发表于: 2009-07-23 11:27
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 6655
精华: 0
发帖: 34
金钱: 285 两
威望: 241 点
综合积分: 68 分
注册时间: 2009-06-10
最后登录: 2013-07-24
19楼  发表于: 2009-07-23 11:32
我又找到原因了,是说签名校验不对,然后在安装时我又增加了--force -nodeps,
现还在找原因。
我把过程记录下来,也为了以后出现此问题时还有个过程可查询,版主见谅。
谢谢!
  • «
  • 1
  • 2
  • »
  • Pages: 2/2     Go