4

I was looking at Avro RPC for Python at https://github.com/phunt/avro-rpc-quickstart#python. Seems the package libsnappy-dev is available only in Ubuntu/Debian. Is there a equivalent package for Mac OS X that can be installed via brew?

Raj
  • 22,346
  • 14
  • 99
  • 142

1 Answers1

14

An equivalent of the Ubuntu libsnappy-dev package is simply snappy, you can install it like this:

brew install snappy

Optionally, you might need to add links to the libraries in /usr/local/lib so other packages can link to it:

 cd /usr/local/lib/
 ln -s /usr/local/Cellar/snappy/1.1.1/lib/libsnappy.1.dylib
 ln -s /usr/local/Cellar/snappy/1.1.1/lib/libsnappy.a
 ln -s /usr/local/Cellar/snappy/1.1.1/lib/libsnappy.dylib
Svend
  • 6,352
  • 1
  • 25
  • 38
  • 1
    This came up when searching for why qemu was looking for libsnappy on Mac OSX and not finding it. The above answer works as a solution. – Luke Chadwick Dec 19 '18 at 21:15