-
Notifications
You must be signed in to change notification settings - Fork 187
Trouble installing on Mac OS Big Sur 11.0.1 "fatal error: 'al.h' file not found" #67
Comments
Hey, I'm facing the same issue. I'm running MacOS 11.0.1 (Darwin 20.1.0). I tried the fix mentioned at #28 (comment) but it didn't help. Apparently, there is no file/directory: [EDIT] I fixed the issue by making these changes: Followed the steps mentioned at #28 (comment).Made the following changes in
|
@ShivanshRakesh Thank you, this finally did the trick for me! |
For anyone who isn’t using Xcode but only the CLT, the appropriate path to use is: (Tested on macOS 11.1, CLT version 12.3.0.0.1.1607026830) |
@xrisk That didn't work for me. How did you install OpenAL? |
@jalemann what I meant is that you have to modify the paths in @ShivanshRakesh's comment in case you don't have the entire Xcode (but only the CLT). In addition, you have to implement the changes in #28, there are two modifications to be made in the source code. (Specifically in As for, the CLT itself -- you can get it from https://developer.apple.com/downloads/index.action (please note: you don't need this if you have Xcode installed). |
@xrisk Nvm did something wrong on the first attempt, did work now (same macOS and CLT versions). Thank you. |
Hi everyone, I'm on Big Sur and of course I encounter some issues while using pocketsphinx with Python... I followed your previous advices (changing al.h to OpenAL/al.h and Xcode trick to have Headers and openAL.tbd) and manage to install the package. However I have while executing a really simple program : I don't know what is it refering to, probably a library link ? Can someone help me with this please ? Thank you. EDIT : My problem was fixed by using this post https://github.com/bambocher/pocketsphinx-python/issues/28#issuecomment-849265015 (comment from Im-Fran) |
Thank you so much bro. |
Worked on macOS 12.0.1, thank you! |
Very useful, thank you very much! |
OMG this worked! Thank you a lot!!! |
Some trouble with installation on new Mac OS version
python3 -m pip install --upgrade pocketsphinx
and get:
........
deps/sphinxbase/src/libsphinxad/ad_openal.c:43:10: fatal error: 'al.h' file not found
#include <al.h>
^~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1
and if install from GitHub directly (Install with distutils) with changing al.h to OpenAL/al.h (and same for alc) get this
........
gcc -bundle -undefined dynamic_lookup -arch x86_64 -g build/temp.macosx-10.9-x86_64-3.7/swig/sphinxbase/ad_openal_wrap.o build/temp.macosx-10.9-x86_64-3.7/deps/sphinxbase/src/libsphinxad/ad_openal.o /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL -o build/lib.macosx-10.9-x86_64-3.7/sphinxbase/_ad_openal.cpython-37m-darwin.so
clang: error: no such file or directory: '/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL'
error: command 'gcc' failed with exit status 1
The text was updated successfully, but these errors were encountered: