如何在Mac OS X 10.7 Lion上安装IBM DB2 Express-C? [英] How do I install IBM DB2 Express-C on Mac OS X 10.7 Lion?
问题描述
DBI1189E已经尝试使用db2setup与目前正在运行的平台达尔文[x86_64]不符的平台的映像。
如何解决这个问题在Lion上安装DB2 Express-C?
编辑:移动回答答案
问题是db2setup脚本无法正确识别
uname -m
要使安装脚本起作用,请编辑db2setup脚本并更改这个:
Darwin)
case $ {OSM?}
i * 86)
INSTALLDIR =$ {PROGDIR?} / db2 / macos / install
PLATNAME =MacOS;;
esac ;;
HP-UX)
到:
Darwin)
case $ {OSM?}
i * 86)
INSTALLDIR =$ {PROGDIR?} / db2 / macos / install
PLATNAME =MacOS;;
x86_64)
INSTALLDIR =$ {PROGDIR?} / db2 / macos / install
PLATNAME =MacOS / x86_64;;
esac ;;
HP-UX)
现在运行db2setup。脚本应该识别架构,并正常进行安装。
I was able to install and use IBM DB2 Express-C 9.5.2. beta in Mac OS X Snow Leopard with no trouble at all. In Mac OS X 10.7 Lion, though, installation using the db2setup script fails with:
DBI1189E There has been an attempt to use db2setup on an image for a platform that does not match the current platform 'Darwin [x86_64]' on which it is being run.
How can I work around this to install DB2 Express-C on Lion?
edit: moved answer to answers
The problem is that the db2setup script does not properly recognize the architecture x86_64 reported by
uname -m
To make the installation script work, edit the db2setup script and change this:
"Darwin")
case ${OSM?} in
i*86)
INSTALLDIR="${PROGDIR?}/db2/macos/install"
PLATNAME="MacOS" ;;
esac ;;
"HP-UX")
to this:
"Darwin")
case ${OSM?} in
i*86)
INSTALLDIR="${PROGDIR?}/db2/macos/install"
PLATNAME="MacOS" ;;
x86_64)
INSTALLDIR="${PROGDIR?}/db2/macos/install"
PLATNAME="MacOS/x86_64" ;;
esac ;;
"HP-UX")
Now run db2setup. The script should recognize the architecture and proceed with installation as normal.
这篇关于如何在Mac OS X 10.7 Lion上安装IBM DB2 Express-C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!