前置条件
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 read time out解决方法,更换镜像
pip3 install --index https://pypi.mirrors.ustc.edu.cn/simple/ 要安装的包名称xxx
安装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~~