json_xs command not found

In this troubleshooting guide we learn how to fix json_xs command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

json_xs: command not found

or when using sudo you get the following error message

sudo: json_xs: command not found

Solutions to json_xs: command not found

How To Fix json_xs: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu json_xs is provided by libjson-xs-perl package.

libjson-xs-perl is:

JSON::XS is a module for manipulating data stored in the JavaScript Object Notation (JSON) serialization format (defined in RFC 4627), which serves as an alternative to XML.

This C/XS-accelerated JSON implementation confers significant performance gains if available. After installing this package, any code using the JSON module (see libjson-perl) will automagically benefit from this.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libjson-xs-perl

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libjson-xs-perl.

sudo apt -y install libjson-xs-perl

Or if you have aptitude installed you can use the following command.

sudo aptitude install libjson-xs-perl

Summary

In this tutorial we learn how to fix json_xs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.