The Acu4GL for DB2 product on UNIX is an add-on module that must be linked with the ACUCOBOL-GT runtime system. For this reason, you'll need a C compiler to install the Acu4GL product. To interface, you must use the ACUCOBOL-GT compiler and runtime, and the version of the runtime must match the version of Acu4GL.
The Acu4GL product is shipped using either TAR or CPIO format, depending on the type of machine you have. The label on the medium shipped to you tells you which format has been used.
From your Acucorp directory, choose where you want to install the Acu4GL product (or create a new directory for it) and then enter one of the following commands:
tar xfv device
Or:
cpio -icvBd < device
This will copy the files from the distribution medium to your ACUCOBOL-GT directory structure. device is the appropriate hardware device name (for example, /dev/rdiskette or /dev/rmt0). Sites using Texas Instruments System 1500 should add an uppercase "T" to the cpio options (-icvBdT).
Each Acu4GL product has its own license file, which must be located in the same directory as the ACUCOBOL-GT runtime. For DB2, the license file is distributed with the name "runcbl.klc".
CFLAGS = $(ACUSERVER_FLAGS) $(ACUCONNECT_FLAGS) $(ACUSQL_FLAGS) -DACU4GL -DUSE_DB2
FSI_SUBS = a4db2.o
FSI_LIBS = $(ACU_LIBDIR)/libexpat.a <ibm DB2 directory>/lib/libdb2.so
make
This compiles "sub.c" and "filetbl.c", and then links the runtime system.
./runcbl -vv
This returns version information on all of the products linked into your runtime system. Make sure it reports the version of Acu4GL for DB2.
If you have relinked the ACUCOBOL-GT runtime and receive an error message of this type when you try to execute it:
"Could not load library; no such file or directory" "Can't open shared library . . . "
Tthis may mean that your operating system is using shared libraries and cannot find them. This can occur even if the shared libraries reside in the same directory in which you are currently located.
Set the environment variable LD_LIBRARY_PATH to find these shared libraries.