1 1.1.1.3 christos ZLIB version 1.3.1 for OS/400 installation instructions 2 1.1 christos 3 1.1 christos 1) Download and unpack the zlib tarball to some IFS directory. 4 1.1 christos (i.e.: /path/to/the/zlib/ifs/source/directory) 5 1.1 christos 6 1.1.1.2 christos If the installed IFS command supports gzip format, this is straightforward, 7 1.1 christos else you have to unpack first to some directory on a system supporting it, 8 1.1 christos then move the whole directory to the IFS via the network (via SMB or FTP). 9 1.1 christos 10 1.1 christos 2) Edit the configuration parameters in the compilation script. 11 1.1 christos 12 1.1 christos EDTF STMF('/path/to/the/zlib/ifs/source/directory/os400/make.sh') 13 1.1 christos 14 1.1 christos Tune the parameters according to your needs if not matching the defaults. 15 1.1 christos Save the file and exit after edition. 16 1.1 christos 17 1.1 christos 3) Enter qshell, then work in the zlib OS/400 specific directory. 18 1.1 christos 19 1.1 christos QSH 20 1.1 christos cd /path/to/the/zlib/ifs/source/directory/os400 21 1.1 christos 22 1.1 christos 4) Compile and install 23 1.1 christos 24 1.1 christos sh make.sh 25 1.1 christos 26 1.1 christos The script will: 27 1.1 christos - create the libraries, objects and IFS directories for the zlib environment, 28 1.1 christos - compile all modules, 29 1.1 christos - create a service program, 30 1.1 christos - create a static and a dynamic binding directory, 31 1.1 christos - install header files for C/C++ and for ILE/RPG, both for compilation in 32 1.1 christos DB2 and IFS environments. 33 1.1 christos 34 1.1 christos That's all. 35 1.1 christos 36 1.1 christos 37 1.1 christos Notes: For OS/400 ILE RPG programmers, a /copy member defining the ZLIB 38 1.1 christos API prototypes for ILE RPG can be found in ZLIB/H(ZLIB.INC). 39 1.1 christos In the ILE environment, the same definitions are available from 40 1.1 christos file zlib.inc located in the same IFS include directory as the 41 1.1 christos C/C++ header files. 42 1.1 christos Please read comments in this member for more information. 43 1.1 christos 44 1.1 christos Remember that most foreign textual data are ASCII coded: this 45 1.1 christos implementation does not handle conversion from/to ASCII, so 46 1.1.1.2 christos text data code conversions must be done explicitly. 47 1.1 christos 48 1.1 christos Mainly for the reason above, always open zipped files in binary mode. 49