OpenVZ Forum


Home » General » Support » [solved] vzdump path problem to perl module
[solved] vzdump path problem to perl module [message #51519] Mon, 07 July 2014 08:05 Go to next message
digidax is currently offline  digidax
Messages: 30
Registered: March 2008
Member
Hello,

on a clean fresh install of CentOS 6.5 x86_64 I have problems with the path of the perl module:

[root@vhost1 ~]# vzdump
Can't locate LockFile/Simple.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/share/perl5/PVE/VZDump/OpenVZ.pm line 29.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/VZDump/OpenVZ.pm line 29.
Compilation failed in require at /usr/share/perl5/PVE/VZDump.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/VZDump.pm line 33.
Compilation failed in require at /usr/sbin/vzdump line 27.
BEGIN failed--compilation aborted at /usr/sbin/vzdump line 27.



Location of Simple.pm:
[root@vhost1 ~]# find /usr -name Simple.pm
/usr/share/perl5/Pod/Simple.pm
/usr/share/perl5/Filter/Simple.pm
/usr/lib/perl5/vendor_perl/5.8.8/LockFile/Lock/Simple.pm
/usr/lib/perl5/vendor_perl/5.8.8/LockFile/Simple.pm


So I have tried to set a symlink:
ln -s /usr/share/perl5/PVE/ /usr/lib/perl5/vendor_perl/5.8.8/PVE


But the problem was not solved with this:
[root@vhost1 ~]# vzdump
Can't locate LockFile/Simple.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/share/perl5/PVE/VZDump/OpenVZ.pm line 29.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/VZDump/OpenVZ.pm line 29.
Compilation failed in require at /usr/share/perl5/PVE/VZDump.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/VZDump.pm line 33.
Compilation failed in require at /usr/sbin/vzdump line 27.
BEGIN failed--compilation aborted at /usr/sbin/vzdump line 27.


Does anybody has some hints for me?

best regards
Frank

[Updated on: Tue, 08 July 2014 05:11]

Report message to a moderator

Re: vzdump path problem to perl module [message #51523 is a reply to message #51519] Tue, 08 July 2014 02:56 Go to previous messageGo to next message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior Member
What about:

If /usr/local/lib64/perl5 exists:

ln -s /usr/lib/perl5/vendor_perl/5.8.8/LockFile /usr/local/lib64/perl5/LockFile


If /usr/local/lib64/perl5 doesn't exist:

ln -s /usr/lib/perl5/vendor_perl/5.8.8 /usr/local/lib64/perl5



http://static.openvz.org/userbars/openvz-user-2.png
ByteOnSite President

[Updated on: Tue, 08 July 2014 02:58]

Report message to a moderator

Re: vzdump path problem to perl module [message #51524 is a reply to message #51523] Tue, 08 July 2014 05:11 Go to previous message
digidax is currently offline  digidax
Messages: 30
Registered: March 2008
Member
/usr/local/lib64/perl5 doesn't exist:

ln -s /usr/lib/perl5/vendor_perl/5.8.8 /usr/local/lib64/perl5


solved my problem with your help in CentOS 6.5 and vzdump works fine.

Many thanks for the great support.

best regards
Frank
Previous Topic: Is it possible to add a new ploop disk to an existing container residing on an OpenVZ host?
Next Topic: site-to-site VPN with OVZ
Goto Forum:
  


Current Time: Thu Mar 28 15:54:57 GMT 2024

Total time taken to generate the page: 0.02280 seconds