Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何让openshift oc命令在Raspberry pi 3上工作?_Openshift_Raspberry Pi3_Openshift Origin - Fatal编程技术网

如何让openshift oc命令在Raspberry pi 3上工作?

如何让openshift oc命令在Raspberry pi 3上工作?,openshift,raspberry-pi3,openshift-origin,Openshift,Raspberry Pi3,Openshift Origin,我试图在我的raspberry pi 3上编译openshift,但它一直超时 我下面的教程来自 我这样做的原因是因为我得到了错误 ./oc:无法执行二进制文件:Exec格式错误 当我直接从下载文件并使用它时 那么,有谁能告诉我,我必须做什么才能使这项工作正常进行,或者我如何修复错误 由于openshift 2即将停产,我无法再使用rhc访问我的应用程序(在我的RPi3上运行良好)。Pi可能没有足够的RAM来编译oc。我建议在您的主计算机上运行以下操作,并将生成的二进制文件复制到Pi: CGO

我试图在我的raspberry pi 3上编译openshift,但它一直超时

我下面的教程来自

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

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

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

那么,有谁能告诉我,我必须做什么才能使这项工作正常进行,或者我如何修复错误


由于openshift 2即将停产,我无法再使用
rhc
访问我的应用程序(在我的RPi3上运行良好)。

Pi可能没有足够的RAM来编译
oc
。我建议在您的主计算机上运行以下操作,并将生成的二进制文件复制到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

Pi可能没有足够的RAM来编译
oc
。我建议在您的主计算机上运行以下操作,并将生成的二进制文件复制到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

让它工作,这里的答案为其他人和未来的参考

  • 复制回购协议
  • 切换至标签v.1.5.1
  • 安装go for windows并配置环境变量
    • 不得不将repo移动到GOPATH并在其中创建一些文件夹(src/github.com/openshift/origin)
  • 打开终端并设置一些值
    • 将CGO_设置为启用=0
    • 设置GOOS=linux
    • 设定目标=手臂
    • 设定目标=7
  • 使用命令
    go build-v github.com/openshift/origin/cmd/oc

  • 您将得到一个可用于RPI3的可执行文件。如果它正常工作,下面的答案供其他人和将来参考

  • 复制回购协议
  • 切换至标签v.1.5.1
  • 安装go for windows并配置环境变量
    • 不得不将repo移动到GOPATH并在其中创建一些文件夹(src/github.com/openshift/origin)
  • 打开终端并设置一些值
    • 将CGO_设置为启用=0
    • 设置GOOS=linux
    • 设定目标=手臂
    • 设定目标=7
  • 使用命令
    go build-v github.com/openshift/origin/cmd/oc
  • 您将得到一个可用于RPI3的可执行文件