cpanel_json_xs command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cpanel_json_xs: command not found
or when using sudo you get the following error message
sudo: cpanel_json_xs: command not found
Solutions to cpanel_json_xs: command not found
How To Fix cpanel_json_xs: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cpanel_json_xs is provided by libcpanel-json-xs-perl package.
libcpanel-json-xs-perl is:
Cpanel::JSON::XS converts Perl data structures to JSON and vice versa. Its primary goal is to be correct and its secondary goal is to be fast. To reach the latter goal it was written in C.
As this is the n-th-something JSON module on CPAN, what was the reason to write yet another JSON module? While it seems there are many JSON modules, none of them correctly handle all corner cases, and in most cases their maintainers are unresponsive, gone missing, or not listening to bug reports for other reasons.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libcpanel-json-xs-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libcpanel-json-xs-perl.
sudo apt -y install libcpanel-json-xs-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libcpanel-json-xs-perl
Summary
In this tutorial we learn how to fix cpanel_json_xs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.