Topic
  • 10 replies
  • Latest Post - ‏2013-03-28T13:59:07Z by nivanov1
SystemAdmin
SystemAdmin
5837 Posts

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

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

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

    Help on this issue

    Thanks in advance.
  • J3RK_Kurtis_Knisely
    J3RK_Kurtis_Knisely
    12 Posts

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

    ‏2013-01-23T17:47:38Z  
    Experiencing the same problem of KK8S_Stewart_Palmar.

    Help on this issue

    Thanks in advance.
    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

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

    ‏2013-01-23T17:51:15Z  
    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
    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

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

    ‏2013-01-24T23:00:01Z  
    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

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

    ‏2013-03-26T01:19:05Z  
    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.
    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

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

    ‏2013-03-26T12:26:04Z  
    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
    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

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

    ‏2013-03-26T19:52:22Z  
    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
    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

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

    ‏2013-03-28T10:16:10Z  
    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.
    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

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

    ‏2013-03-28T10:19:37Z  
    Try this.
    <pre class="jive-pre"> groupadd -g 999 db2iadm1 useradd -u 1004 -g db2iadm1 -m -d /home/rohanbar rohanbar db2icrt -u rohanbar rohanbar </pre>

    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
    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

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

    ‏2013-03-28T13:59:07Z  
    Try this.
    <pre class="jive-pre"> groupadd -g 999 db2iadm1 useradd -u 1004 -g db2iadm1 -m -d /home/rohanbar rohanbar db2icrt -u rohanbar rohanbar </pre>

    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
    > 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.