如何在Raspberry Pi 3上使用openshift oc命令? [英] How to get openshift oc command working on Raspberry pi 3?

查看:120
本文介绍了如何在Raspberry Pi 3上使用openshift oc命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在树莓派上编译openshift 原始源 3,但一直保持超时.

I'm trying to compile openshift origin source on my raspberry pi 3 but it keeps timing out.

我正在关注的教程来自此处

The tutorial I'm following is from here

原因我这样做是因为我得到了错误

Reason I'm doing this is because I get the error

./oc:无法执行二进制文件:Exec格式错误

./oc: cannot execute binary file: Exec format error

当我直接从此处下载文件并使用它时

when I download the file directly from here and use it.

那么有人可以告诉我要做什么才能完成这项工作,或者如何解决这些错误吗?

So can anyone tell me what I have to do to make this work or how I fix the errors?

随着openshift 2即将终止,我不再可以使用rhc访问我的应用程序(在我的RPi3上可以正常工作).

With openshift 2 being discontinued soon, I cannot access my application with rhc anymore (which works fine on my RPi3).

推荐答案

Pi可能没有足够的RAM来编译oc.我建议在主计算机上运行类似以下内容的代码,然后将生成的二进制文件复制到Pi:

The Pi probably does not have enough RAM to compile oc. I suggest running something like the following on your primary machine and copying the resulting binary to the Pi:

CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOARM=7 go build -v -tags 'include_gcs include_oss containers_image_openpgp' github.com/openshift/origin/cmd/oc

这篇关于如何在Raspberry Pi 3上使用openshift oc命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆