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.
- 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
- Comment out the address for downloading the Snappy package in the Makefile file.
- Open the Makefile file.
1vi Makefile - 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the Makefile file.
- Manually download the corresponding snappy-1.1.0.tar.gz package.
1wget http://src.fedoraproject.org/repo/pkgs/snappy/snappy-1.1.0.tar.gz/c8f3ef29b5281e78f4946b2d739cea4f/snappy-1.1.0.tar.gz --no-check-certificate
Parent topic: Rectifying Faults