-
-
Save rajkrrsingh/77f3c4d20c109c96a3e9b36c224c6b3d to your computer and use it in GitHub Desktop.
$wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.bz2 | |
$tar xvf protobuf-2.5.0.tar.bz2 | |
$cd protobuf-2.5.0 | |
$./configure CC=clang CXX=clang++ CXXFLAGS='-std=c++11 -stdlib=libc++ -O3 -g' LDFLAGS='-stdlib=libc++' LIBS="-lc++ -lc++abi" | |
$make -j 4 | |
$sudo make install | |
$protoc --version |
It won't work unfortunately because protobuf@2.5 formula has been deprecated.
thank you very much. big time saver
thanks a lot.
thanks. it still works at Mojave.
Awesome, Thanks @rajkrrsingh !!
Extremely helpful <3
Try brew install protobuf
Hi there, anyone could help to have the new version of "https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.bz2" as it appears too old to install protobuf on macOS now thank you in advance, Edina
I tried brew install protobuf, then brew link --overwrite protobuf it works on Macos with protobuf /3.10.1
~ brew install protobuf
➜ ~ protoc --version
libprotoc 3.11.0
For those who running on Mac OS Mojave 10.14 ran into error while running this line:
./configure CC=clang CXX=clang++ CXXFLAGS='-std=c++11 -stdlib=libc++ -O3 -g' LDFLAGS='-stdlib=libc++' LIBS="-lc++ -lc++abi"
The fix is to install macOS_SDK_headers_for_macOS
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
# If you are still not be able to install this, probably you have to manually remove the /Library/Developer/CommandLineTools to install the latest version
# (Optional) : In case of failure
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
Thanks so much. Got it working.
good!
It works on my Mac, Thanks a lot!
Thank you!
It works perfectly on my Mac. Thanks you very much..
Needed to install protobuf 3.13.0 with 3.14.0 currently installed on Catalina 10.15.7–worked perfectly!
Anyone got this working on Apple silicon?
Thanks a lot!
Still working !!!
Thank you!
Failed on mac big sur, exception like this:
./google/protobuf/stubs/atomicops_internals_macosx.h:158:43: error: unknown type name 'Atomic64'; did you mean 'Atomic32'?
Atomic64 increment) {
^~~~~~~~
Atomic32
Does anyone have an idea?
Anyone got this working on Apple silicon?
No works
Failed on mac big sur, exception like this:
./google/protobuf/stubs/atomicops_internals_macosx.h:158:43: error: unknown type name 'Atomic64'; did you mean 'Atomic32'?
Atomic64 increment) {
^~~~~~~~
Atomic32
Does anyone have an idea?
me too
Failed on mac big sur, exception like this:
./google/protobuf/stubs/atomicops_internals_macosx.h:158:43: error: unknown type name 'Atomic64'; did you mean 'Atomic32'?
Atomic64 increment) {
^~~~~~~~
Atomic32
Does anyone have an idea?
Have you solved it?
./google/protobuf/stubs/atomicops_internals_macosx.h:157:52: error: unknown type name 'Atomic64'; did you mean 'Atomic32'?
inline Atomic64 NoBarrier_AtomicIncrement(volatile Atomic64* ptr,
^~~~~~~~
Atomic32
Thanks
Thanks! It worked on my macOS Catalina v10.16.7
Failed on mac big sur, exception like this:
./google/protobuf/stubs/atomicops_internals_macosx.h:158:43: error: unknown type name 'Atomic64'; did you mean 'Atomic32'?
Atomic64 increment) {
^~~~~~~~
Atomic32
Does anyone have an idea?Have you solved it?
I find it worked following protocolbuffers/protobuf#8836 (comment)
try it:
brew install protobuf@2.5
:)