Topic
11 replies Latest Post - ‏2012-05-05T17:01:40Z by SystemAdmin
igorM
igorM
265 Posts
ACCEPTED ANSWER

Pinned topic How-to: Ubuntu 7.10 Desktop i386 (Gutsy Gibon) and DB2 Express-C v9.1.2

‏2007-10-22T12:20:03Z |
Hi,
I would just like to inform you I have successfully installed Ubuntu 7.10 and DB2 Express-C v9.1.2 according to Ian Hakes instructions for older version of Ubuntu. Read more in topic: [url=http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=13915464&cat=81&thread=150513&treeDisplayType=threadmode1&forum=805#13915464]Ubuntu 6.10 and DB2 Express-C.[/url]
[b]Missing libstdc++.so.5[/b]

Executing: sudo ./db2setup returns error:

ERROR:
The following library files could not be loaded by db2langdir in /home/igor/mytemp/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


It looks like DB2 is using an old version of libstdc++.so.5 library. So this library has to be installed manually. I did the following:

  1. change directory to /tmp directory:
cd /tmp/

  1. download deb package:
wget -c http://lug.mtu.edu/ubuntu/pool/main/g/gcc-3.3/libstdc++5_3.3.6-13ubuntu2_i386.deb

  1. unpack deb package to get library file
dpkg -x libstdc++5_3.3.6-13ubuntu2_i386.deb libstdc++5

  1. copy library file to /usr/bin directory
sudo cp libstdc++5/usr/lib/libstdc++.so.5.0.7 /usr/lib

  1. change directory to /usr/lib directory
cd /usr/lib

  1. create simbolic link to library
sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5

  1. install db2
cd /path (Note: change directory to db2setup file)
sudo ./db2setup
[b]DB2 auto start-up after reboot[/b]

In Ian blog [url=http://db2expressc.blogspot.com/2007/08/db2-for-linux-howto-now-available.html]DB2 for Linux HOWTO[/url] there is also info about "db2 auto start-up" problem in Ubuntu but there are some little bugs in documentation provided. On page 30:
code
Wrong: chown root.root db2
Right: sudo chown root.root db2

Wrong: chmod 755 db2
Right: sudo chmod 755 db2

Wrong: sudo apt-get bum
Right: sudo apt-get install bum[/code]
[b]Other[/b]
All other thinks are the same as in previous version of Ubuntu. Read more: [url=http://www.ibm.com/developerworks/forums/dw_thread.jsp?forum=805&thread=160297&cat=19]Ubuntu 7.04 and DB2 Express-C v9[/url]

Hope this helps,
IgorM
Updated on 2012-05-05T17:01:40Z at 2012-05-05T17:01:40Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    5837 Posts
    ACCEPTED ANSWER

    Re: How-to: Ubuntu 7.10 Desktop i386 (Gutsy Gibon) and DB2 Express-C v9.1.2

    ‏2007-10-22T13:28:53Z  in response to igorM
    Hi,

    I recommend to use apt-get instead of dpkg.

    $ sudo apt-get install libstdc++5
    (no need to create symlink to libstdc++.so.5)
    • igorM
      igorM
      265 Posts
      ACCEPTED ANSWER

      Re: How-to: Ubuntu 7.10 Desktop i386 (Gutsy Gibon) and DB2 Express-C v9.1.2

      ‏2007-10-23T02:53:31Z  in response to SystemAdmin
      sim_i,
      have you tried out your suggestions in Gutsy? I had tried it before I have posted this post and "sudo apt-get install libstdc++5" hadn't worked. According to my procedure I think symlink also must be supplied, because there is libstdc++.so.5.0.7 file that is downloaded, but DB2 expects file libstdc++.so.5.
      Please correct me if I am wrong.
      Regards,
      IgorM
      • SystemAdmin
        SystemAdmin
        5837 Posts
        ACCEPTED ANSWER

        Re: How-to: Ubuntu 7.10 Desktop i386 (Gutsy Gibon) and DB2 Express-C v9.1.2

        ‏2007-10-23T03:59:20Z  in response to igorM
        Hi,IgorM

        > have you tried out your suggestions in Gutsy?

        Yes. I installed Ubuntu 7.10 desktop (i386) to my note pc and typed as below.

        $ sudo apt-get install libstdc++5
        $ sudo ./db2setup

        db2 installer worked fine in my environment.

        After installation , I changed db2 instance user , fence user and admin user's login shell(/bin/sh) to /bin/bash.
        (for unkown reason , In ubuntu environment db2 installer set /bin/sh as login shell instead of bash)
        • igorM
          igorM
          265 Posts
          ACCEPTED ANSWER

          Re: How-to: Ubuntu 7.10 Desktop i386 (Gutsy Gibon) and DB2 Express-C v9.1.2

          ‏2007-10-23T08:56:45Z  in response to SystemAdmin
          Hi,
          very interesting in my case using command: sudo apt-get install libstdc++5 reported error. Can't remember what error it was...

          Now makes sense that symbolic link is not needed. You already have libstdc++5, but in my case I had libstdc++5.0.7 so I need to made libstdc++5 as symbolic link which points to libstdc++5.0.7 file.
          Thanks for note,
          IgorM
        • igorM
          igorM
          265 Posts
          ACCEPTED ANSWER

          Re: How-to: Ubuntu 7.10 Desktop i386 (Gutsy Gibon) and DB2 Express-C v9.1.2

          ‏2007-10-23T09:04:00Z  in response to SystemAdmin
          Hi,
          just looked into 'history' command and I found out I was using the following command:
          sudo apt-get install libstdc++.so.5
          According to your post I should use:
          sudo apt-get install libstdc++5

          This may work! So instead of my all the commands in 'Missing libstdc++.so.5' section only: sudo apt-get install libstdc++5
          is needed.

          Thanks for pointing this out.
          Regards,
          IgorM
        • SystemAdmin
          SystemAdmin
          5837 Posts
          ACCEPTED ANSWER

          Re: How-to: Ubuntu 7.10 Desktop i386 (Gutsy Gibon) and DB2 Express-C v9.1.2

          ‏2007-10-23T14:07:36Z  in response to SystemAdmin
          The default shell in Ubuntu is 'dash'. If you use adduser, you can change the default shell for a new user in /etc/adduser.conf. If you use useradd, check useradd -D to see which one is used.

          To change the systems symlink /bin/sh from dash to bash, use
          $ sudo dpkg-reconfigure dash
          • igorM
            igorM
            265 Posts
            ACCEPTED ANSWER

            Re: How-to: Ubuntu 7.10 Desktop i386 (Gutsy Gibon) and DB2 Express-C v9.1.2

            ‏2007-10-24T08:42:56Z  in response to SystemAdmin
            [i]To change the systems symlink /bin/sh from dash to bash, use
            $ sudo dpkg-reconfigure dash[/i]
            Login as user db2inst1:
            chsh -s /bin/bash db2inst1
    • SystemAdmin
      SystemAdmin
      5837 Posts
      ACCEPTED ANSWER

      Re: How-to: Ubuntu 7.10 Desktop i386 (Gutsy Gibon) and DB2 Express-C v9.1.2

      ‏2007-10-24T07:02:19Z  in response to SystemAdmin
      I would recommend you use aptitude.

      sudo aptitude update
      sudo aptitide install libstdc++5

      Aptitude is said to deal with dependencies better than apt-get. For example, say you install a package which automatically installs some library packages because it depends on them. When you remove this package with apt-get, it won't remove the libraries this package installed, although they aren't used anymore.

      When you install that package with aptitude and remove it with aptitude, aptitude 'detects' that those library packages aren't used anymore and will therefore automatically remove them.

      I myself switched from apt-get to aptitude.
      • igorM
        igorM
        265 Posts
        ACCEPTED ANSWER

        Re: How-to: Ubuntu 7.10 Desktop i386 (Gutsy Gibon) and DB2 Express-C v9.1.2

        ‏2007-10-24T08:48:51Z  in response to SystemAdmin
        pantsula,
        nice point. Aptitude should be used instead of apt-get. Thanks pointing this out. I just forgot the differences.
        Thanks,
        IgorM
        • SystemAdmin
          SystemAdmin
          5837 Posts
          ACCEPTED ANSWER

          Re: How-to: Ubuntu 7.10 Desktop i386 (Gutsy Gibon) and DB2 Express-C v9.1.2

          ‏2012-05-05T17:01:40Z  in response to igorM
          The same thing ,ie using symbolic links of libstdc++5 /libstdc++6 also works for Trial versions of WMQ and WMB Toolkit on Ubuntu 11.10 and Ubuntu 12.04 as well....using this thread ,at last, I could install WMB Toolkit on Ubuntu 12.04
  • SystemAdmin
    SystemAdmin
    5837 Posts
    ACCEPTED ANSWER

    Re: How-to: Ubuntu 7.10 Desktop i386 (Gutsy Gibon) and DB2 Express-C v9.1.2

    ‏2007-10-24T06:58:16Z  in response to igorM
    Hi

    I've used the DEB package, on the IBM download site, and successfully installed DB2 Express-C v9.1.2 (db2exc_9.1.2-1_amd64.deb) on ubuntu-7.04-server-amd64. I've installed it on a Dell PE2950 Quad-Core Xeon E5310 1.6GHz/2x4MB 1066FSB.

    I haven't experienced any issues :-)

    Kind regards,
    Corné Kloppers

    Senior Developer
    Juta and Company, e-Publishing
    www.jutalaw.co.za
    Tel +2721 763 3575
    Mobile +2784 913 0391