2

最新の cf クライアントを使用して、 Bluemix プラグイン リポジトリからプラグインをインストールしようとしています。

cf version 6.14.0+2654a47-2015-11-18

Mac OSX と Centos 7 の両方で、リポジトリからインストールしようとすると次のエラーが表示されます (以下は 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 によってどのように生成されているかに特有のもののようです。これを自分で解決する方法についての提案や考え (残念ながら、この時点では、これらを自分でコンパイルできるソース リポジトリで十分です)。

わかりました、

4

2 に答える 2

2

実際には、Bluemix の公式 CLI は Cloud Foundry CLI であり、Bluemix のドキュメント ページで説明されています。

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

あなたのエラーは、プラグインを参照する際のエラーに依存していると思います。

Bluemix の cf vpn プラグインのドキュメント ページを確認する https://www.ng.bluemix.net/docs/cli/plugins/vpn/index.html

「vpn」だけでなく、ダウンロードした(そして自分の環境に適した)プラグインのバージョンを指定する必要があります

MS Windows OS の場合:

cf インストールプラグイン vpn_windows64.exe

Apple MAC OS の場合:

cf インストールプラグイン vpn_mac_os_amd64

Linux OS の場合:

cf インストールプラグイン vpn_linuxamd64

Bluemix プラグイン リポジトリを cf リポジトリとして構成し、それをソース リポジトリとして選択してプラグインをインストールすることもできます。

于 2015-12-07T07:39:59.760 に答える