nspr-config command not found

In this troubleshooting guide we learn how to fix nspr-config command not found error message

Introduction

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

nspr-config: command not found

or when using sudo you get the following error message

sudo: nspr-config: command not found

Solutions to nspr-config: command not found

How To Fix nspr-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nspr-config is provided by libnspr4-dev package.

libnspr4-dev is:

This library provides platform independent non-GUI operating system facilities including:

  • threads,
  • thread synchronisation,
  • normal file I/O and network I/O,
  • interval timing and calendar time,
  • basic memory management (malloc and free),
  • shared library linking.

Install this package if you wish to develop your own programs using the NetScape Portable Runtime library.

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

sudo apt-get -y install libnspr4-dev

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

You can also use apt command to install libnspr4-dev.

sudo apt -y install libnspr4-dev

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

sudo aptitude install libnspr4-dev

Summary

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