1. Git clone –recursive github.com/google/leve…
  2. Follow the official installation steps. An error message may be displayed after the installation is complete
  3. This is a package of Google compression
  4. sudo yum install snappy
  5. sudo g++ demo.cc -o test /usr/local/lib/libleveldb.a -lpthread -std=c++11 -lsnappy