LinuxSir.cn,穿越时空的Linuxsir!

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

util-linux-2.11y.tar.gz编译问题

[复制链接]
发表于 2011-3-9 16:04:26 | 显示全部楼层 |阅读模式
我下载了util-linux-2.11y.tar.gz,解压后在redhat9.02下编译,可是编译后没有编译出login,
就是/sbin下的那个login程序,
为什么?

我是直接./configure,make编译的。
发表于 2011-3-10 13:38:30 | 显示全部楼层
redhat9 …… 换发行版吧……
回复 支持 反对

使用道具 举报

发表于 2011-3-10 13:49:59 | 显示全部楼层
你去看看是不是默认不编译或者编译这个的时候出错,查一下Makefile或者你的编译过程中是否出错
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-3-11 16:34:35 | 显示全部楼层
编译时没有错误,Makefile如下:
include ./make_include
include ./MCONFIG

SUBDIRS=po \
        lib \
        getopt-1.1.2 \
        disk-utils \
        login-utils \
        misc-utils \
        mount \
        fdisk \
        hwclock \
        sys-utils \
        text-utils

.PHONEY: all install clean now
all:        defines.h
        @for subdir in $(SUBDIRS); do \
                (cd $$subdir && $(MAKE) $@) || exit 1; \
        done

defines.h make_include:
        ./configure

now:
        touch defines.h

$(SUBDIRS): defines.h now
        cd $@ && $(MAKE)

install:
        @if [ "`whoami`" = "root" ]; then umask 022; fi
        @for subdir in $(SUBDIRS); do \
                (cd $$subdir && $(MAKE) $@) || exit 1; \
        done

clean:
        -rm -f *.o *~ omake conftest conftest.c core
        @for subdir in $(SUBDIRS) partx; do \
                (cd $$subdir && $(MAKE) $@) || exit 1; \
        done

distclean: make_include clean
        cd po && make distclean
        cd mount && make distclean
        -rm -f defines.h make_include
回复 支持 反对

使用道具 举报

发表于 2011-3-11 17:02:29 | 显示全部楼层
那login-util里面哪?
一般我碰见的这种没有编译出来的问题包括:
1. 由于这个二进制不是必须的,所以需要自己手动加载编译
2. configure的时候发现某些依赖不能满足而自动禁止编译
3. 编译时发现环境或者库中某些依赖不能满足而跳过
楼主可以从configure到Makefile排查一下到底是那种情况导致没有编译出来。
回复 支持 反对

使用道具 举报

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

本版积分规则

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