VMWARE-CLI for Linux

Source: Internet
Author: User
Tags install openssl uuid

    1. Modifying the environment variables of the system

vmware-install.pl agent issues appearing in the

Http_proxy=xxxxx

Ftp_proxy=xxxxx

Add HTTP, FTP environment variables to BASHRC or profile so that they can be used in global.

Export http_proxy= # #保持空值, don't fill anything

Export ftp_proxy= # #这样设置就是当前的session会话有效果而已, if you want global to function, add it to/ETC/BASHRC or/etc/profile.

Vim/etc/bashrc

#在最后面加入export这两行

Export http_proxy=

Export ftp_proxy=

After source, make it effective immediately:

Source/etc/bashrc

    1. Resolving dependencies

REDAHT6:

Yum Install Openssl-devel libxml2-devel e2fsprogs-devel

CentOS6:

Yum install make autoconf automake openssl-devel gcc gcc-c++ make Uuid-perl libuuid-devel uuid-devel perl-data-dump perl- Soap-lite perl-xml-sax perl-xml-namespacesupport perl-xml-libxml Perl-xml-libxml-common Perl-CPAN

Ubuntu:

X86:

Apt-get install build-essential gcc uuid uuid-dev perl libssl-dev perl-doc Liburi-perl Libxml-libxml-perl Libcrypt-ssleay -perl

X64:

Apt-get install ia32-libs build-essential gcc uuid uuid-dev perl libssl-dev perl-doc Liburi-perl Libxml-libxml-perl libcry Pt-ssleay-perl

When a dependency is not met in Ps:ubuntu, it can be installed with the Aptitude–f install.

    1. Solve the./vmware-install.pl uuid problem

Https://www.vmware.com/support/developer/viperltoolkit/doc/perl_toolkit_makinst_linux.html

Http://mirrors.aliyun.com/CPAN/modules/01modules.index.html

3.1 Manually compiling the required packages:

    • Devel-checklib-1.03.tar.gz

    • Extutils-makemaker-7.04.tar.gz

    • Io-captureoutput-1.1104.tar.gz # #这个是安装Devel中的依赖关系

    • Uuid-0.24.tar.gz # #这是主要的包

From the makefile.pl in the UUID, it is dependent on devel::checklib, Extutils::makemaker

Use strict;

Use warnings;

Use Devel::checklib;

Use Extutils::makemaker;

The compile commands are:

Perl makefile.pl

Pake

Pake Install

3.2 Install the CPAN module online (not all modules can be installed, some modules need to manually compile the installation, such as: UUID)

Perl–mcpan–e Shell

Cpan>m #列所有模块

Cpan>install Bundle::cpan

Cpan>q

    1. Install VCLI.

Corresponding version: (This is not direct, just a search results, you need to find the corresponding version to download.) )

Https://www.vmware.com/cn/support-search.html?cc=www&client=VMware_Site_support_center&site=VMware_ Site_support_center&cn=vmware&num=20&output=xml_no_dtd&ie=utf-8&oe=utf-8&q=vmware_ Vsphere_perl_sdk#client=vmware_site_support_center&numgm=4&getfields=*&filter=0&site=vmware_ Site_support_center&cc=en&ie=utf-8&oe=utf-8&start=0&num=20&cid=&tid=&cn=vmware &output=xml_no_dtd&q=vmware_vsphere_perl_sdk

Tar xvf vmware-vsphere-perl-sdk-5.1.0-780721.x86_64.tar.gz–c/tmp

Cd/tmp/vmware-vsphere-cli-distrib

./vmware-install.pl # #做完上面的操作之后, you can basically continue to install.

It is also compiled later:

Perl makefile.pl

Make

Make install

PS: This article is integrated, not completely original, if there is a similar, it can only say "We are too predestined ah."


This article is from the "Bckong" blog, make sure to keep this source http://bckong.blog.51cto.com/5092126/1660801

VMWARE-CLI for Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.