Solved

Upgrading json to latest?

Posted on 2014-12-29
4
130 Views
Last Modified: 2015-01-06
What are the steps needed to upgrade json to the latest version? We are running OTRS, and they have recommended that we upgrade json to the latest version (3.* .. )

Installed Packages
Name        : perl-JSON
Arch        : noarch
Version     : 2.15
Release     : 5.el6
Size        : 268 k
Repo        : installed
From repo   : base
Summary     : Parse and convert to JSON (JavaScript Object Notation)
URL         : http://search.cpan.org/dist/JSON/
License     : GPL+ or Artistic
Description : This module converts between JSON (JavaScript Object Notation) and Perl
            : data structure into each other. For JSON, see http://www.crockford.com/JSON/.

Open in new window


Is this done through cpan?

Running..

CentOS release 6.3 (Final)

Open in new window

0
Comment
Question by:meade470
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:FishMonger
ID: 40523654
The latest (newest) version of the perl JSON module is 2.90 (Oct 2013).  Since you referred to v 3.*, I'll assume you want the JSON_XS module v3.01 which was also release in Oct 2013.

JSON
JSON_XS

Fedora (i.e., CentOS) is always years behind in their releases.  So, you could install the latest version via the cpan tool.
e.g.,
[root@099-91-RKB-2 ~]# cpan JSON_XS
CPAN: Storable loaded ok
Going to read /home/rkb/.cpan/Metadata
  Database was generated on Thu, 11 Sep 2014 02:17:02 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  http://cpan.schatt.com/authors/01mailrc.txt.gz
....
....
....
0
 
LVL 2

Author Comment

by:meade470
ID: 40533585
Thanks for the response, but it shows no matching identifier:

none found
0
 
LVL 28

Accepted Solution

by:
FishMonger earned 500 total points
ID: 40533685
Sorry, that was due to a typo on my part.  Instead of the underscore, it should be 2 colons.

cpan JSON::XS
0
 
LVL 2

Author Closing Comment

by:meade470
ID: 40534222
Thanks! I think that was it!
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to count occurrences of each item in an array.

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question