KB Article #44149

How to rebuild the Perl exits on UNIX

Problem

Usual way to rebuild (recompile) the Perl exits on UNIX


Resolution


Sometimes (after installing a patch, for example), you have to rebuild the exit program.
The usual way to do so is as follows. (In the instructions below, GWHOME represents the folder where Gateway is installed.)

$ cd GWHOME/run_time/etc
$ . ./profile
(dot space dot slash profile)
$ cd ../../src
$ ./userprof.sh
$ ./userbuild.sh
(you may have to first set execute permissions on this)


If there appears a message to the effect that gcc is not installed, you'll have to install that using the OS package installation utility (pkg install, yum, etc.). Similarly, if there appears a message indicating that a Perl module (such as ExtUtils::Embed) can't be found, install it using the same utility.


If there appears a message such as "Target ALL is up to date" or "make: Nothing to be done for `ALL'," the exits have not been recompiled. In that case, move the following files from the GWHOME/obj folder to a temporary location (to preserve them in case of compilation problems):


libgatewayexitclnt.so
libgatewayexituser.so
libgatewayexitsecs.so
libgatewayexitsech.so
libgatewayexitc.so
libgatewayexitrte.so
libgatewayperlstub.so


and then run the userprof.sh and userbuild.sh scripts again.