LinuxSir.cn,穿越时空的Linuxsir!

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

安装GCC-3.4.1在MAKE的时候报错?

[复制链接]
发表于 2004-8-18 19:57:59 | 显示全部楼层 |阅读模式
make: *** No targets specified and no makefile found.  Stop.
make的时候报这种错误,请问是为什么呀?
发表于 2004-8-18 22:16:28 | 显示全部楼层
没有Makefile,configure过没有?
 楼主| 发表于 2004-8-18 23:18:53 | 显示全部楼层
configure了不过好像有点错误,我看不太明白。我贴出来麻烦大家帮我看一下。

.[root@linux-php gcc-3.4.1]# ./configure --prefix=/usr/local/gcc-3.4.1 --enable-t
hreads=posix --disable-checking --enable--long-long --host=i386-redhat-linux --w
ith-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
*** This configuration is not supported in the following subdirectories:
     target-libf2c target-libobjc
    (Any other directories should still work fine.)
./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 compilerd.
发表于 2004-8-19 13:54:11 | 显示全部楼层
--prefix=/usr/local/gcc-3.4.1

安装到/usr/local一般是默认选项,不用设置,
如果是安装到系统目录下,指定--prefix=/usr即可,
详情看看./configure --help

*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compilerd.

设置环境变量CC的参数,
看看INSTALL的说明。
发表于 2004-8-19 17:12:05 | 显示全部楼层
问题是你的系统里没有gcc,装个编译器才可以从源码编译其它的。
 楼主| 发表于 2004-8-21 02:02:56 | 显示全部楼层
最初由 Glue 发表
问题是你的系统里没有gcc,装个编译器才可以从源码编译其它的。

能告诉我装什么样的编译器吗,帮我介绍一下咯。谢谢了!
发表于 2004-8-21 08:30:40 | 显示全部楼层
gcc
 楼主| 发表于 2004-8-21 08:34:54 | 显示全部楼层
to vel:
  我就是在安装GCC的时候报这种错误的,,该怎么做呀!
我是一个新手,,那位哥哥姐姐帮我解决这个问题。不胜感激!!
先谢谢了!!!
发表于 2004-8-21 10:51:54 | 显示全部楼层
系统中一定要有编译器,才能编译程序。如果你原来没有安装gcc,那么只好通过二进制包来装了。不过我怀疑你是链接没做,试试看ln -s gcc /usr/bin/cc
 楼主| 发表于 2004-8-22 20:04:34 | 显示全部楼层
wangguoqin1001:

我照你的方法做了链接还是报
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

为什么!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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