openassistant / oa-core

Open Assistant Core
http://openassistant.org
GNU General Public License v3.0
292 stars 77 forks source link

Installation does not work in Mac OS. #49

Open jlawgit opened 1 year ago

jlawgit commented 1 year ago

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 commented 1 year ago

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

           ^~~~~~
  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