问题描述
我正在为我的mac安装db2。
I am trying to install db2 for my mac.
我下载了包。当我运行脚本db2setup我得到一个空白设置向导。
I downloaded the package. When I run the script db2setup I get a blank setup wizard.
它说
/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
当我查看日志时显示
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.
帮助。
推荐答案
DB2 Express-C 10.1 for Mac于2012年发布,就在小牛之前。 IBM已经对小牛的Express-C进行了任何测试,这是值得怀疑的。您似乎看不到JRE可以从获取小牛与安装人员合作。我不知道如何从Oracle安装JRE将会更好。
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.
在简短的测试中,我发现它似乎起作用,但是您可能会发现使用基于文本的 db2_install
命令,而不是基于java的 db2setup
。这将需要一些额外的步骤来手动创建一个DB2实例(创建用户,执行 /opt/IBM/db2/V10.1/instance/db2icrt
等),但是一旦你这样做,你应该可以。
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.
这篇关于适用于Mac的db2设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!