Fedora13下编译busybox-1.15.0出现can not find lcrypt错误
2017-05-13 13:26 tlnshuju 阅读(612) 评论(0) 编辑 收藏 举报在Fedora 13 系统上编译busybox(非交叉编译)产生错误
root@localhost # make
...
gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wularations -Wdeclaration-after-statement -Wold-style-definition -fno-builtinfno-guess-branch-probability -funsigned-char -static-libgcc -falign-functiotack-boundary=2
-static -o busybox_unstripped -Wl,--sort-common -Wl,--sort-narchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a mrintutils/lib.a procps/lib.a runit/lib.a selinux/lib.a
shell/lib.a sysklogdunarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutil-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/builtt-in.o networking/built-in.o networking/libiproute/built-in.o networking/udlt-in.o shell/built-in.o
sysklogd/built-in.o util-linux/built-in.o util-linup
==========
/usr/bin/ld: cannot find -lcrypt
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
非常明显系统未能找到库文件libcrypt.so,可是在/usr/lib下又存在这个链接文件。
/usr/lib/libcrypt.so -> ../../lib/libcrypt.so.1
于是安装glibc-static就可以解决。
#yum install glic-static