db2 setup for Mac

2019-08-04 07:15发布

I am trying to install db2 for my mac.

I downloaded the package. When I run the script db2setup I get a blank setup wizard.

It says

/Users/sanjanaagarwal/Downloads/expc/db2/macos/install/db2setup: 

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

When I check the log it shows

Operating system information: Darwin Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~.13.0.0 
ERROR: The user name specified is invalid.

HELP.

标签: macos db2
1条回答
贪生不怕死
2楼-- · 2019-08-04 08:17

DB2 Express-C 10.1 for Mac was released in 2012, well before Mavericks. It's doubtful that IBM has done any testing with Express-C on Mavericks. It does not appear that the JRE you can get from Apple for Mavericks works with the installer. I do not know if installing a JRE from Oracle will work better.

In brief testing I find that it appears to work, but you may find it easier to install using the text-based db2_install command rather than the java-based db2setup. This will require some additional steps to manually create a DB2 instance (create user, execute /opt/IBM/db2/V10.1/instance/db2icrt, etc.), but once you've done this you should be OK.

查看更多
登录 后发表回答