Submitted by zerocoldgm on Sun, 03/22/2015 - 17:53
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
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.
Submitted by zerocoldgm on Sun, 03/22/2015 - 18:08 Comment #2
Excuse my English is not very good, I did not understand how I have to do to fix it :)
Submitted by zerocoldgm on Mon, 03/23/2015 - 18:56 Comment #3
Hi, can anyone help me to solve this problem?
Thanks Roby
Submitted by andreychek on Mon, 03/23/2015 - 19:08 Comment #4
Sorry for the delay -- Joe is working on creating a package for this, it should be available soon.
Submitted by JamieCameron on Mon, 03/23/2015 - 19:28 Comment #5
As a work-around, you can also run :
perl -MCPAN -e "install JSON::PP"
Yep, it'll be in the package repository in a few minutes. I'm building it as we speak.
Submitted by zerocoldgm on Tue, 03/24/2015 - 06:33 Comment #7
Hi,
work perfectly great Job Many thanks
Roby
Submitted by naymonge on Sun, 03/27/2016 - 00:41 Comment #8
Hi, I'm unable to connect dropbox to my virtualmin, I get error: Failed to get initial OAuth2 token : Missing Perl module JSON::PP
Submitted by andreychek on Sun, 03/27/2016 - 09:39 Comment #9
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?
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 :-)Submitted by andreychek on Tue, 06/21/2016 - 12:14 Comment #11
Great, thanks for letting us know how you fixed it!