Prev Up

zip/unzip

Pack and compress files. List/Test/Extract from a ZIP archive file.

Compilation

Straightforward. Unpack the source archive and follow the instructions in README,INSTALL.
Cleanup old stuff first, prior to a new compilation (also if flags have changed):
make -f unix/Makefile clean

unzip

# AIX 4.1 (no unicode, no large files):
make LOCAL_UNZIP="-O2 -qmaxmem=-1 -DNO_LARGE_FILE_SUPPORT -DNO_LCHMOD" -f unix/Makefile aix

# AIX >4.1:
make LOCAL_UNZIP="-O2 -qmaxmem=-1 -D_LARGE_FILES -D_LARGE_FILE_API -DNO_LCHMOD" -f unix/Makefile aix

zip 2.x

make LOCAL_ZIP="-O -D_LARGE_FILES -D_LARGE_FILE_API" -f unix/Makefile generic

zip 3.x

Optional bzip2 support support is explained in bzip2/install.txt.
# AIX 4.1 (no unicode, no large files):
make LOCAL_ZIP="-O2 -qmaxmem=-1 -DNO_ZIP64_SUPPORT -DNO_LARGE_FILE_SUPPORT -DNO_BZIP2_SUPPORT -DNO_UNICODE_SUPPORT" -f unix/Makefile generic

# AIX >4.1:
make LOCAL_ZIP="-O2 -D_LARGE_FILES -D_LARGE_FILE_API -DLARGE_FILE_SUPPORT -DZIP64_SUPPORT -DUNICODE_SUPPORT" -f unix/Makefile generic
After successful compilation, install into desired directory, for example:
make -f unix/Makefile install prefix=/tmp/unzip60/ # for unzip
make -f unix/Makefile install prefix=/tmp/zip30/   # for   zip

Last updated: Mon, May 13, 2013 10:14:28 AM , M.Kraemer