Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You need to install sth else before installing sphinx #402

Closed
sniperwrb opened this issue Jan 24, 2019 · 2 comments
Closed

You need to install sth else before installing sphinx #402

sniperwrb opened this issue Jan 24, 2019 · 2 comments

Comments

@sniperwrb
Copy link

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".

Steps to reproduce

Follow the instruction to install Sphinx (apt-get install a lot of things, and then pip install posketsphinx), but do not install libasound2-dev.

Expected behaviour

Installation complete.

Actual behaviour

After a ton of outputs, the last lines says:
deps/sphinxbase/src/libsphinxad/ad_alsa.c:76:28: fatal error: alsa/asoundlib.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

System information

My system is Ubuntu 16.04 LTS x64
My Python version is 3.5.2
My Pip version is 19.0.1
My SpeechRecognition library version is 3.8.1
I don't have PyAudio installed.
I installed PocketSphinx from pip.

@fygul
Copy link
Contributor

fygul commented Aug 11, 2019

Building PocketSphinx-Python from source was updated to include 'libasound2-dev'

It's OK to close this issue.

@ftnext
Copy link
Collaborator

ftnext commented Jul 26, 2022

Thanks a lot @fygul #396

@ftnext ftnext closed this as completed Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants