LinuxSir.cn,穿越时空的Linuxsir!

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

LFS编译第一步就出错,路不好走啊~

[复制链接]
发表于 2005-4-3 22:14:02 | 显示全部楼层 |阅读模式
lfs:/mnt/lfs/binutils-build$../binutils-2.15.91.0.2/configure --prefix=/tools \ --disable-nls
Creating cache ./config.cache
checking host system type... config.sub: invalid option --disable-nls
Try `config.sub --help' for more information.  --------出现错误了
checking target system type... config.sub: invalid option --disable-nls
Try `config.sub --help' for more information.
checking build system type... config.sub: invalid option --disable-nls
Try `config.sub --help' for more information.
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
../binutils-2.15.91.0.2/configure: line 2031: test: too many arguments
checking for gnatbind... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
checking for bison... bison
checking for bison... bison -y
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for --disable-nls-ar... no
../binutils-2.15.91.0.2/configure: line 3528: test: too many arguments
checking for --disable-nls-as... no
../binutils-2.15.91.0.2/configure: line 3600: test: too many arguments
checking for --disable-nls-dlltool... no
../binutils-2.15.91.0.2/configure: line 3672: test: too many arguments
checking for --disable-nls-ld... no
../binutils-2.15.91.0.2/configure: line 3744: test: too many arguments
checking for --disable-nls-nm... no
../binutils-2.15.91.0.2/configure: line 3816: test: too many arguments
checking for --disable-nls-ranlib... no
../binutils-2.15.91.0.2/configure: line 3888: test: too many arguments
checking for --disable-nls-windres... no
../binutils-2.15.91.0.2/configure: line 3960: test: too many arguments
checking for --disable-nls-objcopy... no
../binutils-2.15.91.0.2/configure: line 4032: test: too many arguments
checking for --disable-nls-objdump... no
../binutils-2.15.91.0.2/configure: line 4104: test: too many arguments
checking for --disable-nls-ar... no
../binutils-2.15.91.0.2/configure: line 4183: test: too many arguments
checking for --disable-nls-as... no
../binutils-2.15.91.0.2/configure: line 4255: test: too many arguments
checking for --disable-nls-dlltool... no
../binutils-2.15.91.0.2/configure: line 4327: test: too many arguments
checking for --disable-nls-ld... no
../binutils-2.15.91.0.2/configure: line 4399: test: too many arguments
checking for --disable-nls-nm... no
../binutils-2.15.91.0.2/configure: line 4471: test: too many arguments
checking for --disable-nls-ranlib... no
../binutils-2.15.91.0.2/configure: line 4543: test: too many arguments
checking for --disable-nls-windres... no
../binutils-2.15.91.0.2/configure: line 4615: test: too many arguments
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
sed: file conftest.s1 line 63: unterminated `s' command

有没有解决的办法哦~~
发表于 2005-4-3 22:20:04 | 显示全部楼层
你进的目录不对,好像少做了两步:
mkdir ../binutils-build
cd ../binutils-build
回复 支持 反对

使用道具 举报

发表于 2005-4-4 01:16:19 | 显示全部楼层
你没有在 \ 符号后面换行吗?这个符号是续行符,表示下一行的内容应当与这一行合并,组成一个完整的命令行。你这种写法就不对了。

你可以不要那个续行符,直接把所有的选项写在同一行里面,这样应该就能解决问题。试试!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-4 09:29:48 | 显示全部楼层
呵呵,真不好意思,就出在换行符上,编译通过了,可以继续了~
回复 支持 反对

使用道具 举报

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

本版积分规则

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