1275793eaSopenharmony_ci ZLIB version 1.3.1 for OS/400 installation instructions 2275793eaSopenharmony_ci 3275793eaSopenharmony_ci1) Download and unpack the zlib tarball to some IFS directory. 4275793eaSopenharmony_ci (i.e.: /path/to/the/zlib/ifs/source/directory) 5275793eaSopenharmony_ci 6275793eaSopenharmony_ci If the installed IFS command supports gzip format, this is straightforward, 7275793eaSopenharmony_cielse you have to unpack first to some directory on a system supporting it, 8275793eaSopenharmony_cithen move the whole directory to the IFS via the network (via SMB or FTP). 9275793eaSopenharmony_ci 10275793eaSopenharmony_ci2) Edit the configuration parameters in the compilation script. 11275793eaSopenharmony_ci 12275793eaSopenharmony_ci EDTF STMF('/path/to/the/zlib/ifs/source/directory/os400/make.sh') 13275793eaSopenharmony_ci 14275793eaSopenharmony_ciTune the parameters according to your needs if not matching the defaults. 15275793eaSopenharmony_ciSave the file and exit after edition. 16275793eaSopenharmony_ci 17275793eaSopenharmony_ci3) Enter qshell, then work in the zlib OS/400 specific directory. 18275793eaSopenharmony_ci 19275793eaSopenharmony_ci QSH 20275793eaSopenharmony_ci cd /path/to/the/zlib/ifs/source/directory/os400 21275793eaSopenharmony_ci 22275793eaSopenharmony_ci4) Compile and install 23275793eaSopenharmony_ci 24275793eaSopenharmony_ci sh make.sh 25275793eaSopenharmony_ci 26275793eaSopenharmony_ciThe script will: 27275793eaSopenharmony_ci- create the libraries, objects and IFS directories for the zlib environment, 28275793eaSopenharmony_ci- compile all modules, 29275793eaSopenharmony_ci- create a service program, 30275793eaSopenharmony_ci- create a static and a dynamic binding directory, 31275793eaSopenharmony_ci- install header files for C/C++ and for ILE/RPG, both for compilation in 32275793eaSopenharmony_ci DB2 and IFS environments. 33275793eaSopenharmony_ci 34275793eaSopenharmony_ciThat's all. 35275793eaSopenharmony_ci 36275793eaSopenharmony_ci 37275793eaSopenharmony_ciNotes: For OS/400 ILE RPG programmers, a /copy member defining the ZLIB 38275793eaSopenharmony_ci API prototypes for ILE RPG can be found in ZLIB/H(ZLIB.INC). 39275793eaSopenharmony_ci In the ILE environment, the same definitions are available from 40275793eaSopenharmony_ci file zlib.inc located in the same IFS include directory as the 41275793eaSopenharmony_ci C/C++ header files. 42275793eaSopenharmony_ci Please read comments in this member for more information. 43275793eaSopenharmony_ci 44275793eaSopenharmony_ci Remember that most foreign textual data are ASCII coded: this 45275793eaSopenharmony_ci implementation does not handle conversion from/to ASCII, so 46275793eaSopenharmony_ci text data code conversions must be done explicitly. 47275793eaSopenharmony_ci 48275793eaSopenharmony_ci Mainly for the reason above, always open zipped files in binary mode. 49