CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" >

8. Installing DB2 Express-C on Fedora Core 6

Before proceeding, please ensure that you have read Section 5 and Section 6.

Note that IBM does not officially support this distribution for DB2 9. Any problems you encounter using this distribution must be replicated on a supported distribution before IBM Support can help you resolve the issue. See the DB2 Linux validation website in Section 22.

These installation notes are based on a single-partition 32-bit installation using the 2.6.18-1.2849.fc6 kernel.

8.1. Installation notes

The only installation error encountered was found when launching the ./db2setup command. The screen displayed this error:
ERROR:
    The following library files could not be loaded by db2langdir
    in /tmp/exp/disk1/db2/linux/install/../bin

        libstdc++.so.5
        libstdc++.so.5
        
    Check the following web site for the up-to-date system
    requirements of IBM DB2 Version 9.1:
        http://www.ibm.com/software/data/db2/udb/sysreqs.html

    Aborting the current installation ...
To resolve this error, use the yum package utility to install the necessary C++ compatibility libraries:
yum -y install compat-libstdc++-33
Installation succeeded after installing the C++ libraries.

8.2. Post-installation notes

Test results (see Section 21 for more details) were successful, except the Configuration Assistant was very slow when launched from the DB2 Control Center. I eventually had to kill the process and it returned a DB2JAVIT : RC = 143 return code.

One strange effect encountered was that DB2 windows were not showing up when launching the Java-based GUI tools (and other windows were missing window decoration); however, logging off and then back in again solved the problem.

To inherit the DB2 instance environment from another home directory, create databases, dynamically load the DB2 libraries, and other tasks, I found that I had to either disable SELinux or modify the default SELinux policies. You can disable SELinux at run-time by running the following command as root:
# /usr/sbin/setenforce 0
Note that when you reboot SELinux will be enabled again. To disable SELinux permanently, edit /etc/selinux/config and set the following value:
SELINUX=disabled

If you have enabled your firewall (using the iptables service), and you want to enable external connectivity to your DB2 server, you must open up ports 523 and any DB2 service ports (use db2 get dbm cfg | grep SVCENAME to retrieve the service names and check /etc/services for the equivalent port values) in your firewall.