尝试将其作为调试运行时测试它的ddclient错误

Rev*_*evo 6 perl json centos cloudflare

在全新安装centOS 6后,我尝试安装ddclient,以便我可以更新我在Cloudflare上的DNS记录,并且我已按照Cloudflare站点和其他站点上的指示正确配置它,当我尝试运行debug命令时

ddclient -daemon=0 -debug -verbose -noquiet
Run Code Online (Sandbox Code Playgroud)

我收到这个错误

FATAL:    Error loading the Perl module JSON::Any needed for cloudflare update.
Run Code Online (Sandbox Code Playgroud)

我尝试使用yum install perl-JSON安装perl-JSON,但什么也没做

小智 7

你可以试试

sudo cpan install JSON::Any
Run Code Online (Sandbox Code Playgroud)


Ant*_*nte 5

这已经过去了很长时间,但我在这里找到了与 Ubuntu 上相同问题的解决方案:https ://bugs.debian.org/cgi-bin/bugreport.cgi?bug=873750

添加 libjson-any-perl 可以满足此依赖性。

apt-get install libjson-any-perl 也是如此,现在没有错误了。

编辑:Cloudflare 更改了其 API 版本,因为这是 ddclient 不兼容的实际情况。