/root/gcc-4.1.0/configure --prefix=/usr/local/new --enable-threads=posix --disable-checking --enable--long-long --host=i386-redhat-linux --with-system-zlib --enable-languages=c,c++,java
结果是:loading cache ./config.cache
checking host system type... i386-redhat-linux-gnu
checking target system type... i386-redhat-linux-gnu
checking build system type... i386-redhat-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
我没有gcc才要装gcc的吗
竟然这样。。。。。。。。
高手来吧----
没事就不要编译 GCC 了,装个别人编译好的二进制版本吧
请安装二进制的gcc。
但是哪里有二进制的gcc阿
我要做c语言的课外作业了,不知有没有别的方法在linux上运行c程序
QUOTE:原帖由 hooope 于 2008-4-18 00:05 发表

我要做c语言的课外作业了,不知有没有别的方法在linux上运行c程序
先學會 linux 基礎的 package 管理技巧吧,gcc binary package 都收錄於 linux distro 內,用 package manager 即可安裝上。
或者是請安裝 linux 時候把 development 相關項目選起來即可。
只是為何又跑出雞生蛋與蛋生雞這種老的討論呢 ?
--
QUOTE:原帖由 hooope 于 2008-4-18 00:05 发表

我要做c语言的课外作业了,不知有没有别的方法在linux上运行c程序
做 C 语言的作业一定要用到 Linux 吗?
二进制的 GCC 请用你的发行版的包管理软件安装。
QUOTE:原帖由 swordfish.cn 于 2008-4-18 07:59 发表

做 C 语言的作业一定要用到 Linux 吗?
二进制的 GCC 请用你的发行版的包管理软件安装。
大哥 ,别打击新人的积极性阿
apt 管理模式
apt-get install gcc
apt-get install build-essential
yum 没用过
把你的安装碟找出来,里面就有gcc
yum --list > /root/yum.txt
grep gcc /root/yum.txt
yum -y install gcc
QUOTE:原帖由 happyc84 于 2008-4-18 08:39 发表

大哥 ,别打击新人的积极性阿
apt 管理模式
apt-get install gcc
apt-get install build-essential
yum 没用过
呵呵,
也是 yum install 之类的
谢各位了,我在安装盘找了个gcc?c?.rpm的包装上后再用开始贴出的命令就行了
会员注册
会员登录
个人空间