Install GzipSwift on Linux
mainTo use GzipSwift on Linux, you must ensure zlib is installed on your system.
- Install the zlib development package:
$ apt-get install zlib1g-dev- Add the package to your
Package.swift.
Troubleshooting Linker Errors:
If the Swift build fails with a linker error, check if libz.so exists in /usr/local/lib.
- If it is missing, reinstall
zlib. - If it is present, manually link the library by passing
-Xlinker -L/usr/local/libto yourswift buildcommand.