smpeg-config command not found

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

Introduction

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

smpeg-config: command not found

or when using sudo you get the following error message

sudo: smpeg-config: command not found

Solutions to smpeg-config: command not found

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

In Ubuntu smpeg-config is provided by libsmpeg-dev package.

libsmpeg-dev is:

SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library with sound support. Video playback is based on the ubiquitous Berkeley MPEG player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video, and MPEG system streams.

This package contains the development files (headers and static libraries) for libsmpeg. It is only needed if you want to compile programs that use SMPEG.

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

sudo apt-get -y install libsmpeg-dev

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

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

sudo apt -y install libsmpeg-dev

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

sudo aptitude install libsmpeg-dev

Summary

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