首页 > 代码库 > Fedora13下编译busybox-1.15.0出现can not find lcrypt错误
Fedora13下编译busybox-1.15.0出现can not find lcrypt错误
在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