LinuxSir.cn,穿越时空的Linuxsir!

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

Suse怎么安装不了GCC??

[复制链接]
发表于 2007-4-28 18:24:50 | 显示全部楼层 |阅读模式
Suse:~/gcc-3.4.1 # ./configure --prefix=/mnt/gcc/
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2332: cc: command not found
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.


似乎是找不到CC,难道装GCC还要先装CC吗?郁闷
发表于 2007-4-28 18:31:44 | 显示全部楼层
用yast?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-28 18:33:02 | 显示全部楼层
YAST可以?试试...
还不知道怎么操作..
回复 支持 反对

使用道具 举报

发表于 2007-4-28 18:36:10 | 显示全部楼层
打开一个终端,
$su
password:
#yast2
有个软件包管理吧,把源添加了,
网络慢的把dvd添加到源
搜gcc,安装
回复 支持 反对

使用道具 举报

发表于 2007-4-28 20:39:36 | 显示全部楼层
Post by wingjing
Suse:~/gcc-3.4.1 # ./configure --prefix=/mnt/gcc/
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2332: cc: command not found
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.


似乎是找不到CC,难道装GCC还要先装CC吗?郁闷

既然是编译,难道不应该吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-29 16:15:14 | 显示全部楼层
通过YAST解决
回复 支持 反对

使用道具 举报

发表于 2007-4-29 17:06:45 | 显示全部楼层
前两天看LFS文档,说的是装gcc要用cc来编译吧
回复 支持 反对

使用道具 举报

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

本版积分规则

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