Home > HowTo, Linux > Can't locate VMware/VmPerl.pm

Can't locate VMware/VmPerl.pm

Reinstall Perl in ESX

Error: Can’t locate VMware/VmPerl.pm
#vmare-cmd stop working along with all scripts that depend on VMware.pm module.
For some reason my perl VMWare::Perl stoped working, so I reinstall perl 5.8.0 version from scratch
first download it, then do:
#sh Configure -Dusethreads -Duseithreads -Dusemultiplicity -Duselargefiles -Dotherlibdirs=/usr/lib/perl5/5.8.0
#make test
#make
#make install
i was Still getting an error like:

Can’t locate VMware/VmPerl.pm in @INC (@INC contains: blib/arch -Iblib/lib -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 -I. /usr/local/lib/perl5/5.8.0/i686-linux-thread-multi /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi;/usr/lib/perl5/5.8.0;/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi;/usr/lib/perl5/site_perl/5.8.0;/usr/lib/perl5/site_perl;/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi;/usr/lib/perl5/vendor_perl/5.8.0;/usr/lib/perl5/vendor_perl;/usr/lib/perl5/5.8.0/i386-linux-thread-multi;/usr/lib/perl5/5.8.0 . blib/arch blib/lib /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 .) at /usr/bin/vmware-cmd line 133.
/usr/bin/vmware-cmd requires the VMware::VmPerl Perl libraries to be installed.
Check that your installation did not encounter errors.

So we need to copy VMware specific modules to current libpath:
# scp -rp /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/VMWare /usr/local/lib/perl5/5.8.0/i686-linux-thread-multi/
# scp -rp /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto /usr/local/lib/perl5/5.8.0/i686-linux-thread-multi/
That should do the trick
To find out more about your perl installation do:
#perl -V

Another way to avoid all these mess, is to set the correct VMWare Perl libs folder using a system enviroment variable like:
export PERL5LIB=/usr/lib/perl5/5.8.0/i386-linux-thread-multi:/usr/lib/perl5/5.8.0:/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi:/usr/lib/perl5/site_perl/5.8.0:/usr/lib/perl5/site_perl:/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi:/usr/lib/perl5/vendor_perl/5.8.0:/usr/lib/perl5/vendor_perl:/usr/lib/perl5/5.8.0/i386-linux-thread-multi:/usr/lib/perl5/5.8.0

reference: http://www.perl.com/pub/a/2002/04/10/mod_perl.html?page=2

  1. No comments yet.
  1. No trackbacks yet.

VAMOVE *

*