Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Avro in Mac OS X

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?

like image 673
Lenin Raj Rajasekaran Avatar asked Dec 11 '22 06:12

Lenin Raj Rajasekaran


1 Answers

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
like image 127
Svend Avatar answered Dec 13 '22 21:12

Svend