无法安装大多数Bluemix CF插件

时间:2015-12-07 00:45:27

标签: ibm-cloud cloudfoundry ibm-cloud-plugin

尝试使用最新的cf客户端从Bluemix Plugin Repository安装插件:

cf version 6.14.0+2654a47-2015-11-18
在Mac OSX和Centos 7上的

,尝试从repo安装时出现以下错误(以下是来自Centos机器):

[michael@oracle ~]$ cf install-plugin -r bluemix vpn

Attention: Plugins are binaries written by potentially untrusted authors. Install and use plugins at your own risk.

Do you want to install the plugin vpn? (y or n)> y
Looking up 'vpn' from repository 'bluemix'
9741777 bytes downloaded...
FAILED
Downloaded plugin binary's checksum does not match repo metadata

下载二进制插件并尝试本地安装,给我:

cf install-plugin bluemix-admin-linux_x64

Attention: Plugins are binaries written by potentially untrusted authors. Install and use plugins at your own risk.

Do you want to install the plugin bluemix-admin-linux_x64? (y or n)> y

Installing plugin ./bluemix-admin-linux_x64...
FAILED
exit status 127

进一步检查产量:

ldd bluemix-admin-linux_x64
./bluemix-admin-linux_x64: error while loading shared libraries: ./bluemix-admin-linux_x64: unsupported version 6773 of Verneed record

虽然此示例适用于vpn插件,但除了IBM-Containers之外的所有插件在远程安装尝试时产生相同的结果(校验和错误)以及检查二进制本身的一些变化,例如使用active_deploy:

ldd active-deploy-linux-amd64-0.1.67
    linux-vdso.so.1 =>  (0x00007ffc649d4000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00000036a0a00000)
    libc.so.6 => /lib64/libc.so.6 (0x000000369fe00000)
    /lib64/ld-linux-x86-64.so.2 (0x000000369fa00000)

我没有在其他社区Cloud Foundry插件中看到这一点,所以这种现象似乎是IBM如何生成这些插件的独特之处。关于我如何自己解决这个问题的任何建议或想法(我自己可以自己编译的源代码库,虽然不幸,但在这一点上就足够了。)

韩国社交协会,

2 个答案:

答案 0 :(得分:2)

实际上,Bluemix的官方CLI是Cloud Foundry CLI,如Bluemix doc pages所述

https://www.ng.bluemix.net/docs/cli/downloads.html

我认为您的错误取决于您在引用插件时的错误。

检查Bluemix的cf vpn插件的doc页面 https://www.ng.bluemix.net/docs/cli/plugins/vpn/index.html

您必须指定下载的插件版本(适用于您自己的环境),而不仅仅是' vpn'

对于MS Windows操作系统:

cf install-plugin vpn_windows64.exe

对于Apple MAC OS:

cf install-plugin vpn_mac_os_amd64

对于Linux操作系统:

cf install-plugin vpn_linuxamd64

您还可以将bluemix插件存储库配置为cf存储库,然后安装插件选择它作为源存储库。

答案 1 :(得分:0)

使用此容器,它已安装cf和容器插件: https://hub.docker.com/r/reachlin/bluemix/