Missing Perl module JSON::PP Centos 7

hi, I'm trying to connect Dropbox for backup, but generates the following error Failed to get initial OAuth2 token : Missing Perl module JSON::PP

I installed by ssh "sudo yum install perl-JSON"

But it keeps giving me the same error message

Any idea for solve this problem?

Roby

Status: 
Closed (fixed)

Comments

Joe's picture
Submitted by Joe on Sun, 03/22/2015 - 17:56 Pro Licensee

Oh, right, I have been meaning to package this module.

I'd prefer it if we were using one of the more popular JSON libraries for Perl (JSON or JSON::XS are available in existing repositories for CentOS/Fedora, while there are no RPMS anywhere for JSON::PP), or bundled the JSON::PP module, but for now, we do need that library. I'll likely poke at that problem soon, but in the meantime, I will get this module into our repository sometime today.

Excuse my English is not very good, I did not understand how I have to do to fix it :)

Hi, can anyone help me to solve this problem?

Thanks Roby

Sorry for the delay -- Joe is working on creating a package for this, it should be available soon.

As a work-around, you can also run :

perl -MCPAN -e "install JSON::PP"

Joe's picture
Submitted by Joe on Mon, 03/23/2015 - 19:33 Pro Licensee

Yep, it'll be in the package repository in a few minutes. I'm building it as we speak.

Hi,

work perfectly great Job Many thanks

Roby

Hi, I'm unable to connect dropbox to my virtualmin, I get error: Failed to get initial OAuth2 token : Missing Perl module JSON::PP

Did you try one of the above methods for installing that package? If it didn't work properly, did you receive an error of some sort? Also, which distro/version are you using?

pawelkb's picture
Submitted by pawelkb on Tue, 06/21/2016 - 11:48

Hi. My distro is CentOS Linux 7.2.1511. I have got the same problem:

Failed to get initial OAuth2 token : Missing Perl module JSON::PP

I have tried to run perl -MCPAN -e "install JSON::PP" but I've got:

Can't locate CPAN.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 .).
BEGIN failed--compilation aborted.

.

So then I have entered the command: yum install perl-CPAN* and after that no more error :-)

Great, thanks for letting us know how you fixed it!