dongsutao8921 2015-05-24 14:25
浏览 97

构建cf-cli时出错:进入构建运行时:必须使用make.bash引导linux / 386

The CLI tool for Cloud Foundry available at cloudfoundry/cli is written in Go. I'm trying to build the CLI tool but getting this error:

go build runtime: linux/386 must be bootstrapped using make.bash

How to solve this problem?

Here are the contents of the cli/bin/build-all.sh script:

#!/bin/bash

set -e
set -x

OUTDIR=$(dirname $0)/../out

GOARCH=amd64 GOOS=windows $(dirname $0)/build && cp $OUTDIR/cf $OUTDIR/cf-windows-amd64.exe
GOARCH=386 GOOS=windows $(dirname $0)/build && cp $OUTDIR/cf $OUTDIR/cf-windows-386.exe
GOARCH=amd64 GOOS=linux $(dirname $0)/build  && cp $OUTDIR/cf $OUTDIR/cf-linux-amd64
GOARCH=386 GOOS=linux $(dirname $0)/build  && cp $OUTDIR/cf $OUTDIR/cf-linux-386
GOARCH=amd64 GOOS=darwin $(dirname $0)/build  && cp $OUTDIR/cf $OUTDIR/cf-darwin-amd64

Everything works fine and gets cross compiled except for the line GOARCH=386 GOOS=linux, which produces this error:

go build runtime: linux/386 must be bootstrapped using make.bash

I'm running on Ubuntu 14.04 and my go version is go1.3.3

How to solve this problem?

  • 写回答

1条回答 默认 最新

  • dongqin8652 2015-07-10 14:41
    关注

    Please make sure you have golang-go-linux-386 installed.

    sudo apt-get install golang-go-linux-386
    
    评论

报告相同问题?

悬赏问题

  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容