构建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?

duanre1891
duanre1891 我建议升级到最新的golang版本,并在仍然无法正常工作时提交错误。
5 年多之前 回复

1个回答



请确保已安装golang-go-linux-386。</ p>

   sudo apt-get install golang-go-linux-386 
</ code> </ pre>
</ div>

展开原文

原文

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

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

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问