Installing Informix 14.10FC11 on Ubuntu 22.04

Each version of Informix has its own specifics for what is required. Below are the steps needed for the operating system to get Informix 14.10FC11 to work correctly.

Create the informix group and user:

groupadd informix
useradd -g informix -m informix

Install Packages: (Note that rpm is required for the current gskit install, deb files are missing)

apt-get install ksh libaio-dev libncurses5 default-jre rpm 

Install Informix as normal, assuming /opt/informix is the target location

Set up global settings in /etc/informix.conf:

INFORMIXDIR=/opt/informix
INFORMIXSERVER=ids_system_tcp
ONCONFIG=onconfig.ids_system_tcp
PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/opt/informix/bin

Set up global libraries (getting away from LD_LIBRARY_PATH)

/etc/ld.so.conf.d/informix.conf:
/opt/informix/lib
/opt/informix/lib/cli
/opt/informix/lib/esql

Run: ldconfig

Edit /home/informix/.profile add:

. /etc/informix.conf
export INFORMIXDIR INFORMIXSERVER ONCONFIG PATH

Set up Informix config as normal and initialize the engine. Once it is fully initialized and sys* databases are created, bring it back offline.

Next, set up Informix to be controlled by systemd:

/etc/systemd/system/informix.service:
[Unit]
Description=Informix server
Wants=basic.target
After=basic.target network.target

[Service]
Type=forking
User=informix
EnvironmentFile=/etc/informix.conf
ExecStart=/opt/informix/bin/oninit
ExecStop=/opt/informix/bin/onmode -kuy
TimeoutStartSec=1000
TimeoutStopSec=1000

[Install]
WantedBy=multi-user.target

Set up auto start/stop:

systemctl daemon-reload
systemctl enable informix
systemctl start informix

At this point you should be ready to go to start working with Informix.

By: Thomas Beebe (xDB Systems, Inc) tom@xdbsystems.com. IBM Champion.