question about perl modules for transfer tool

LAZer

Well-Known Member
Jan 18, 2010
78
2
58
at net :D
Hi , I want to transfer an account from a directadmin vps to cpanel using ssh and root password. but in that directadmin vps it gives lots of errors regarding perl modules. I installed some of them by searching for them but I can't find info how to install Cpanel/DB.pm

when I go to /scripts and run ./pkgacct.server.hostname
it gives this error :

Can't locate Cpanel/DB.pm in @INC (@INC contains: /root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi /root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi /root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /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 /tmp/.perl-ppk-kJZblm/scripts/main.pl line 24.
BEGIN failed--compilation aborted at /tmp/.perl-ppk-kJZblm/scripts/main.pl line 24.

I run the same script in another directadmin vps and it works there.
I searched for DB.pm and it exists at
/usr/share/perl5/DB.pm
and file permission seems to be correct :
-rw-r--r--. 1 root root 19K Aug 2 2017 DB.pm



so how can I re-install this perl module?
 

LAZer

Well-Known Member
Jan 18, 2010
78
2
58
at net :D
Hi, Thanks for the answer. I couldn't fix the problem of that DirectAdmin VPS. so I zipped the public_html, and export/imported databases manually. and I transferred that host to the CPanel account.
 
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
Hello,

I'm glad to see you were able to solve the issue on your own. Let us know if you have any additional questions.

Thanks!