Prev Up (Under construction)

7-zip

7z - A file archiver with highest compression ratio.

Compilation (V9.20.1)

  1. Consult the README file.
  2. Adapt makefile to your needs. I found it useful to a temporary installation directory:
    DEST_HOME=/tmp/p7zip_9.20.1/
    
    DEST_BIN=$(DEST_HOME)/bin
    DEST_SHARE=$(DEST_HOME)/lib/p7zip
    DEST_SHARE_DOC=$(DEST_HOME)/share/doc/p7zip
    DEST_MAN=$(DEST_HOME)/man
    
  3. Copy the best matching makefile.your-platform to makefile.machine and modify it to your needs, see below.
  4. Run the compilation:
    make all_test
    make install
    
    It needs a lot of RAM (between 256MB and 512MB), so it might be necessary to raise ulimit -d

AIX

Adapt makefile.machine for the native compiler:
OPTFLAGS=-O3 -qstrict

ALLFLAGS=${OPTFLAGS} \
        -D_LARGEFILE_SOURCE -D_LARGE_FILES -qcpluscmt \
        -DNDEBUG -D_REENTRANT -DENV_UNIX \
        $(LOCAL_FLAGS)

CXX=xlC $(ALLFLAGS)
CC=cc $(ALLFLAGS)
CC_SHARED=
LINK_SHARED=-G
Change $(MAKE) -C directory into (cd directory; $(MAKE) ...
AIX native C RTL doesn't have timegm, so in CPP/myWindows/config.h:
    #if !defined(sun) && !defined(_AIX)
      #define ENV_HAVE_TIMEGM
    #endif

Installation and configuration

After installation, for whatever reason, the bin subdirectory has only "trivial" wrapper scripts for the archivers 7z, 7zr, 7za, with hard coded paths to their true location. Either replace them with proper links, or insert some extra statements, e.g.:
   temp=`dirname $0`
   path=`dirname $temp`
   "$path/lib/p7zip/7zr" "$@"

Last updated: Thu Feb 28 16:40:18 CET 2013 , M.Kraemer

Impressum Data privacy protection