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
    
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器