アイビスヘッダー

IBS

2012年1月6日金曜日

CentOS5.7(x86_64)に VMware-vSphere-CLI-4.0.0 の導入メモ

以下のURLからダウンロードします。
自動化ツールおよびSDKを展開→VMware vSphere CLI 4.0 をダウンロード

導入開始

# tar xvfz VMware-vSphere-CLI-4.0.0-161974.x86_64.tar.gz
# cd vmware-vsphere-cli-distrib/
# ./vmware-install.pl 
Creating a new vSphere CLI installer database using the tar4 format.

Installing vSphere CLI.

Installing version 161974 of vSphere CLI


You must read and accept the vSphere CLI End User License Agreement to 
continue.
Press enter to display it.  

VMware(r) End User License Agreement

VMware, Inc. ("VMware") provides the vSphere Command-Line Interface (vSphere
CLI) and/or vSphere Software Development Kit for Perl (vSphere SDK for Perl)
(collectively the "Software") to you subject to the following terms and
conditions.  If you disagree with any of the following terms, then do not
use the Software.

1.  The Software contains a variety of materials, interface definitions,
documentation, sample utility applications and sample code regarding
programming interfaces to one or more VMware products as referenced in such
materials ("VMware Products").  This Software is intended to be used to
execute supplied commands and utility applications and to create scripts
that interact with the VMware Products. 

2.  Use Rights:  Subject to the restrictions below, you may download and
make a reasonable number of copies of the Software contents for your use
solely for the purpose of creating software that communicates with VMware
Products ("Developer Software").  For vSphere SDK for Perl, some code may be
designated as "distributable code" and/or "modifiable code" at
http://www.vmware.com/go/vsdkperl-redistribution-info.  For vSphere CLI,
some code may be designated as "distributable code" and/ or "modifiable
code" at http://www.vmware.com/go/vcli-redistribution-info.  You may use and
merge all or portions of the "distributable code" with your Developer
Software.  Any merged portion of any "distributable code" is subject to this
Agreement.  Additionally, you may modify or create derivative works of all
or portions of the "modifiable code."  You are permitted to re-distribute
the "distributable code" and the modified or derivative works of the
"modifiable code" only as part of your Developer Software for non-commercial
or commercial use.  Open source software components provided with the
Software are licensed to you under the terms of the applicable license
agreements included with such open source software components.  The open
source software licenses can be found in the open_source_licenses.txt file,
other materials accompanying the Software, the documentation or
corresponding source files available at http://www.vmware.com/download/vi/open_source.html.

3.  Restrictions:  You agree that you will not (1) use the Software to
create, design or develop anything other than Developer Software; (2) make
any more copies of the Software than are reasonably necessary for the
authorized use and backup and archival purposes; (3) modify, create
derivative works of, reverse engineer, reverse compile, or disassemble the
Software, except as expressly permitted in Section 2; (4) distribute, sell,
lease, rent, lend, or sublicense any part of the Software to any third party
except as expressly permitted in Section 2 or; (5) use the Software to (a)
create, design or develop software or service to circumvent, enable, modify
or provide access, permissions or rights which would violate the technical

Do you accept? (yes/no) yes

Thank you.

ld: cannot find -lcrypto
Unable to link the Crypt::SSLeay Perl module.  Secured connections will be 
unavailable until you install the Crypt::SSLeay module.

In which directory do you want to install the executable files? 
[/usr/bin] 

Please wait while copying vSphere CLI files...

The installation of vSphere CLI 4.0.0 build-161974 for Linux completed 
successfully. You can decide to remove this software from your system at any 
time by invoking the following command: 
"/usr/bin/vmware-uninstall-vSphere-CLI.pl".

This installer has successfully installed both vSphere CLI and the vSphere SDK 
for Perl.

Enjoy,

--the VMware team

Crypt::SSLeay perlモジュールが無いと表示されたが、そのまま導入


vmware-cmdで確認してもエラーが発生している

# vmware-cmd --version
Can't locate URI.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at (eval 2) line 3.
Compilation failed in require at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/HTTP/Request.pm line 5.
Compilation failed in require at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/LWP/UserAgent.pm line 12.
BEGIN failed--compilation aborted at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/LWP/UserAgent.pm line 12.
Compilation failed in require at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 12.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 12.
Compilation failed in require at /usr/lib/perl5/5.8.8/VMware/VIRuntime.pm line 15.
Compilation failed in require at /usr/bin/vmware-cmd line 8.
BEGIN failed--compilation aborted at /usr/bin/vmware-cmd line 8.

不足しているperlモジュールの導入
# yum install perl-URI
# yum install perl-Crypt-SSLeay

エラーもなくなったので完了

0 件のコメント:

コメントを投稿