Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
10 replies Latest Post - ‏2013-03-28T13:59:07Z by nivanov1
SystemAdmin
SystemAdmin
5837 Posts
ACCEPTED ANSWER

Pinned topic Unable to install DB2 Express C 10.1 on Mac OS X 10.7.5

‏2013-01-11T15:19:59Z |
db2setup seems to expect the JRE to be in a specific place where it is not. The install fails to launch Java as follows:

/tmp/db2/expc/db2/macos/install/db2setup: line 606: /tmp/db2_slp.tmp.2571/db2/macos/install/../java/jre/bin/java: No such file or directory

I was able to install DB2 Express C 9.7 last summer when I was using the Apple supplied JDK. Since Apple passed support for the JDK over to Oracle the JDK may have moved. How do I tell db2setup where to find the JRE?
Updated on 2013-03-28T13:59:07Z at 2013-03-28T13:59:07Z by nivanov1
  • SystemAdmin
    SystemAdmin
    5837 Posts
    ACCEPTED ANSWER

    Unable to install DB2 Express C 10.1 on Mac OS X 10.7.5

    ‏2013-01-20T11:47:20Z  in response to SystemAdmin
    Experiencing the same problem of KK8S_Stewart_Palmar.

    Help on this issue

    Thanks in advance.
    • J3RK_Kurtis_Knisely
      J3RK_Kurtis_Knisely
      12 Posts
      ACCEPTED ANSWER

      Re: Unable to install DB2 Express C 10.1 on Mac OS X 10.7.5

      ‏2013-01-23T17:47:38Z  in response to SystemAdmin
      I have these in my .bash_profile:

      export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
      export LANG=en_US.UTF-8
      export LC_ALL=$LANG
      • J3RK_Kurtis_Knisely
        J3RK_Kurtis_Knisely
        12 Posts
        ACCEPTED ANSWER

        Re: Unable to install DB2 Express C 10.1 on Mac OS X 10.7.5

        ‏2013-01-23T17:51:15Z  in response to J3RK_Kurtis_Knisely
        db2setup did not work for me either with 10.1. See sticky post at top of board on how to install on Mac OS:

        Go into the expc directory and run the installer.

        cd expc
        ./db2_install
  • SystemAdmin
    SystemAdmin
    5837 Posts
    ACCEPTED ANSWER

    Re: Unable to install DB2 Express C 10.1 on Mac OS X 10.7.5

    ‏2013-01-24T23:00:01Z  in response to SystemAdmin
    Defining JAVA_HOME, etc. in my .bashrc as described by J3RK_Kurtis_Knisely did nothing to alleviate the problem.

    Invoking db2_install directly did get DB2 installed but did nothing to set up a DB2 instance, which is one of the things done by db2setup when it functions correctly. The correct fix is to have db2setup find the JRE and use it.

    Still waiting for someone from IBM to respond.
    • SystemAdmin
      SystemAdmin
      5837 Posts
      ACCEPTED ANSWER

      Re: Unable to install DB2 Express C 10.1 on Mac OS X 10.7.5

      ‏2013-03-26T01:19:05Z  in response to SystemAdmin
      Hello everyone,

      I am looking to install DB2 express C.I tried to install using db2set up but getting these errors.

      line 606: /tmp/db2_rohanbareja.tmp.91385/db2/macos/install/../java/jre/bin/java: No such file or directory

      I have installed DB2 using ./db2_install but while I am setting the environment variables it says IBM_DB_HOME is not set .I have installed in default directory which is /opt/IBM/db2/V10.1
      so my environment variable is :

      export IBM_DB_HOME=/opt/IBM/db2/V10.1
      export IBM_DB_LIB=/opt/IBM/db2/V10.1/lib64

      Either way I would like to install gem for ibm_db.

      Thanks,
      Rohan
      • SystemAdmin
        SystemAdmin
        5837 Posts
        ACCEPTED ANSWER

        Re: Unable to install DB2 Express C 10.1 on Mac OS X 10.7.5

        ‏2013-03-26T12:26:04Z  in response to SystemAdmin
        Please Check out this link:DB2 Express-C 10.1 for Mac OS X installation guide

        I am not sure if you have run db2icrt to create an instance after installing DB2 binaries using db2_install.

        Thanks
        • SystemAdmin
          SystemAdmin
          5837 Posts
          ACCEPTED ANSWER

          Re: Unable to install DB2 Express C 10.1 on Mac OS X 10.7.5

          ‏2013-03-26T19:52:22Z  in response to SystemAdmin
          Hi Vineet,

          Thanks for your response.

          I have tried running db2icrt but what does instance owner mean over here.I tried giving it /Users/rohanbareja as my instance owner name like this:

          db2icrt -u /users/rohanbareja but does not work.
          • SystemAdmin
            SystemAdmin
            5837 Posts
            ACCEPTED ANSWER

            Re: Unable to install DB2 Express C 10.1 on Mac OS X 10.7.5

            ‏2013-03-28T10:16:10Z  in response to SystemAdmin
            Try this.
            
            groupadd -g 999 db2iadm1 useradd -u 1004 -g db2iadm1 -m -d /home/rohanbar rohanbar db2icrt -u rohanbar rohanbar
            


            You can create groups and userids of your choice but please note that userid cannot be longer than eight characters. Check out this link for more info on DB2 users and groups.

            Thanks
            Vineet
            • SystemAdmin
              SystemAdmin
              5837 Posts
              ACCEPTED ANSWER

              Re: Unable to install DB2 Express C 10.1 on Mac OS X 10.7.5

              ‏2013-03-28T10:19:37Z  in response to SystemAdmin
              My mistake, I thought you are on Linux. I am not sure about the commands to create users and groups on Mac. Please use the appropriate command. Once you are done with userid creation then just try ./db2icrt -u <userid> <userid>
              Thanks
            • nivanov1
              nivanov1
              53 Posts
              ACCEPTED ANSWER

              Re: Unable to install DB2 Express C 10.1 on Mac OS X 10.7.5

              ‏2013-03-28T13:59:07Z  in response to SystemAdmin
              > db2icrt -u rohanbar rohanbar

              It's generally not a good idea to use the instance owner as the fenced user, because it is insecure. You'll be better off defining separate users.