js78-config command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
js78-config: command not found
or when using sudo you get the following error message
sudo: js78-config: command not found
Solutions to js78-config: command not found
How To Fix js78-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu js78-config is provided by libmozjs-78-dev package.
libmozjs-78-dev is:
SpiderMonkey is the code-name for Mozilla Firefox’s C++ implementation of JavaScript. It is intended to be embedded in other applications that provide host environments for JavaScript.
This package contains the header files which are needed for developing SpiderMonkey embedders.
This library is intended for use in contexts where only trusted JavaScript code will be run, such as GNOME’s gjs, Cinnamon’s cjs, and polkit’s rules parsing. It should not be used to run untrusted JavaScript from web pages: use a security-supported implementation such as Firefox, Chrome or WebKitGTK’s JavaScriptCore instead.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libmozjs-78-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libmozjs-78-dev.
sudo apt -y install libmozjs-78-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libmozjs-78-dev
Summary
In this tutorial we learn how to fix js78-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.