1266757Snp ZLIB version 1.2.13 for OS/400 installation instructions 2266757Snp 3266757Snp1) Download and unpack the zlib tarball to some IFS directory. 4266757Snp (i.e.: /path/to/the/zlib/ifs/source/directory) 5266757Snp 6266757Snp If the installed IFS command supports gzip format, this is straightforward, 7266757Snpelse you have to unpack first to some directory on a system supporting it, 8266757Snpthen move the whole directory to the IFS via the network (via SMB or FTP). 9266757Snp 10266757Snp2) Edit the configuration parameters in the compilation script. 11266757Snp 12266757Snp EDTF STMF('/path/to/the/zlib/ifs/source/directory/os400/make.sh') 13266757Snp 14266757SnpTune the parameters according to your needs if not matching the defaults. 15266757SnpSave the file and exit after edition. 16266757Snp 17266757Snp3) Enter qshell, then work in the zlib OS/400 specific directory. 18266757Snp 19266757Snp QSH 20266757Snp cd /path/to/the/zlib/ifs/source/directory/os400 21266757Snp 22266757Snp4) Compile and install 23266757Snp 24266757Snp sh make.sh 25266757Snp 26266757SnpThe script will: 27266757Snp- create the libraries, objects and IFS directories for the zlib environment, 28266757Snp- compile all modules, 29266757Snp- create a service program, 30266757Snp- create a static and a dynamic binding directory, 31266757Snp- install header files for C/C++ and for ILE/RPG, both for compilation in 32266757Snp DB2 and IFS environments. 33266757Snp 34266757SnpThat's all. 35266757Snp 36291665Sjhb 37266757SnpNotes: For OS/400 ILE RPG programmers, a /copy member defining the ZLIB 38266757Snp API prototypes for ILE RPG can be found in ZLIB/H(ZLIB.INC). 39266757Snp In the ILE environment, the same definitions are available from 40291665Sjhb file zlib.inc located in the same IFS include directory as the 41266757Snp C/C++ header files. 42266757Snp Please read comments in this member for more information. 43266757Snp 44266757Snp Remember that most foreign textual data are ASCII coded: this 45266757Snp implementation does not handle conversion from/to ASCII, so 46266757Snp text data code conversions must be done explicitly. 47266757Snp 48266757Snp Mainly for the reason above, always open zipped files in binary mode. 49266757Snp