Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing python-snappy: snappy-c.h: No such file or directory

Tags:

python

gcc

I am using amazon ec2 ubuntu 11.04 server

 sudo pip install python-snappy  

also I tried to downloaded package and entered "sudo python setup.py install"

I got the error:

  running build   running build_ext   building 'snappy' extension   gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c snappymodule.cc -o build/temp.linux-x86_64-2.7/snappymodule.o   cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]   snappymodule.cc:31:22: fatal error: snappy-c.h: No such file or directory   compilation terminated.   error: command 'gcc' failed with exit status 1 

How i could get rid of this error?

source: https://github.com/andrix/python-snappy

like image 478
saravanan Avatar asked Jul 10 '12 14:07

saravanan


People also ask

What is Python snappy?

SnapPy is a package for studying the topology and geometry of 3-manifolds, with a focus on hyperbolic structures.


1 Answers

You can install Snappy C library with following commands:

DEB-based: sudo apt-get install libsnappy-dev

RPM-based: sudo yum install libsnappy-devel

Brew: brew install snappy

like image 133
2 revs, 2 users 60% Avatar answered Oct 14 '22 02:10

2 revs, 2 users 60%