Rate This Document
Findability
Accuracy
Completeness
Readability

Failed to Decompress snappy-1.1.0.tar.gz or a Format Error Reported When Compiling snappy-java-1.1.0.1

Symptom

An error is reported during compilation:

1
2
3
gzip:stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Key Process and Cause Analysis

None

Conclusion and Solution

The handling procedure is the same. The following uses snappy-java-1.1.0.1 as an example.

  1. Go to the snappy-java-1.1.0.1/target directory and delete the TAR package that failed to be downloaded.
    1
    2
    cd snappy-java-1.1.0.1/target
    rm -rf snappy-1.1.1.tar.gz
    
  2. Comment out the address for downloading the Snappy package in the Makefile file.
    1. Open the Makefile file.
      1
      vi Makefile
      
    2. Press i to enter the insert mode and comment out the download address of the Snappy package.
      1
      2
      3
      4
      $(SNAPPY_ARCHIVE):
              @mkdir -p $(@D)
              #curl -os@ http://snappy.googlecode.com/files/snappy- $(VERSION).tar.gz
              #curl -os@ http://src.fedoraproject.org/repo/pkgs/snappy/snappy-.1.1.tar.gz/8887e3b7253b22a31f5486bca3cbclc2/snappy-$(VERSION) .tar.gz
      
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Manually download the corresponding snappy-1.1.0.tar.gz package.
    1
    wget http://src.fedoraproject.org/repo/pkgs/snappy/snappy-1.1.0.tar.gz/c8f3ef29b5281e78f4946b2d739cea4f/snappy-1.1.0.tar.gz --no-check-certificate