Topic
17 replies Latest Post - ‏2013-05-30T11:15:14Z by vineetmishra
dickr
dickr
31 Posts
ACCEPTED ANSWER

Pinned topic db2 ten. Install scripts fail on debian

‏2012-05-03T14:05:47Z |
I've installed express-C on debian before, but now:
code
root@deb32:~/expc# id && echo ${SHELL} && uname -a
uid=0(root) gid=0(root) groups=0(root)
/bin/bash
Linux deb32 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 GNU/Linux
root@deb32:~/expc# ./db2ckupgrade
Illegal instruction
[: 562: -eq: unexpected operator
Illegal instruction
root@deb32:~/expc# ./db2_install
Illegal instruction
[: 846: -ne: unexpected operator
Illegal instruction
Illegal instruction
[: 982: -eq: unexpected operator
Illegal instruction
Illegal instruction
Illegal instruction
root@deb32:~/expc#
[/code]
Anyone got it working on debian?
Updated on 2012-07-13T07:27:17Z at 2012-07-13T07:27:17Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    5837 Posts
    ACCEPTED ANSWER

    Re: db2 ten. Install scripts fail on debian

    ‏2012-05-04T09:09:19Z  in response to dickr
    Looking into it, will reply u back asap.

    Thanks
    • dickr
      dickr
      31 Posts
      ACCEPTED ANSWER

      Re: db2 ten. Install scripts fail on debian

      ‏2012-05-05T15:58:45Z  in response to SystemAdmin
      Maybe a packaging error? An "Illegal instruction" could be caused by a 64-bit instruction. I run this on:

      dick@deb32:/proc$ cat cpuinfo
      processor : 0
      vendor_id : AuthenticAMD
      cpu family : 6
      model : 8
      model name : AMD Sempron(tm) 2400+
      stepping : 1
      cpu MHz : 1666.294
      cache size : 256 KB
      fdiv_bug : no
      hlt_bug : no
      f00f_bug : no
      coma_bug : no
      fpu : yes
      fpu_exception : yes
      cpuid level : 1
      wp : yes
      flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow up
      bogomips : 3332.58
      clflush size : 32
      cache_alignment : 32
      address sizes : 34 bits physical, 32 bits virtual
      power management: ts
      • SystemAdmin
        SystemAdmin
        5837 Posts
        ACCEPTED ANSWER

        Re: db2 ten. Install scripts fail on debian

        ‏2012-05-05T16:04:34Z  in response to dickr
        I hope you have downloaded the correct and complete image, anyway I will try to repro this issue on my debian box tomorrow.
        • SystemAdmin
          SystemAdmin
          5837 Posts
          ACCEPTED ANSWER

          Re: db2 ten. Install scripts fail on debian

          ‏2012-05-05T17:17:15Z  in response to SystemAdmin
          Hmm looks like there is some problem with the downloaded package, please download it again. I just tried db2 installation on debian and all utilities are working fine, attaching the screenshot.
          Thanks
          Vineet
          • dickr
            dickr
            31 Posts
            ACCEPTED ANSWER

            Re: db2 ten. Install scripts fail on debian

            ‏2012-05-05T19:15:16Z  in response to SystemAdmin
            downloaded again. The light version this time......

            root@deb32:/home/dick/db2_v101_linuxia32_expc_lite/devinst/db2_galileo/linuxia32/s120403/expc_lite# ./db2prereqcheck

            ==========================================================================
            Checking DB2 prerequisites for DB2 database version 10.1.0.0 on operating system "Linux"

            Validating kernel level ...
            Required minimum operating system kernel level : "2.6.16".
            Actual operating system kernel level: "2.6.32".
            Requirement matched.

            Validating C++ Library version ...
            Required minimum C++ library: libstdc++.so.6
            Standard C++ library is located in the following directory: "/usr/lib/libstdc++.so.6.0.13".
            Actual C++ library: CXXABI_1.3.1
            Requirement matched.

            DBT3533I The db2prereqcheck utility has confirmed that all installation prerequisites were met for DB2 database server . Version: "10.1.0.0".
            DB2 version 9.8.0.4 is not supported on the current platform.
            DB2 version 9.8.0.3 is not supported on the current platform.
            DB2 version 9.8.0.2 is not supported on the current platform.
            root@deb32:/home/dick/db2_v101_linuxia32_expc_lite/devinst/db2_galileo/linuxia32/s120403/expc_lite# ./db2setup
            Illegal instruction
            root@deb32:/home/dick/db2_v101_linuxia32_expc_lite/devinst/db2_galileo/linuxia32/s120403/expc_lite#
            • SystemAdmin
              SystemAdmin
              5837 Posts
              ACCEPTED ANSWER

              Re: db2 ten. Install scripts fail on debian

              ‏2012-05-06T22:16:35Z  in response to dickr
              Something is wrong with the downloaded image or the box itself. I just downloaded the light version of DB2v10 and installer is working fine on Debian 32 bit platform.

              Can u run the installer again with -d and -t option and see where it is causing the error?? For eg try this db2_install -d -t <trace file>

              It would be great if you can save the o/p in a file after using -d and -t option and attach that file here.
              Thanks
              Vineet
      • SystemAdmin
        SystemAdmin
        5837 Posts
        ACCEPTED ANSWER

        Re: db2 ten. Install scripts fail on debian

        ‏2012-05-06T23:04:40Z  in response to dickr
        What is the processor architecture? Is it 64 or 32 bit? Also I don't see any entry of rm tm lm under flag.

        Thanks
        • dickr
          dickr
          31 Posts
          ACCEPTED ANSWER

          Re: db2 ten. Install scripts fail on debian

          ‏2012-05-07T06:55:08Z  in response to SystemAdmin
          32. I would like a bit more but 32 it is :)

          (I'm at the office now, I will try your suggestion later)
          • dickr
            dickr
            31 Posts
            ACCEPTED ANSWER

            Re: db2 ten. Install scripts fail on debian

            ‏2012-05-08T20:34:59Z  in response to dickr
            Found something, don't know what:
            root@deb32:/home/dick/db2_v101_linuxia32_expc_lite/devinst/db2_galileo/linuxia32/s120403/expc_lite/db2/linux/bin# file db2usrinf
            db2usrinf: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped
            root@deb32:/home/dick/db2_v101_linuxia32_expc_lite/devinst/db2_galileo/linuxia32/s120403/expc_lite/db2/linux/bin# ldd ./db2usrinf
            linux-gate.so.1 => (0xb7866000)
            libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb782f000)
            libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb773a000)
            libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb771b000)
            libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb75d4000)
            libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb75d0000)
            /lib/ld-linux.so.2 (0xb7867000)
            root@deb32:/home/dick/db2_v101_linuxia32_expc_lite/devinst/db2_galileo/linuxia32/s120403/expc_lite/db2/linux/bin# ./db2usrinf
            Illegal instruction
            root@deb32:/home/dick/db2_v101_linuxia32_expc_lite/devinst/db2_galileo/linuxia32/s120403/expc_lite/db2/linux/bin#

            Does not look like IBM slipped a 64bit program in, so there must be something with my debian machine. What can it be?
            • dickr
              dickr
              31 Posts
              ACCEPTED ANSWER

              Re: db2 ten. Install scripts fail on debian

              ‏2012-05-11T15:56:26Z  in response to dickr
              Did it again. Forced a core dump this time. Here it is :)
              I sure hope that big brother IBM is watching this tread..

              Attachments

              • dickr
                dickr
                31 Posts
                ACCEPTED ANSWER

                Re: db2 ten. Install scripts fail on debian

                ‏2012-05-21T12:30:13Z  in response to dickr
                Anyone managed to install on 32bit linux and if so: which distro did you use?
                • dickr
                  dickr
                  31 Posts
                  ACCEPTED ANSWER

                  Re: db2 ten. Install scripts fail on debian

                  ‏2012-06-17T14:40:20Z  in response to dickr
                  This keeps bugging me. I found an old db2 on 1 of my usb-disks (db2_v9_rc1_ese_linux_32.tar.gz) and I tried to install that. At 1st I encountered missing libraries but I found this (http://www.widwad.com/content/solving-libstdc5-dependency-in-debian-squeeze-how-i-did-it) and that worked.
                  Now I have db2 v9.0 installed on that machine. Cannout USE it because I do not have the required licence-key but I proved to myself that the machine is capable of running db2.

                  So, IBM, must be something wrong with that express V10.1 package. Maybe it was not intended at all to run on 32-bit linux machines? Okay, but please take away the download which implies that it does.
                  • SystemAdmin
                    SystemAdmin
                    5837 Posts
                    ACCEPTED ANSWER

                    Re: db2 ten. Install scripts fail on debian

                    ‏2012-06-17T18:32:37Z  in response to dickr
                    Hi Dickr,

                    This is very strange. DB2v10 is supported on 32 bit platform and I have successfully installed expc and ese edition on Ubuntu/Debian 32 bit boxes. Now as I mentioned in my previous post, did you try to run db2setup or db2_install with -d and -t <trace file> option.
                    Thanks
                    • dickr
                      dickr
                      31 Posts
                      ACCEPTED ANSWER

                      Re: db2 ten. Install scripts fail on debian

                      ‏2012-06-18T05:49:35Z  in response to SystemAdmin
                      Well, I did my own debugging as you can see in this thread. I found the program causing the illegal instruction (db2usrinf) and I included the core dump.
                      It could be my AMD semperon CPU not being compatible enough.
                      • dickr
                        dickr
                        31 Posts
                        ACCEPTED ANSWER

                        Re: db2 ten. Install scripts fail on debian

                        ‏2012-07-08T15:03:08Z  in response to dickr
                        Just learned a new trick called 'strace'. Here's the output
                        • SystemAdmin
                          SystemAdmin
                          5837 Posts
                          ACCEPTED ANSWER

                          Re: db2 ten. Install scripts fail on debian

                          ‏2012-07-13T07:27:17Z  in response to dickr
                          Hello,

                          Just a shot in the dark: you need to install the rpm package before installing DB2 10.1.

                          I have strange system messages when attempting to install without it on Linux 64 bits.

                          Hope this helps...
                          Regards
                          Yves-Antoine Emmanuelli
  • dickr
    dickr
    31 Posts
    ACCEPTED ANSWER

    Re: db2 ten. Install scripts fail on debian

    ‏2013-05-06T21:16:16Z  in response to dickr

    Installed a new linux on the same machine: fine

    tried to install db2 again: failed again

    tried to install another DBMS: failed with a polite message that it would not run on a CPU which does not support SSE2 instructions.

    Hmmmmm, I think I know why DB2 will not install and report an illegal instruction......

    Hmmmmm, it would be nice if the prereqcheck would notice and report ,,,,,,, 

    • This reply was deleted by vineetmishra 2013-05-30T11:15:24Z.