【问题标题】:(ONIE) stg: command not found and Error 127 in Ubuntu terminal(ONIE) stg:在 Ubuntu 终端中找不到命令和错误 127
【发布时间】:2015-07-13 19:14:52
【问题描述】:

我试图按照本指南进行操作:https://github.com/opencomputeproject/onie/blob/master/machine/kvm_x86_64/INSTALL,但卡住了。

在这一行:make MACHINE=kvm_x86_64 all,当它尝试应用补丁时,我得到stg: command not found。我在 make 命令上收到错误 127。这是输出:

我已经安装了 g++ 和 git。我做错了什么?

【问题讨论】:

  • stg 似乎来自stacked git。可能有一个包。
  • 我在网上找了一段时间,没有找到它的包。
  • @EtanReisner 非常感谢!但是,我遇到了另一个问题,您可能知道如何解决。错误是expat is missing or unusable。我安装了 expat,但仍然出现错误。图片:i.imgur.com/tCNLSAN.png
  • 你可能只需要 dev/devel expat 包。

标签: linux git ubuntu makefile


【解决方案1】:

来自 ONIE 项目 wiki Building ONIE:

对于基于 Debian 的系统,存在一个 Makefile 目标,用于在您的构建机器上安装所需的软件包。 ONIE 项目将为当前稳定的 Debian 版本维护这个目标。这个目标需要使用 sudo(8),因为包安装需要 root 权限:

$ cd build-config
$ sudo apt-get update
$ sudo apt-get install build-essential
$ make debian-prepare-build-host

【讨论】:

  • 使用 Debian Stretch,make debian-prepare-build-host 失败并出现错误 127。我必须先以 root 身份使用apt-get install sudo,然后才能正常工作。
【解决方案2】:

我在 Ubuntu Desktop 15.04 上构建了这个。对于其他尝试构建 ONIE 虚拟机的人,请先安装这些软件包:

包

您可以使用sudo apt-get install <package> 安装其中的大部分。您现在应该可以关注ONIE guide 并进行设置。感谢 EtanReisner 的所有帮助!

【讨论】:

    【解决方案3】:

    在 Ubuntu 上,安装 stg 包,

    sudo apt-get install stgit
    

    错误 stg: command not found 应该被解决。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-01-31
      • 2021-07-06
      • 1970-01-01
      • 2012-01-09
      • 2018-12-10
      • 2011-04-23
      • 1970-01-01
      相关资源
      最近更新 更多