Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ddclient error when trying to run it as debug to test it

After a fresh install of centOS 6 i tried to install ddclient so i can update my DNS records on Cloudflare and I have configured it correctly as instructed on the Cloudflare site and other sites, when i try to run the debug command

ddclient -daemon=0 -debug -verbose -noquiet

I get this error

FATAL:    Error loading the Perl module JSON::Any needed for cloudflare update.

And I tried to install perl-JSON using yum install perl-JSON but did nothing

like image 932
Revo Avatar asked Oct 06 '15 21:10

Revo


2 Answers

You can try

sudo cpan install JSON::Any
like image 146
Kostas D Avatar answered Nov 14 '22 21:11

Kostas D


This is a long time passed, but I found a solution to the same issue I had on Ubuntu here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=873750

Adding libjson-any-perl satisfies this dependency.

So did apt-get install libjson-any-perl and now there is no error.

Edit: Cloudflare changed its API version since this was actual which ddclient is not compatible with.

like image 4
Ante Avatar answered Nov 14 '22 22:11

Ante