【openbmc】编译环境配置

虚拟机: vmware
系统:ubantu14.10
ubantu下:
1、安装工具:apt-get

  1. sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份
  2. sudo vim /etc/apt/sources.list #修改源列表,将阿里云源复制到sources.list文件中

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

  1. sudo apt-get update #更新本地源列表;
  2. sudo apt-get upgrade
  3. sudo apt-get install

2、安装工具:aptitude
有些软件使用apt-get 安装不成功,可以使用aptitude 自动解决依赖关系安装。
sudo apt-get install aptitude
sudo aptitude install xxx
会有类似提示:

The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.3 is installed
The following actions will resolve these dependencies:

      Keep the following packages at their current version:
1)      libacl1-dev [Not Installed]
2)      libattr1-dev [Not Installed]
……
93)     ros-galactic-visualization-msgs [Not Installed]
94)     zlib1g-dev [Not Installed]

      Leave the following dependencies unresolved:
95)     libpython3.8-dev recommends libc6-dev | libc-dev
96)     python3.8-dev recommends libc6-dev | libc-dev



Accept this solution? [Y/n/q/?]

意思就是需要依赖2.31-0ubuntu9.2,现在的是2.31-0ubuntu9.3,选择n,然后会对软件进行升降级,选择y,一般久安装成功了。

2、安装git
sudo apt-get install git
git config --global user.name “xxx”
git config --global user.email “youxiang@”
ssh-keygen -t rsa -C “youxiang@”
cat ~/.ssh/id_rsa.pub
3、clone代码
openbmc代码:
https://github.com/edge-core/openbmc

  1. git clone server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile解决:

git config --global http.sslverify false

  1. gnutls_handshake() failed: Error in the pull function.
    网上很多是重置代理解决,试过了很多方法,还是不行

最简单的将 clone的地址换成ssh地址,如
git@github.com:openembedded/meta-openembedded.git

4、编译代码

  1. 编译失败
    warning的提示Ubuntu-18.04 上没有构架过这个工程,所以我安装了14.10。
    请添加图片描述
    WARNING: supported “poky-1.7”
    WARNING: supported “poky-1.8”
    WARNING: supported “Ubuntu-14.04”
    WARNING: supported “Ubuntu-14.10”
    WARNING: supported “Fedora-21”
    WARNING: supported “CentOS-6."
    WARNING: supported "CentOS-7.

    WARNING: supported “Debian-7."
    WARNING: supported "Debian-8.

    WARNING: supported “openSUSE-13.2”
    WARNING: supported “CentOS-Linux-7.2.*”
    WARNING: supported “”
  2. 在Ubuntu-14.10 再次编译:
    提示缺少makeinfo、gwak等,那么他们对应什么软件包?
    apt-cache search texinfo

    apt-file search bin/makeinfo
  3. do_fetch失败解决方法:
    https://blog.csdn.net/qq_34160841/article/details/104874177
    第二种方法比较清晰。

5、开启ssh服务
https://blog.csdn.net/xp_lx1/article/details/78089730

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值