LinuxSir.cn,穿越时空的Linuxsir!

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

求助:no acceptable cc found in $PATH

[复制链接]
发表于 2006-12-30 23:53:27 | 显示全部楼层 |阅读模式
我今天刚装suse,但我在安装wine时出现下面信息.

# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

那样是不是要安装gcc编译器?
但出错如下.

# mkdir objdir
# cd objdir
#../gcc-4.1.0/configure
creating 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
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

我很菜,请高手帮忙.....
发表于 2006-12-31 02:28:07 | 显示全部楼层
先試:
yast -i gcc
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-31 09:14:58 | 显示全部楼层
麻烦能不能再详细一点啊...
我没用过YAST,怎么用啊...在哪个目录里YAST?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-31 10:16:29 | 显示全部楼层
大虾再帮忙下啊......我照你说的做了...YAST -I GCC
我再安装WINE,结果如下:
# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking for cpp... cpp
checking for the directory containing the Wine tools... $(TOPOBJDIR)
checking how to run the C preprocessor... gcc -E
checking for X... no
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for :... no
checking for flex... no
checking for lex... no
configure: error: no suitable lex found. Please install the 'flex' package.

问大虾还缺少什么啊?
回复 支持 反对

使用道具 举报

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

本版积分规则

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