Snappy-java-1.0.4.1
- Download the source package.
1wget https://github.com/xerial/snappy-java/archive/snappy-java-1.0.4.1.tar.gz --no-check-certificate
- 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
- Go to the directory where the Snappy source package is decompressed.
1cd snappy-java-1.0.4.1
- Modify the Makefile file.
- Open the file.
1vi Makefile - 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
- 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)

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Perform the compilation.
1make
The generated JAR package after the compilation is stored in target/snappy-java-1.0.4.1.jar.
Parent topic: Compiling snappy-java