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 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码