Some notes for the installation of IBM DB2 v7.1 on Debian Woody
Holger Marzen, 2003-08-21

install pdksh
- apt-get install pdksh
- cd /bin
- ln -s /usr/bin/ksh .

install rpm
- apt-get install rpm
- mkdir /var/lib/rpm
- rpm --initdb

  Without "mkdir /var/lib/rpm" rpm will complain about errors with
  db3-access. Very confusing.

- Create /bin/rpm by a executable shell script that inserts "--nodeps"
  after(!) "-ivh" that's used by the db2 installer. Else we can't
  install because of the missing rpm-dependencies.

  #!/bin/sh
  ARGS=`echo "$*" | sed 's/-ivh /-ivh --nodeps /'`
  /usr/bin/rpm $ARGS

- make the usual symlinks for "incompatible" RedHat-software:
  cd /usr/lib
  ln -s /lib/libncurses.so.5 libncurses.so.4
  ln -s libstdc++-3-libc6.2-2-2.10.0.so libstdc++-libc6.1-1.so.2

Now you should be able to mount the db2 installation media and run
./db2setup.

To run the control center (db2cc) you have to install java (I used the
recent sdk from Sun), make the appropriate symlink /usr/bin/java
(on my machine /usr/bin/java -> /opt/j2sdk_nb/j2sdk1.4.2/bin/java). Then
fix the broken installtion by doing a
"ln -s /usr/IBMdb2/V7.1/cc ." in /home/db2inst1/sqllib.
Now we only have to change the shell script
/home/db2inst1/sqllib/bin/db2cc and delete "-nojit" from the JRE_OPTIONS
variable (recent java comlains) and replace "jre $JRE_OPTIONS -cp
$JRE_CLASSPATH CC $@" by "java $JRE_OPTIONS -cp $JRE_CLASSPATH CC $@".

Have fun!
Holger


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to