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

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

问题描述

我能够安装和使用 IBM DB2 Express-C 9.5.2.Mac OS X Snow Leopard 中的测试版完全没有问题.但是,在 Mac OS X 10.7 Lion 中,使用 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 尝试在与当前运行它的平台Darwin [x86_64]"不匹配的平台上使用 db2setup.

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.

如何解决这个问题以在 Lion 上安装 DB2 Express-C?

移动答案的答案

推荐答案

问题是db2setup脚本不能正确识别x86_64报的架构

The problem is that the db2setup script does not properly recognize the architecture x86_64 reported by

uname -m

要使安装脚本正常工作,请编辑 db2setup 脚本并进行更改:

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")

到这里:

"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")

现在运行 db2setup.该脚本应能识别架构并正常进行安装.

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天全站免登陆