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