Installing PocketSphinx on a MAC OS X

I set up pocketsphinx successfully for python by:

brew install cmu-pocketsphinx
brew install swig
pip3 install --upgrade pip setuptools wheel
brew install openal-soft
cd /usr/local/include
ln -s /usr/local/Cellar/openal-soft/1.20.1/include/AL/* .    
pip3 install pocketsphinx

The last 4 commands come from this answer.

MacOS 10.14, Python 3.7.


There is a homebrew formula for pocketsphinx, which (just) installed fine on my system (Mountain Lion). Maybe try that? brew install cmu-pocketsphinx worked for me...