LinuxSir.cn,穿越时空的Linuxsir!

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

安装LFS--Diffutils时出现错误,请高手来看看

[复制链接]
发表于 2003-10-2 17:05:35 | 显示全部楼层 |阅读模式
[lfs@Nifi diffutils-2.8.1]$ ls
ABOUT-NLS   config        COPYING    INSTALLME    Makefile.in  po
aclocal.m4  config.hin    doc        lib          man          README
AUTHORS     configure     exgettext  m4           ms           src
ChangeLog   configure.ac  INSTALL    Makefile.am  NEWS         THANKS
[lfs@Nifi diffutils-2.8.1]$ LDFLAGS=-static CPPFLAGS=-Dre_max_failures=re_max_failures2 \
>     ./configure --prefix=$LFS/static --disable-nls &&
> make &&
> make install
./configure: line 93: conftest.sh: No such file or directory
./configure: line 94: conftest.sh: No such file or directory
chmod: failed to get attributes of `conftest.sh': No such file or directory
./configure: line 204: conf22479.file: No such file or directory
./configure: line 946: config.log: No such file or directory

我是完全按照LFS20021030上边写的一步步做下来的,难道是下载的压缩包有问题?
 楼主| 发表于 2003-10-3 11:03:12 | 显示全部楼层
没人?
发表于 2003-10-3 11:25:50 | 显示全部楼层
你这个错误我倒是没有见过啊.是不是
./configure: line 93: conftest.sh: No such file or directory
把configure文件这里的内容贴出来看看?
 楼主| 发表于 2003-10-3 17:36:24 | 显示全部楼层

继续我的疑问

tar开后的diffutils包里的文件(夹)为:
ABOUT-NLS
ChangeLog
Makefile.am
README
config
configure.ac
lib
ms
AUTHORS
INSTALL
Makefile.in
THANKS
config.hin
doc
m4
po
COPYING
INSTALLME
NEWS
aclocal.m4
configure
exgettext
man
src
按照说明先试着下面的命令:
LDFLAGS=-static CPPFLAGS=-Dre_max_failures=re_max_failures2 ./configure --prefix=$LFS/static --disable-nls
结果显示为:
./configure: line 93: conftest.sh: No such file or directory
./configure: line 94: conftest.sh: No such file or directory
chmod: failed to get attributes of `conftest.sh': No such file or directory
./configure: line 204: conf22479.file: No such file or directory
./configure: line 946: config.log: No such file or directory
(完全按照LFS20021030稳定版的说明步骤来的),这是为什么呢?
=======
另外还有一个小问题,昨天安装到这里出错以后就停下来了,今天再用lfs身份进入init3,提示符变成“-bash-2.05$”,startx后发现KDE的部分外观发生了改变,譬如shell中的字体变了,难道LFS的安装是即时生效(只需要重启)吗?
谢谢!!!
发表于 2003-10-3 21:44:05 | 显示全部楼层
你压根儿没看我上面说的??
 楼主| 发表于 2003-10-4 11:34:44 | 显示全部楼层

老大,那个文件太大了,我就摘录一部分吧

#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53 for GNU diffutils 2.8.1.
#
# Report bugs to <bug-gnu-utils@gnu.org>.
#
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  as_mkdir_p=false
fi


if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi
...
...
# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! /bin/sh" >conftest.sh                       <--第93行
echo  "exit 0"   >>conftest.sh                       <--第94行
  chmod +x conftest.sh
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conftest.sh
fi
...
...

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file                                    <--第204行
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
...
...
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit 0
fi
exec 5>config.log                                     <--第946行
cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
发表于 2003-10-4 12:19:51 | 显示全部楼层
你出错的地方都是用到">"的地方,觉得很奇怪.
echo "#! /bin/sh" >conftest.sh
你手动运行一下这个命令,以及94行的,看看会不会出错.
 楼主| 发表于 2003-10-4 15:09:57 | 显示全部楼层
我不知道是不是和上边我说到的lfs用户的界面发生变化有某些联系,因为刚才按照你说的方法单独执行93/94命令的时候提示信息是乱码,在shell方案配置中用什么字体都不行.换个用户执行,就能正常显示中文"bash: conftest.sh: 没有那个文件或目录".
发表于 2003-10-4 16:24:57 | 显示全部楼层
那个界面变化是因为bashrc什么的没有,在X下要读它.提示信息是乱码,说明你的locale是中文的,把它改成英文就行了.你echo了以后,怎么会没有conftest.sh这个文件呢?你用ls看看有没有?如果没有,那你系统里有没有echo这个命令?最好是把系统升级安装一下,安装上开发工具.
发表于 2003-10-4 16:25:23 | 显示全部楼层
看看LFS用户的$PATH变量是多少.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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