What is it with IBM and products that fail to install?!?
I downloaded the beta of DB2 for Mac (version 9.5.2). The install went fine, until creating the actual instance. At which point it fails miserably. Firstly, it needs xcode installed, so signup for a free Apple Developer account and get that installed. After some digging, I found that the developer at IBM linked a bunch of executables to library files under /Users/rchase and /wsdb. Here is a quick script to resolve this by creating links in the right places:
mkdir /Users/rchase
mkdir /Users/rchase/build
mkdir /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1
mkdir /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/
mkdir /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib
ln -s /opt/IBM/db2/V9.5/lib64/libdb2locale.dylib /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2.dylib /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2dascmn.dylib /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2osse.dylib /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2osse_db2.dylib /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2install.dylib /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2g11n.dylib /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2genreg.dylib /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2trcapi.dylib /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2dasapi.dylib /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2dasgcf.dylib /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2sec.dylib /Users/rchase/build/rchase_db2_v95fp2_darwinport_darwin64_s081205_S1/INST/lib/
mkdir /wsdb
mkdir /wsdb/db2_v95fp2_darwinport
mkdir /wsdb/db2_v95fp2_darwinport/darwin64
mkdir /wsdb/db2_v95fp2_darwinport/darwin64/s081205
mkdir /wsdb/db2_v95fp2_darwinport/darwin64/s081205/INST
mkdir /wsdb/db2_v95fp2_darwinport/darwin64/s081205/INST/lib
ln -s /opt/IBM/db2/V9.5/lib64/libdb2install.dylib /wsdb/db2_v95fp2_darwinport/darwin64/s081205/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2genreg.dylib /wsdb/db2_v95fp2_darwinport/darwin64/s081205/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2osse.dylib /wsdb/db2_v95fp2_darwinport/darwin64/s081205/INST/lib/
ln -s /opt/IBM/db2/V9.5/lib64/libdb2trcapi.dylib /wsdb/db2_v95fp2_darwinport/darwin64/s081205/INST/lib/
After doing this, the programs don’t complain about missing libraries anymore…. I’m still unable to get db2icrt to create the instance, but I’m much closer than when I started. I would recommend doing the install, but make sure to select the option to not create any instances. Then, create the links to the missing files, and create the instance manually.
j
I finally managed to get DB2 running. Turns out, that the non-root install just works fine. Creation of a the sample DB worked, though I still lack knowledge how to enable remote access to my local server.
j
Did you eventually manage to create the instance and get DB2 up and running? Im having the same troubles at the moment.