SOLVED "perl <(curl -s https://raw.githubusercontent.com/..." result = "Can't locate Cpanel/Config/LoadWwwAcctConf.pm" how fixed?

000

Well-Known Member
Jun 3, 2008
549
30
78
Hello,

result after of some SHELL scripts is:
Code:
Can't locate
Cpanel/Config/LoadWwwAcctConf.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 /dev/fd/63 line 35.
BEGIN failed--compilation aborted at /dev/fd/63 line 35.
what we need install to fixed?

Thanks
 
Last edited:

000

Well-Known Member
Jun 3, 2008
549
30
78
Hey there! I'm going to need some more detail on this particular issue. Is there a specific API call you were running that led to this error? If not, can you let me know what script you are running that caused this?
Thanks I run using
Code:
perl <(curl -s https://raw.githubusercontent.com/cPanelTechs/CSI/master/...
and result ever is:
Code:
Can't locate
Cpanel/Config/LoadWwwAcctConf.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 /dev/fd/63 line 35.
BEGIN failed--compilation aborted at /dev/fd/63 line 35.
how we can fixed " Can't locate Cpanel/Config/LoadWwwAcctConf.pm " ??
 

andrew.n

Well-Known Member
Jun 9, 2020
982
363
63
EU
cPanel Access Level
Root Administrator
We don't see the full command as it's too long to be displayed. Which script are you trying to run exactly?
 

wintech2003

Well-Known Member
PartnerNOC
Sep 15, 2010
109
38
78
Greece
cPanel Access Level
DataCenter Provider
I guess you're trying to run the csi.pl script. Stupid question, but are you running this on a cPanel server?
What is the output of ls -la /usr/local/cpanel/3rdparty/bin/perl ?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,598
2,620
363
cPanel Access Level
Root Administrator
Could you try this slightly newer version instead?

Code:
/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/cPanelTechs/CSI/master/csi.pl)
That specifies that you use the cPanel perl to run that tool, which will likely be required :D
 
  • Like
Reactions: andrew.n

000

Well-Known Member
Jun 3, 2008
549
30
78
this on a cPanel server?
Thanks!
Code:
[root@pepsi ~]# /usr/local/cpanel/cpanel -V
92.0 (build 8)
[root@pepsi ~]#
What is the output of ls -la /usr/local/cpanel/3rdparty/bin/perl ?
Code:
[root@pepsi ~]# ls -la /usr/local/cpanel/3rdparty/bin/perl
lrwxrwxrwx. 1 root root 44 Sep 10 15:30 /usr/local/cpanel/3rdparty/bin/perl -> /usr/local/cpanel/3rdparty/perl/530/bin/perl
[root@pepsi ~]#
 

000

Well-Known Member
Jun 3, 2008
549
30
78
Could you try this slightly newer version instead?

Code:
/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/cPanelTechs/CSI/master/csi.pl)
excellent!,
now the script run PERFECT:
Code:
[root@pepsi ~]# /usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/cPanelTechs/CSI/master/lottery.number.winner.pl)
9875432198 day winner: 2021-02-12
[root@pepsi ~]#
:)

many thanks !