我正在尝试从命令行运行VMware的VSphere Perl API中的vmcreate.pl。
/etc/VMware/VMware\ vSphere\ CLI/Perl/apps/vm/vmcreate.pl --url {url} --username {username} --password {password} --filename vmcreate.xml
其中vmcreate.xml指定vmcreate.pl的参数,这些参数是要创建的vm的规范。但是,执行时,我收到此错误:
Can't locate VMware/VIRuntime.pm in @INC (@INC contains: /etc/VMware/VMware vSphere CLI/Perl/apps/vm/../ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /etc/VMware/VMware vSphere CLI/Perl/apps/vm/vmcreate.pl line 12.
BEGIN failed--compilation aborted at /etc/VMware/VMware vSphere CLI/Perl/apps/vm/vmcreate.pl line 12.
以下是@INC包含的可读性新行列表:
我将整个SDK上传到服务器上,所以我很确定它的所有依赖项都在那里,而且他们已经正确管理了这些路径。