pocketsphinx-python
pocketsphinx-python copied to clipboard
libsound-dev must be installed
You need: "apt-get install libasound2-dev" before "pip install pocketsphinx". Other wise you will get "fatal error: alsa/asoundlib.h: No such file or directory".
This should be in the installation instructions or requirements somewhere.
Resolution
apt install libasound2-dev
System information
My system is Windows wsl Debian 9.11 x64 My Python version is 3.6.9 My Pip version is 19.3.1
Error Message
deps/sphinxbase/src/libsphinxad/ad_alsa.c:76:28: fatal error: alsa/asoundlib.h: No such file or directory
#include <alsa/asoundlib.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1