ubuntu编译内核提示lzop
错误
/bin/sh: 1: lzop: not found
build@build-machine:/work/embedfire/code/ebf_6ull_linux$ make ARCH=arm -j4 CROSS_COMPILE=arm-linux-gnueabihf-
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
Kernel: arch/arm/boot/Image is ready
Building modules, stage 2.
LZO arch/arm/boot/compressed/piggy.lzo
/bin/sh: 1: lzop: not found
MODPOST 72 modules
arch/arm/boot/compressed/Makefile:180: recipe for target 'arch/arm/boot/compressed/piggy.lzo' failed
make[2]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1
make[2]: *** Waiting for unfinished jobs....
CC arch/arm/boot/compressed/decompress.o
arch/arm/boot/Makefile:52: recipe for target 'arch/arm/boot/compressed/vmlinux' failed
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
arch/arm/Makefile:316: recipe for target 'zImage' failed
make: *** [zImage] Error 2
make: *** Waiting for unfinished jobs....
使用下面的命令安装lzop
即可
sudo apt install lzop
build@build-machine:/work/embedfire/code/ebf_6ull_linux$ sudo apt install lzop
[sudo] password for build:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
lzop
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 39.8 kB of archives.
After this operation, 97.3 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu bionic/universe amd64 lzop amd64 1.03-4 [39.8 kB]
Fetched 39.8 kB in 3s (14.0 kB/s)
Selecting previously unselected package lzop.
(Reading database ... 175432 files and directories currently installed.)
Preparing to unpack .../archives/lzop_1.03-4_amd64.deb ...
Unpacking lzop (1.03-4) ...
Setting up lzop (1.03-4) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...