|
|
发表于 2005-1-10 01:54:34
|
显示全部楼层
/bin/sh: line1: no: command not found
这行就是出错的关键位置。很明显,make到那里是在运行一个命令
结果运行的是no,没有这个命令,就command not found
这个no就来自&& rm -f $file && PATH=../src PATH no -o $file
然后我就自己编译了下binutils,注意了一下
file=../../../binutils-2.15.91.0.2/bfd/po/`echo fr | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src PATH no -o $file
这里,原来正确的应该是
file=../../../binutils-2.15.91.0.2/bfd/po/`echo fr | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src PATH /usr/bin/msgfmt -o $file ../../../binutils-2.15.91.0.2/bfd/po/fr.po
在去查下,发现/usr/bin/msgfmt是属于gettext包的,于是就猜想出大概是你的主系统没有安装gettext,在
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
时返回的不是/usr/bin/msgfmt,可能是no吧。
于是才出现了&& rm -f $file && PATH=../src PATH no -o $file
这就是发现问题的原因和解决过程。
如果不通过正确的编译binutils和错误的比较,应该不是很容易找到原因。
除非很了解编程。 |
|