编译全志linux内核报错
CC scripts/mod/empty.o HOSTCC scripts/genksyms/genksyms.o SHIPPED scripts/genksyms/lex.lex.c HOSTCC scripts/conmakehash HOSTCC scripts/mod/mk_elfconfig HOSTCC scripts/recordmcount SHIPPED scripts/genksyms/keywords.hash.c /home/ql/linux/H3Core/lichee/out/sun8iw7p1/dragonboard/common/buildroot/external-toolchain/bin/../libexec/gcc/arm-linux-gnueabi/4.6.3/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory make[2]: *** [scripts/Makefile.build:308:scripts/mod/empty.o] 错误 1 make[2]: *** 正在等待未完成的任务.... SHIPPED scripts/genksyms/parse.tab.h SHIPPED scripts/genksyms/parse.tab.c HOSTCC scripts/genksyms/lex.lex.o HOSTCC scripts/genksyms/parse.tab.o make[1]: *** [scripts/Makefile.build:443:scripts/mod] 错误 2 make[1]: *** 正在等待未完成的任务.... CC kernel/bounds.s /home/ql/linux/H3Core/lichee/out/sun8iw7p1/dragonboard/common/buildroot/external-toolchain/bin/../libexec/gcc/arm-linux-gnueabi/4.6.3/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory make[1]: *** [/home/ql/linux/H3Core/lichee/linux-3.4/./Kbuild:36:kernel/bounds.s] 错误 1 make: *** [Makefile:985:prepare0] 错误 2 make: *** 正在等待未完成的任务.... HOSTLD scripts/genksyms/genksyms make: *** [Makefile:506:scripts] 错误 2
执行下面指令安装库即可解决
sudo apt-get install lib32z1



