System Info
TencentCloud CVM: 1 core, 1G ram and 50G disk
uname -a
:
Linux VM-94-173-ubuntu 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Host System Requirements
LFS : 2.2. Host System Requirements
Run the script bash version-check.sh
, then get a result of version check:
bash, version 4.3.48(1)-release
/bin/sh -> /bin/dash
ERROR: /bin/sh does not point to bash
Binutils: (GNU Binutils for Ubuntu) 2.26.1
version-check.sh: line 11: bison: command not found
yacc not found
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.25
diff (GNU diffutils) 3.3
find (GNU findutils) 4.7.0-git
GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0)
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
(Ubuntu GLIBC 2.23-0ubuntu9) 2.23
grep (GNU grep) 2.25
gzip 1.6
Linux version 4.4.0-104-generic (buildd@lgw01-amd64-022) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) ) #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017
version-check.sh: line 41: m4: command not found
GNU Make 4.1
GNU patch 2.7.5
Perl version='5.22.1';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.28
version-check.sh: line 47: makeinfo: command not found
xz (XZ Utils) 5.2.3
g++ compilation OK
According to the above, there exist some matters about /bin/sh
, bison
, yacc
, m4
, makeinfo
.
Solution:
- for
/bin/sh
, runsudo dpkg-reconfigure dash
, chooseNo
- for
bison
,yacc
,m4
, runsudo apt install bison
- for
makeinfo
, runsudo apt-get install texinfo