栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

【openbmc】编译环境配置

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

【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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/965038.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号