# 由于官方的包仅能编译出 libsnappy.a,安装 libsnappy-dev,参考 https://packages.ubuntu.com/search?keywords=libsnappy-dev
apt install libsnappy-dev
wget https://github.com/kubo/snzip/releases/download/v1.0.5/snzip-1.0.5.tar.gz
tar xvfz snzip-1.0.5.tar.gz
cd snzip-1.0.5
./configure --with-default-format=snzip
make
make install
$ snzip -h
snzip 1.0.5
Usage: snzip [option ...] [file ...]
general options:
-c output to standard output, keep original files unchanged
-d decompress
-k keep (don't delete) input files
-t name file format name. see below. The default format is snzip.
-h give this help
raw_format option:
-s size size of input data when compressing.
The default value is the file size if available.
tuning options:
-b num internal block size in bytes
-B num internal block size. 'num'-th power of two.
-R num size of read buffer in bytes
-W num size of write buffer in bytes
-T trace for debug
supported formats:
NAME SUFFIX URL
---- ------ ---
framing2 sz https://github.com/google/snappy/blob/master/framing_format.txt
hadoop-snappy snappy https://code.google.com/p/hadoop-snappy/
raw raw https://github.com/google/snappy/blob/master/format_description.txt
iwa iwa https://github.com/obriensp/iWorkFileFormat/blob/master/Docs/index.md#snappy-compression
framing sz https://github.com/google/snappy/blob/0755c815197dacc77d8971ae917c86d7aa96bf8e/framing_format.txt
snzip snz https://github.com/kubo/snzip
snappy-java snappy https://github.com/xerial/snappy-java
snappy-in-java snappy https://github.com/dain/snappy
comment-43 snappy http://code.google.com/p/snappy/issues/detail?id=34#c43
We use cookies and similar methods to recognise visitors and remember preferences. We also use them to measure
campaign effectiveness and analyse site traffic.
By selecting 'Accept', you consent to the use of these methods by us and trusted third parties.