Professional Web Applications Themes

FYI: DB2 7.1 on Debian Woody - IBM DB2

DB2 is available for Linux. Commercial, binary-only software for Linux is often delivered with a custom installer and/or "optimized" for RedHat Linux. Since RedHat is a little bit "incompatible" with other Linux distributions, it's often a bit tricky to install such software on distributions like Debian. Maybe my experiences are helpful for someone. --snip---------------------------------------------------------------- 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 ...

  1. #1

    Default FYI: DB2 7.1 on Debian Woody

    DB2 is available for Linux. Commercial, binary-only software for Linux
    is often delivered with a custom installer and/or "optimized" for RedHat
    Linux. Since RedHat is a little bit "incompatible" with other Linux
    distributions, it's often a bit tricky to install such software on
    distributions like Debian. Maybe my experiences are helpful for someone.

    --snip----------------------------------------------------------------

    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

    --snip----------------------------------------------------------------
    Holger Marzen Guest

  2. #2

    Default Re: FYI: DB2 7.1 on Debian Woody

    On Sun, 24 Aug 2003 12:14:15 +0000, Holger Marzen wrote:
    > DB2 is available for Linux. Commercial, binary-only software for Linux
    > is often delivered with a custom installer and/or "optimized" for RedHat
    > Linux. Since RedHat is a little bit "incompatible" with other Linux
    > distributions, it's often a bit tricky to install such software on
    > distributions like Debian. Maybe my experiences are helpful for someone.
    >
    > --snip----------------------------------------------------------------
    >
    > 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
    >
    > --snip----------------------------------------------------------------
    Holger,

    I took a different approach : using alien to create .deb packages,
    installing them and then doing some configuration by hand.

    V8 works beautifully on my Debian Sid laptop.

    I wrote up my experiences and they were published in the Spring issue of
    IDUG Solutions Journal. You should shortly be able to pick up the article
    from [url]http://www.idug.org[/url] (if you don't subscribe to the printed version :
    it's free !!!)

    If anyone can't wait until then an email to me could remedy the situation
    <G>.

    Phil Nelson
    (teamdbascotdb.com)
    Philip Nelson Guest

Similar Threads

  1. Debian Linux (Woody) 3.0rev1
    By WILLIAM GRUENEWALD in forum Linux Setup, Configuration & Administration
    Replies: 3
    Last Post: September 19th, 12:59 PM
  2. Debian Woody sees only 130G of 200G Maxtor 6Y200P0 HD
    By Paolo Amoroso in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: August 20th, 04:40 PM
  3. debian potato to woody transition
    By Shashank Bhide in forum Debian
    Replies: 4
    Last Post: August 5th, 10:10 AM
  4. RAID 0+1 with ADAPTEC 1200A on Debian Woody
    By Alexis de BRUYN in forum Debian
    Replies: 0
    Last Post: July 28th, 07:10 AM
  5. Sound configuration on debian woody...
    By Cage in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: June 30th, 01:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139