Rate This Document
Findability
Accuracy
Completeness
Readability

Snappy-java-1.0.4.1

  1. Download the source package.
    1
    wget https://github.com/xerial/snappy-java/archive/snappy-java-1.0.4.1.tar.gz --no-check-certificate
    
  2. Decompress the source package.
    1
    2
    tar -zxvf snappy-java-1.0.4.1.tar.gz
    mv snappy-java-snappy-java-1.0.4.1 snappy-java-1.0.4.1
    
  3. Go to the directory where the Snappy source package is decompressed.
    1
    cd snappy-java-1.0.4.1
    
  4. Modify the Makefile file.
    1. Open the file.
      1
      vi Makefile
      
    2. Press i to enter the insert mode. In the Makefile file, modify the download URL of the Snappy package (comment out the original download URL and add the new one).
      #curl -o$@ http://snappy.googlecode.com/files/snappy-$(VERSION).tar.gz
      curl -o$@ http://src.fedoraproject.org/lookaside/pkgs/snappy/snappy-1.0.4.tar.gz/b69151652e82168bc5c643bcd6f07162/snappy-$(VERSION).tar.gz
    3. In the Makefile file, modify the decompression command (comment out the original decompression command and add the new one).
      # $(TAR) xvfz $< -C $(TARGET)
      $(TAR) xvf $< -C $(TARGET)

    4. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Perform the compilation.
    1
    make
    

    The generated JAR package after the compilation is stored in target/snappy-java-1.0.4.1.jar.