Open coreynorthcutt opened 1 year ago
credits for the solution go to @koromkorom
pip install --global-option=build_ext --global-option="-I/opt/homebrew/Cellar/protobuf/21.12/include" --global-option="-L/opt/homebrew/Cellar/protobuf/21.12/lib" gcld3
also if you create conda environment it should work
credits for the solution go to @koromkorom
pip install --global-option=build_ext --global-option="-I/opt/homebrew/Cellar/protobuf/21.12/include" --global-option="-L/opt/homebrew/Cellar/protobuf/21.12/lib" gcld3
also if you create conda environment it should work
Hey thank you for your solution -> I've mentioned the other solution but will copy it here for some lazy-guys like me. If that provided solution doesn't work for you try to install the gcld3/pycld3
package with these flags.(original author mentioned in the linked issue)
export LDFLAGS=-L/opt/homebrew/lib
export CPPFLAGS=-I/opt/homebrew/include
python -m pip install gcld3
Also, try using protobuf@21
as it's compatible with gcld3 because of the protoc being at 3.21
brew install protobuf@21
Then set these flags (preferably in your shell config):
export PATH="/opt/homebrew/opt/protobuf@21/bin:$PATH"
export CFLAGS='-I/opt/homebrew/opt/protobuf@21/include'
export LDFLAGS=-L/opt/homebrew/opt/protobuf@21/lib
Finally, try reinstalling the lib and see if that compiles now
@raphalupi
I've placed 21.7 version of protoc in my path and still receiving this error in windows
This looks to be extremely common, but after trying dozens of solutions, I'm still getting an error when installing gcld3.
First, here's the complete error output. I'm using the same recommended format that solved Issue #49 in this example:
The error with clang stands out: error: command '/usr/bin/clang' failed with exit code 1
This particular error appears no matter how I try to install cld. I get varying preceding error output, ie. if I try to pip install pycld3 instead... but the clang error is always there.
I've so far...