QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 822|回复: 3

安装Diffutils2.8.1时出错,请高手指点!!!

[复制链接]
发表于 2003-10-3 17:49:38 | 显示全部楼层 |阅读模式
tar开后的diffutils包里的文件(夹)为:
[lfs@Nifi diffutils-2.8.1]$ ls
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
由于之前把说明文档上的命令全部copy后运行报错,所以又按说明先试着下面的命令:
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的安装是即时生效(只需要重启)吗?
=======
我正在准备安装LFS(20021030稳定版),肯定会遇到不少问题,请大家多多帮助,谢谢!!!
 楼主| 发表于 2003-10-4 11:19:27 | 显示全部楼层
等啊等啊等......
回复

使用道具 举报

发表于 2003-10-4 11:30:01 | 显示全部楼层
LFS 的问题我不清楚,恐怕帮不上什么忙,只好把 Gentoo 里的 diffutil ebuild 和补丁贴出来了。

看看 md5 校验码是否和你下载的包一样,如果不一样可能真的是下的包坏了。
MD5 d467e099be4ffaab9dca52c0c60c5fec diffutils-2.7.7.tar.gz 803157
MD5 a9c028579abc79ecd6842d60a13abf1d diffutils-2.8.4.tar.gz 828766

为什么用 2.8.1 而不是 2.8.4 ?!


[code:1]# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/sys-apps/diffutils/diffutils-2.8.4-r4.ebuild,v 1.4 2003/09/18 00:01:14 avenj Exp $

IUSE="nls build static"

inherit eutils
inherit flag-o-matic

# sdiff SIGSEGVs with this on gcc-3.2.1, so take it out
# this fixes bug #13502
filter-flags "-mpowerpc-gfxopt"

S=${WORKDIR}/${P}
DESCRIPTION="Tools to make diffs and compare files"
SRC_URI="ftp://alpha.gnu.org/gnu/diffutils/${P}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/diffutils/diffutils.html"

KEYWORDS="~x86 ~alpha ia64"
SLOT="0"
LICENSE="GPL-2"

DEPEND="virtual/glibc
    >=sys-apps/portage-2.0.47-r10
    >=sys-apps/sed-4
    nls? ( sys-devel/gettext )
    !build? ( sys-apps/texinfo sys-apps/help2man )"

RDEPEND="virtual/glibc"

src_unpack() {
    unpack ${A}

    cd ${S}
    if [ -n "`use build`" ] ; then
        #disable texinfo building so we can remove the dep
        sed -i -e 's:SUBDIRS = doc:SUBDIRS =:' \
            Makefile.in || die "Makefile.in sed"
    fi

    # Build fails with make -j5 or greater on pentium4.  This is because
    # the jobs creating the opjects, which depend on paths.h is sheduled
    # at the same time paths.h is generated.  This patch just fix a small
    # typeo that caused this.  This closes bug #8934.
    # <[email protected]> (14 Oct 2002)
    epatch ${FILESDIR}/${P}-Makefile-fix-typeo.patch

    # Removes waitpid() call after pclose() on piped diff stream, closing
    # bug #11728, thanks to D Wollmann <[email protected]>
    epatch ${FILESDIR}/${P}-sdiff-no-waitpid.patch

    # --tabsize option, undocumented in diff but used in sdiff, makes
    # diff dump core, closing #24238.
    # <[email protected]> (1 Aug 2003)
    epatch ${FILESDIR}/${P}-tabsize-dumps-core.diff
}

src_compile() {
    econf --build=${CHOST} `use_enable nls` || die "econf"

    if [ "`use static`" ] ; then
        emake LDFLAGS=-static || die
    else
        emake || die
    fi
}

src_install() {
    einstall

    if [ -z "`use build`" ] ; then
        dodoc COPYING ChangeLog NEWS README
    else
        rm -rf ${D}/usr/share/info
    fi
}[/code:1]

LFS 的问题最好去 Linuxsir 问问,那里的 LFS 高手比较多。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

 楼主| 发表于 2003-10-4 19:53:35 | 显示全部楼层
两边我都问着呢,呵呵
我用的是20021030的稳定版本,因为对我来说,能搞定这个就功德无量了。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-10-5 14:19 , Processed in 0.063501 second(s), 17 queries .

© 2021 Powered by Discuz! X3.5.

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