Page 1 of 1

Can't locate object method "new" via package "Crypt::CBC"

Posted: 03 Jan 2017, 12:19
by xic
Have a problem configuring CLUSTERING (csf: v9.28) with 'CentOs release 6.8'.

Have set the parameters 'CLUSTER_SENDTO, CLUSTER_RECVFROM, CLUSTER_POST, CLUSTER_KEY and CLUSTER_BLOCK'.

On machine 1 (CentOs release 7.3.1611) a test with the command 'csf --cping' give a valid output.
On machine 2 (CentOs release 6.8) same test gives the output 'Can't locate object method "new" via package "Crypt::CBC" at /usr/sbin/csf line 560'.

perl -MCPAN -e 'install Crypt::CBC' gives: 'Crypt::CBC is up to date (2.33)'.

What can I do to fix this?


Also try the suggestion from hellboy ('viewtopic.php?f=6&t=7068&p=20810&hilit=CBC#p20810'), But gives no output with the same test.

Re: Can't locate object method "new" via package "Crypt::CBC"

Posted: 21 Feb 2017, 19:34
by Silent Ninja
I had the same issue and it got fixed by adding use Crypt::CBC; (after the other uses), on the file /usr/sbin/csf

Perhaps it's best to wait for an official answer, but it should work just fine.