11.1.1.3Schristos        ZLIB version 1.3.1 for OS/400 installation instructions
21.1Schristos
31.1Schristos1) Download and unpack the zlib tarball to some IFS directory.
41.1Schristos   (i.e.: /path/to/the/zlib/ifs/source/directory)
51.1Schristos
61.1.1.2Schristos   If the installed IFS command supports gzip format, this is straightforward,
71.1Schristoselse you have to unpack first to some directory on a system supporting it,
81.1Schristosthen move the whole directory to the IFS via the network (via SMB or FTP).
91.1Schristos
101.1Schristos2) Edit the configuration parameters in the compilation script.
111.1Schristos
121.1Schristos        EDTF STMF('/path/to/the/zlib/ifs/source/directory/os400/make.sh')
131.1Schristos
141.1SchristosTune the parameters according to your needs if not matching the defaults.
151.1SchristosSave the file and exit after edition.
161.1Schristos
171.1Schristos3) Enter qshell, then work in the zlib OS/400 specific directory.
181.1Schristos
191.1Schristos        QSH
201.1Schristos        cd /path/to/the/zlib/ifs/source/directory/os400
211.1Schristos
221.1Schristos4) Compile and install
231.1Schristos
241.1Schristos        sh make.sh
251.1Schristos
261.1SchristosThe script will:
271.1Schristos- create the libraries, objects and IFS directories for the zlib environment,
281.1Schristos- compile all modules,
291.1Schristos- create a service program,
301.1Schristos- create a static and a dynamic binding directory,
311.1Schristos- install header files for C/C++ and for ILE/RPG, both for compilation in
321.1Schristos  DB2 and IFS environments.
331.1Schristos
341.1SchristosThat's all. 
351.1Schristos
361.1Schristos
371.1SchristosNotes:  For OS/400 ILE RPG programmers, a /copy member defining the ZLIB
381.1Schristos                API prototypes for ILE RPG can be found in ZLIB/H(ZLIB.INC).
391.1Schristos                In the ILE environment, the same definitions are available from
401.1Schristos                file zlib.inc located in the same IFS include directory as the
411.1Schristos                C/C++ header files.
421.1Schristos                Please read comments in this member for more information.
431.1Schristos
441.1Schristos        Remember that most foreign textual data are ASCII coded: this
451.1Schristos                implementation does not handle conversion from/to ASCII, so
461.1.1.2Schristos                text data code conversions must be done explicitly.
471.1Schristos
481.1Schristos        Mainly for the reason above, always open zipped files in binary mode.
49