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

Installation does not work in Mac OS. #49

Open
jlawgit opened this issue Mar 14, 2023 · 1 comment
Open

Installation does not work in Mac OS. #49

jlawgit opened this issue Mar 14, 2023 · 1 comment

Comments

@jlawgit
Copy link

jlawgit commented Mar 14, 2023

The linking process did not work, and the subsequent command
Following the instruction, from the command "ln -s ...."

To Reproduce
(base) ➜ Downloads echo 'export PATH="/opt/homebrew/opt/openal-soft/bin:$PATH"' >> ~/.zshrc
(base) ➜ Downloads ln -s /usr/local/Cellar/openal-soft/1.20.1/include/AL/* /usr/local/include
zsh: no matches found: /usr/local/Cellar/openal-soft/1.20.1/include/AL/*
(base) ➜ Downloads pip3 install git+https://github.com/Im-Fran/pocketsphinx-python

@fbaube
Copy link

fbaube commented Mar 21, 2023

On my system (2023.03)
ln -s /usr/local/Cellar/openal-soft/1.23.0/include/AL/* /usr/local/include
but then the command
pip3 install git+https://github.com/Im-Fran/pocketsphinx-python
fails with

creating build/temp.macosx-12-x86_64-cpython-310/swig/sphinxbase
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/usr/local/opt/libxml2/include -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/usr/local/Cellar/openal-soft/1.21.1/include/AL -I/usr/local/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c deps/sphinxbase/src/libsphinxad/ad_openal.c -o build/temp.macosx-12-x86_64-cpython-310/deps/sphinxbase/src/libsphinxad/ad_openal.o -Wno-macro-redefined -Wno-sign-compare -Wno-logical-op-parentheses
deps/sphinxbase/src/libsphinxad/ad_openal.c:43:10: fatal error: 'al.h' file not found
#include <al.h>
^~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pocketsphinx
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

but the link to al.h worked:
$ ls -l /usr/local/include/al.h
lrwxr-xr-x 1 me staff 52 Mar 21 19:46 /usr/local/include/al.h -> /usr/local/Cellar/openal-soft/1.23.0/include/AL/al.h

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

2 participants