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.
6 replies Latest Post - ‏2013-01-27T15:23:06Z by SystemAdmin
SystemAdmin
SystemAdmin
5837 Posts
ACCEPTED ANSWER

Pinned topic DB2 10.1.2 on a Mac OS X 10.8.2 - I get dyld: Library not loaded

‏2013-01-21T20:06:08Z |
When running db2icrt to create an instance, I get the following error message.

MacBook-Air:instance root# ./db2icrt -u myuser myuser
dyld: Library not loaded: /db2unix/db2galileo/db2_galileo_darwinport/darwin64/s120905/engn/lib/libdb2g11n.dylib
Referenced from: /opt/IBM/db2/V10.1/lib64/libdb2ure2.dylib
Reason: image not found
Trace/BPT trap: 5

I would be of great value to get some help on this issue. I have been searching for the dylib on the net but haven't found any hit.

Thanks in advance, Len
Updated on 2013-01-27T15:23:06Z at 2013-01-27T15:23:06Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    5837 Posts
    ACCEPTED ANSWER

    Re: DB2 10.1.2 on a Mac OS X 10.8.2 - I get dyld: Library not loaded

    ‏2013-01-22T11:17:16Z  in response to SystemAdmin
    you must have otool installed! (see the install instructions) AppStore -> Xcode

    I struggled with this also!
    make sure /Applications/XCode.app/Contents/Developer/usr/bin is in your PATH variable.!
    • SystemAdmin
      SystemAdmin
      5837 Posts
      ACCEPTED ANSWER

      Re: DB2 10.1.2 on a Mac OS X 10.8.2 - I get dyld: Library not loaded

      ‏2013-01-22T15:08:33Z  in response to SystemAdmin
      Thanks for your reply!
      However, otool is installed and I tried the otool command successfully. But, I'll try again!
      /Len
    • SystemAdmin
      SystemAdmin
      5837 Posts
      ACCEPTED ANSWER

      Re: DB2 10.1.2 on a Mac OS X 10.8.2 - I get dyld: Library not loaded

      ‏2013-01-22T19:09:17Z  in response to SystemAdmin
      I tried it again and got the same message.
      otool is installed and working well.

      MacBook-Air:instance root# otool
      Usage: otool -arch arch_type -fahlLDtdorSTMRIHGvVcXmqQ <object file> ...
      -f print the fat headers
      -a print the archive header
      -h print the mach header
      -l print the load commands
      -L print shared libraries used
      -D print shared library id name
      -t print the text section (disassemble with -v)
      -p <routine name> start dissassemble from routine name
      -s <segname> <sectname> print contents of section
      -d print the data section
      -o print the Objective-C segment
      -r print the relocation entries
      -S print the table of contents of a library
      -T print the table of contents of a dynamic shared library
      -M print the module table of a dynamic shared library
      -R print the reference table of a dynamic shared library
      -I print the indirect symbol table
      -H print the two-level hints table
      -G print the data in code table
      -v print verbosely (symbolically) when possible
      -V print disassembled operands symbolically
      -c print argument strings of a core file
      -X print no leading addresses or headers
      -m don't use archive(member) syntax
      -B force Thumb disassembly (ARM objects only)
      -q use llvm's disassembler
      -Q use otool(1)'s disassembler
      • SystemAdmin
        SystemAdmin
        5837 Posts
        ACCEPTED ANSWER

        Re: DB2 10.1.2 on a Mac OS X 10.8.2 - I get dyld: Library not loaded

        ‏2013-01-24T18:37:26Z  in response to SystemAdmin
        try

        export DYLD_LIBRARY_PATH=/opt/IBM/db2/V10.1/lib64:/opt/IBM/db2/V10.1/instance/native/install/
        • SystemAdmin
          SystemAdmin
          5837 Posts
          ACCEPTED ANSWER

          Re: DB2 10.1.2 on a Mac OS X 10.8.2 - I get dyld: Library not loaded

          ‏2013-01-27T15:19:02Z  in response to SystemAdmin
          Thanks a lot!

          Now I can execute the db2icrt command. But when running it I get the following error.

          >db2icrt -u db2inst1 db2inst1
          ERROR: An error occurred while creating the instance "db2inst1". The return
          code is "1". Create the instance manually using the command "db2icrt".

          See attached file for details.

          Any hint?

          Thanks in advance, Len
          • SystemAdmin
            SystemAdmin
            5837 Posts
            ACCEPTED ANSWER

            Re: DB2 10.1.2 on a Mac OS X 10.8.2 - I get dyld: Library not loaded

            ‏2013-01-27T15:23:06Z  in response to SystemAdmin
            THe error seems to be related to the dyld library, whatever that is.

            dyld: Library not loaded: /db2unix/db2galileo/db2_galileo_darwinport/darwin64/s120905/common/lib/Darwin_64/libdb2genreg.dylib
            Referenced from: /Users/db2inst1/sqllib/bin/db2
            Reason: image not found
            Update DBM cfg SYSADM_GROUP errcode = 133
            DBI1281E The database manager configuration file could not be
            initialized.

            Please advice!