exim: error while loading shared libraries: libperl.so

Vs Nu

Well-Known Member
Jul 17, 2015
178
12
68
India
cPanel Access Level
Root Administrator
I would like to run the below command as cron in my server

exim -bp|grep frozen|awk '{print $3}' |xargs exim -Mrm > /dev/null 2>&1

But when i run this command as cron 5 min once it it gives the below error

exim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory


but if it run it normally in terminal it was working

How to fix this ?

I'm facing this issue only after cP update
 
Last edited by a moderator:

quietFinn

Well-Known Member
Feb 4, 2006
2,023
542
493
Finland
cPanel Access Level
Root Administrator
Try to use full paths to the programs, i.e. /sbin/exim, /bin/grep, /bin/awk
 

Vs Nu

Well-Known Member
Jul 17, 2015
178
12
68
India
cPanel Access Level
Root Administrator
Try to use full paths to the programs, i.e. /sbin/exim, /bin/grep, /bin/awk
Same error while running as cron,but while running in terminal it was doing the job
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
Hey there! It seems like the issue is specifically with the "exim" command - can you restart the Exim service on the machine from the command line? If so, does that also give you the same error?

I would try running this command to make sure that all cPanel tools related to Exim are properly installed:

Code:
/scripts/check_cpanel_rpms
Can you try that and see if that resolves the issue?
 

Vs Nu

Well-Known Member
Jul 17, 2015
178
12
68
India
cPanel Access Level
Root Administrator
Hey there! It seems like the issue is specifically with the "exim" command - can you restart the Exim service on the machine from the command line? If so, does that also give you the same error?

I would try running this command to make sure that all cPanel tools related to Exim are properly installed:

Code:
/scripts/check_cpanel_rpms
Can you try that and see if that resolves the issue?

I had tried it but still it gives same issue

I'm getting the error only if i was running the command as cron..normally it was working
 

Vs Nu

Well-Known Member
Jul 17, 2015
178
12
68
India
cPanel Access Level
Root Administrator
It sounds like there might be a larger issue with Perl on the machine. If you'd like to open a ticket we could investigate that directly on the machine for you.
If you can share the commands i can do it

Opening ticket i need to inform my Sr and they need to do it but they are not available because of weekend