Closed shahrokh-bahtooei closed 3 months ago
The problem still was with C clang
installation using Xcode Command Line Tools, not with Go as hinted in this comment: https://github.com/golang/go/issues/39232#issuecomment-633641304
Using ChatGPT-4o, I could finally troubleshoot this annoying error in these steps:
% sudo rm -rf /Library/Developer/CommandLineTools
% xcode-select --install
Then
% sudo softwareupdate --install --all
Then adding these lines to ~/.zshrc
:
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
export CPATH=$SDKROOT/usr/include:/Library/Developer/CommandLineTools/usr/include/c++/v1
and restarting the terminal.
Building this on macOS
Big Sur 11.7.10
raises this error:Xcode Command Line Tools is already up-to-date, and this is the version for
clang
:Isn't it possible to run it on Docker instead?