Ansys 13 on Ubuntu 10.10 64bit

I have an Ansys workbench script that:

  • generates geometry
  • performs meshing
  • runs fluent (CFD)

To get this to work on Ubuntu (not an officially supported distro) I had to:

  • Manually enter the glibc version instead of the rpm command used in the script /usr/local/ansys_inc/v130/aisol/mw/setup-mwuser (just search for rpm).  This fixes: /usr/local/ansys_inc/v130/aisol/mw/setup-mwuser: 149: rpm: not found
  • However, this still leaves the following error: ServiceMain failed with 1702 (000006a6) The binding handle is invalid.
  • This is solved by editing /etc/hosts and commenting out the following two lines (lines 3 and 4 in my file):

::1 UOS-200630 localhost6.localdomain6 localhost6

127.0.1.1 uos-200630

  • This then leaves the following errors related to the proprietary nvidia driver

Unable to resolve function glXQueryExtension

Unable to resolve function glXMakeCurrent

  • This is fixed by adding /ansys_inc/v130/Framework/bin/Mesa to the LD_LIBRARY_PATH and running runwb2 with the -oglmesa commandline argument
Hope this is useful for somebody.
–Dirk

7 thoughts on “Ansys 13 on Ubuntu 10.10 64bit

  1. Hooray, this helps!
    >> This is fixed by adding /ansys_inc/v130/Framework/bin/Mesa
    >> to the LD_LIBRARY_PATH

    -oglmesa is not necessary here
    >> and running runwb2 with the -oglmesa commandline argument

    Thank you and Google 🙂

  2. Hello Dirk. I want to thank you so much for posting this highly valuable information as I was having those nasty glx issues; designmodeler and mesh were simply not working. In my case the exported path to LD_LIBRARY_PATH was a little bit different and I’ll post it just in case somebody else is using a 64-bit linux distro; in my case I needed to invoke wb via a compiled old version of uname because 3 kernel series are officially unsuported:

    $ export LD_LIBRARY_PATH=/ansys_inc/v130/Framework/bin/Linux64/Mesa;uname26 /ansys_inc/v130/Framework/bin/Linux64/runwb2

    Now ANSYS is working at its full capacity in Debian 7 64-bit and I sincerely appreciate your help.

    Thanks a million, Miguel Q.

  3. Dirk,

    I am trying to install FLUENT 14 on Ubuntu 12.04 (LTS). However, I am getting an error similar to what you mentioned here and bunch of other errors. I will copy and past my error log file at the end of this Reply.

    If you could run me throught the steps to get this to work that would be great.

    Best,

    Teymour

    >>>—————————————>
    ANSYS installation: Mon Aug 26 12:49:19 2013
    Revision: 14.0

    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/libans.common.clrhostmonou.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/libans.common.controlsu.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/libans.graphics.controlsu.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/libans.graphics.graphutilityu.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/*ud.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/*ud.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/*ud.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/*ud.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/*ud.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/*ud.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/*ud.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/*ud.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    /usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigWB.sh: 152: [: /usr/ansys_inc_v140_final/v140/aisol/dll/linx64/*ud.so: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 103: [: x: unexpected operator
    /usr/ansys_inc_v140_final/v140/aisol/.workbench: 1: /usr/ansys_inc_v140_final/v140/aisol/../commonfiles/MainWin/linx64/mw/setup-mwuser: rpm: not found
    Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Ansys.Utilities.ApplicationConfiguration —> System.InvalidOperationException: UNIX OS version 3 is not recognised.
    at Ansys.Utilities.ApplicationConfiguration.getRunningOSName () [0x00000]
    at Ansys.Utilities.ApplicationConfiguration..ctor () [0x00000]
    at Ansys.Utilities.ApplicationConfiguration..cctor () [0x00000]
    — End of inner exception stack trace —
    at CADConfigurationUtility.ReleaseValues.GetReleaseNumber () [0x00000]
    at CADConfigurationUtility.ReleaseValues.GetProeStartCmdVariableName () [0x00000]
    at CADConfigurationUtility.CadEnvironment..ctor () [0x00000]
    at CADConfigurationUtility.CADConfigUtility.Main (System.String[] args) [0x00000]
    ###### Error #######
    Error executing configuration script ‘/usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigRSM.sh’
    ‘”/usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/AnsConfigRSM.sh” -installdir “/usr/ansys_inc_v140_final” -rev 140 -scripttosource “/usr/ansys_inc_v140_final/v140/commonfiles/configs/linx64/config/ConfigCommon.tcl” -os_lang en-us -install’ terminated with the following error(s):
    Unknown error
    readlink: invalid option — ‘p’
    Try `readlink –help’ for more information.
    dirname: missing operand
    Try `dirname –help’ for more information.
    dirname: missing operand
    Try `dirname –help’ for more information.
    dirname: missing operand
    Try `dirname –help’ for more information.
    dirname: missing operand
    Try `dirname –help’ for more information.
    dirname: missing operand
    Try `dirname –help’ for more information.
    /usr/ansys_inc_v140_final/v140/RSM/Config/tools/linux/rsmconfig: 26: /usr/ansys_inc_v140_final/v140/RSM/Config/tools/linux/rsmconfig: /Framework/bin/Linux64/runwb2: not found
    >>>—————————————>

    • 1) Dirk, big thanks for -oglmesa and LD_LIBRARY_PATH! It really works now)))
      2) Hi, Teymour!
      The reason is `sh` doesn’t know many bash-syntax operators.
      Change first line of your `runwb2` (it is a script on linux under v140/Framework/bin/):
      #!/bin/sh
      to
      #!/bin/bash

  4. Pingback: ANSYS Workbench on "Uncertified" Linux Distros - Page 13 -- CFD Online Discussion Forums

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s