Compile and install busybox

yum install gcc gcc-c++ glibc glibc-devel pcre pcre-devel openssl  openssl-devel systemd-devel zlib-devel glibc-static ncurses-devel 

wget https://busybox.net/downloads/busybox-1.30.1.tar.bz2

 tar xvf busybox-1.30.1.tar.bz2

 cd busybox-1.30.1/

the make menuconfig in the following options to busybox also compiled static binary, not the shared library Settings Busybox -> Build Options -> [*] Build BusyBox AS A static binary (NO Shared libs

the make the make install && If an error occurs, after the implementation of make clean, re- new implementation of the above command 

mkdir / mnt / sysroot / 

cp -a _install/* /mnt/sysroot/

Guess you like

Origin blog.51cto.com/14240018/2433096