GNU运行hello程序

来源:百度知道 编辑:UC知道 时间:2024/09/20 10:47:30
我在GNU中运行hello程序执行make命令时出现了这样的错误:
Making all in po
make[2]: Entering directory `/usr/local/src/hello-2.3/po'
make[2]: *** No rule to make target `all'. Stop.
make[2]: Leaving directory `/usr/local/src/hello-2.3/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/hello-2.3'
make: *** [all] Error 2
这是什么原因?程序包是官网上下的,应该没问题。另外运行configure命令时有的选项是NO但最后没有失败或错误的提示,也产生了makefile文件。请高手指点。
configure中还有什么设置没?我只设置了./configure CC=c89 CFLAGS=-O2 LIBS=-lposix。我看书上说configure不正确的话不会产生makefile文件。

Making all in po

执行make?

make[2]: Entering directory `/usr/local/src/hello-2.3/po'

进入目录
怎么上来就是2,1呢?没贴全阿!

make[2]: *** No rule to make target `all'. Stop.

没有all对应的操作,停止!
你确认Makefile里面有all?config的时候有问题吧?

make[2]: Leaving directory `/usr/local/src/hello-2.3/po'

离开目录

make[1]: *** [all-recursive] Error 1

1的时候有1个错误,具体错误是什么不得而知,你没贴出来。。。

make[1]: Leaving directory `/usr/local/src/hello-2.3'

离开目录

make: *** [all] Error 2

一共两个错误

大概是这样的,我估计是config的时候有问题,Makefile并没有生成好。

擦分中。。。。。