npth-config command not found

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

Introduction

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

npth-config: command not found

or when using sudo you get the following error message

sudo: npth-config: command not found

Solutions to npth-config: command not found

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

In Ubuntu npth-config is provided by libnpth0-dev package.

libnpth0-dev is:

nPth is a non-preemptive threads implementation using an API very similar to the one known from GNU Pth. It has been designed as a replacement of GNU Pth for non-ancient operating systems. In contrast to GNU Pth it is based on the system’s standard threads implementation. Thus nPth allows the use of libraries which are not compatible to GNU Pth.

This package contains the headers and static libraries for libnpth0.

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

sudo apt-get -y install libnpth0-dev

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

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

sudo apt -y install libnpth0-dev

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

sudo aptitude install libnpth0-dev

Summary

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