1 使用腾讯云主机,正式构建LFS前的准备

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:

  1. for /bin/sh, run sudo dpkg-reconfigure dash, choose No
  2. for bison, yacc, m4, run sudo apt install bison
  3. for makeinfo, run sudo apt-get install texinfo
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容