Question

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?

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top