Compile and install Busybox in CentOS
[Root @ cloud ~] # Yum-yinstallwgetmakegccperlglibc-staticncurses-devellibgcrypt-devel
[Root @ cloud ~] # Wgethttp: // busybox.net/downloads/busybox-1.21.0.tar.bz2
[Root @ cloud ~] #Tar-jxvfbusybox-1.21.0.tar.bz2
[Root @ cloud ~] # Cdbusybox-1.21.0
# Make
[Root@cloudbusybox-1.21.0] # makeinstall
Fault 1:
# Make
..................
============
/Usr/bin/ld: cannotfind-lcrypt
Collect2: ld returns 1
Make: *** [busybox_unstripped] Error 1
# Make
LINKbusybox_unstripped
Tryinglibraries: cryptm
Librarycryptisnotneeded, excludingit
Librarymisneeded, can 'texcludeit (yet)
Finallinkwith: m
DOCbusybox. pod
DOCBusyBox.txt
DOCbusybox.1
DOCBusyBox.html
[Root@cloudbusybox-1.21.0] #
Solution:
[Root@cloudbusybox-1.21.0] # yum-yinstalllibgcrypt-devel
# Make
Other:
Yumlistall | grepcrypt
------------------------------------
Fault 2:
# Make
........................
Miscutils/ubi_tools.c: 67: 26: Error: mtd/ubi-user.h: No file or directory
Miscutils/ubi_tools.c: Infunction 'ubi _ tools_main ':
Miscutils/ubi_tools.c: 137: Error: 'ubi _ DEV_NUM_AUTO 'is not declared (used for the first time in this function)
Miscutils/ubi_tools.c: 137: Error :( even if it appears multiple times in a function, each undeclared identifier
Miscutils/ubi_tools.c: 137: Error: only one report is reported in the function .)
Miscutils/ubi_tools.c: 138: Error: 'ubi _ VOL_NUM_AUTO 'is not declared (used for the first time in this function)
Miscutils/ubi_tools.c: 157: Error: 'req' storage size unknown
Miscutils/ubi_tools.c: 165: Error: 'ubi _ iocatt' not declared (used for the first time in this function)
Miscutils/ubi_tools.c: 157: Warning: unused variable 'req'
Miscutils/ubi_tools.c: 171: Error: 'ubi _ iocdet' not declared (used for the first time in this function)
Miscutils/ubi_tools.c: 174: Error: 'req' storage size unknown
Miscutils/ubi_tools.c: 181: Error: 'ubi _ MAX_VOLUME_NAME 'is not declared (used for the first time in this function)
Miscutils/ubi_tools.c: 188: Error: 'ubi _ STATIC_VOLUME 'is not declared (used for the first time in this function)
Miscutils/ubi_tools.c: 190: Error: 'ubi _ DYNAMIC_VOLUME 'is not declared (used for the first time in this function)
Miscutils/ubi_tools.c: 199: Error: 'ubi _ IOCMKVOL 'is not declared (used for the first time in this function)
Miscutils/ubi_tools.c: 174: Warning: unused variable 'req'
Miscutils/ubi_tools.c: 205: Error: 'ubi _ IOCRMVOL 'is not declared (used for the first time in this function)
Miscutils/ubi_tools.c: 208: Error: 'req' storage size unknown
Miscutils/ubi_tools.c: 218: Error: 'ubi _ IOCRSVOL 'is not declared (used for the first time in this function)
Miscutils/ubi_tools.c: 208: Warning: unused variable 'req'
Miscutils/ubi_tools.c: 226: Error: 'ubi _ iocvolup' is not declared (used for the first time in this function)
Make [1]: *** [miscutils/ubi_tools.o] Error 1
Make: *** [miscutils] Error 2
Solution:
[Root@cloudbusybox-1.21.0] # makemenuconfig
Remove the option containing ubi under the "MiscellaneousUtilities --->" option below:
UBI (UnsortedBlockImages) is a new type of Flash file system.
| [] Ubiattach |
| [] Ubidetach |
| [] Ubimkvol |
| [] Ubirmvol |
| [] Ubirsvol |
| [] Ubiupdatevol
Save and exit, and make again.