Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having troubles seting up DB2 Express-C 10.1 on my Mac OS X (v10.7.5). My initial install attempt failed, but then I found

That seemed to work up to the point where I tried to start the db:

$ ./db2start 
dyld: Library not loaded: /db2unix/db2galileo/db2_galileo_darwinport/darwin64/s120905/engn/lib/libdb2e.dylib  
Referenced from: /Users/home/sqllib/adm/./db2start  
    Reason: image not foundTrace/BPT trap: 5

OTOH, if I try to run db2setup from the expc directory I get and error message that others have seen. Something like

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

Where the 5-digit number in the tmp directory name changes on each run.

That is followed by a nice DB2 10.1 intro screen which is suddenly replaced by a blank DB2JDKTester window that says "DB2 SETUP LAUNCHPAD" at the top.

Has anyone else tried to install DB2 on Mac OS X 10.7?

(And, yes, I've seen the other thread with the same title, but that was never actually answered.)

share|improve this question
Have you seen this thread? – Peter Schuetze Oct 3 '13 at 19:50
Yes, I saw it. The that didn't work for me, but I got it working now as I'm about to explain below. – user823981 Oct 3 '13 at 23:25

I got it working by completely uninstalling db2 express-c (the db2_deinstall script failed so I manually deleted all directories that involved db2. :P ) .

Then I followed

and it worked. I never ran db2_setup.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.