Pocketsphinx install fail? Raspberry Pi Zero (Raspbian Jessie)
If this still doesn't work, you should also try installing the following:
sudo apt-get install portaudio19-dev swig
I know for a fact that this error can also be caused by not having portaudio19-dev installed. Swig is also a requirement, but might throw another error. You might also need to install pulseaudio
to prevent a RuntimeError.
As mentioned by Peter Brittain, install libpulse-dev
on the machine. I can confirm this worked for me:
sudo apt-get install libpulse-dev