How do I install IBM DB2 Express-C on Mac OS X 10.7 Lion? [closed]

百般思念 提交于 2019-12-01 04:09:35

问题


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


回答1:


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.




回答2:


Also note that enabling the root account, see the instructions on: http://support.apple.com/kb/HT1528?viewlocale=en_US



来源:https://stackoverflow.com/questions/7072871/how-do-i-install-ibm-db2-express-c-on-mac-os-x-10-7-lion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!