[轉] Yocto嵌入式開發框架編譯環境構建

前置條件

linux系統,redhat(centos)。可以用伺服器,或者虛擬機系統

以下步驟,啥也別問,跟著搞就是了

基礎lib庫

yum install sqlite-devel
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

yum install -y diffstat

yum install -y patch makeinfo bzip2 chrpath file

yum install -y texinfo

yum install gcc-c++

yum install perl*

yum install -y perl-Thread-Queue

重頭戲來了

安裝python3(注意不是python2)

tar xf Python-3.6.0.tgz

./configure –prefix=/usr/local/python3/

然後就是make && make install

配置環境變量

vim /etc/profile.d/python3.sh

export PATH=$PATH:/usr/local/python3/bin/

source ~/.bash_profile

pip3 install [pkg_name]

安裝perl

wget http://www.cpan.org/src/5.0/perl-5.16.1.tar.gz

tar -zxvf perl-5.16.1.tar.gz

./Configure -des -Dprefix = / usr / local / perl

然後就是make && make install

安裝bitbake

git://git.openembedded.org/bitbake將bin加入$ PATH

bitbake -h預期成功啟動

最後

enjoy your bitbake~~


Reference: https://www.jianshu.com/p/9186b3203fd3