zoukankan      html  css  js  c++  java
  • snappy 在linux安装及使用

    下载安装snappy库

    If you didn't install snappy under /usr or /usr/local, you need to specify the location by --with-snappy as follows.

    # download snappy
    http://pkgs.fedoraproject.org/repo/pkgs/snappy/
    
    # install snappy
    tar xvfz snappy-1.1.3.tar.gz
    cd snappy-1.1.3
    ./configure --prefix=/usr/local/snappy
    make
    make install

    Step2 : 下载安装snzip命令

    # download snzip
    https://bintray.com/kubo/generic/snzip,
    
    # install snzip
    tar xvfz snzip-1.0.4.tar.gz
    cd snzip-1.0.4
    ./configure --with-snappy=/usr/local/snappy
    make
    make install

    You can use --with-default-format to change the default compression format.

    ./configure --with-default-format=snzip
    [root@test1 ~]# snzip -h
    snzip 1.0.4
    
      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 framing2.
       -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/
        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
    [root@test1 ~]# 
  • 相关阅读:
    高精度入门(减法、加法、乘法)之 CODE[VS] 3115、3116、3117
    DP经典 之 CODE[VS] 1576 最长严格上升子序列 (O(n^2) 和 O(nlogn))
    CODE[VS] 1098 均分纸牌 ( 2002年NOIP全国联赛提高组)
    C++ string 与 int 等类型 的相互转换
    组合数学 + 大数乘法 + 大数除法 之 hdu 1261 字串数
    自然语言理解 之 统计词频
    Leetcode_10【正则表达式匹配】
    01——字符串反转
    Leetcode_09【回文数】
    Leetcode_07【整数反转】
  • 原文地址:https://www.cnblogs.com/yankang/p/10636562.html
Copyright © 2011-2022 走看看