如何在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?

查看:930
本文介绍了如何在Mac OS X 10.7 Lion上安装IBM DB2 Express-C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够安装和使用IBM DB2 Express-C 9.5.2。测试在Mac OS X雪豹,根本没有麻烦。在Mac OS X 10.7 Lion中,虽然使用db2setup脚本进行安装失败,但是失败:


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆