Posted on July 14, 2011
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.
For release Electronics 18.2 the following worked with Ubuntu :
Libs:
sudo apt-get install gcc make openjdk-8-jre lsb rpm xvfb libc6-dev-amd64 libgcc-5-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libglu1-mesa-dev libgl1-mesa-dri libgl1-mesa-dev libice6 libpng12-0 libpng16-16 libgif7 libsm6 libstdc++6 libuuid1 libx11-6 libxau6 libxcb1 libxdmcp6 libxext6 libxrender1 zlib1g tcl tk gzip tar perl mono-runtime python3 qt5-default qt5-qmake libqwt-dev libjpeg62 xpdf xorg xterm openmpi-common gtk2-engines libxxf86vm1 libxt6 libmotif-common
install HFSS with ./install
or use
~/HFSS/Electronics_182_linx64/Linux/AnsysEM/disk1/setup.exe.IShield ~/HFSS/Electronics_182_linx64/Linux/RSM/disk1/setup.exe.IShield
copy content of Libs to ~//AnsysEM18.2/Linux64/
cd ~/<AnsysEM>/AnsysEM18.2/Linux64/
ln -s libXrender.so.1.3.1 libXrender.so.1
ln -s libXfixes.so.3.1.0 libXfixes.so.3
ln -s libGL.so.1.6.0 libGL.so
ln -s libGL.so.1.6.0 libGL.so.1
ln -s libGLU.so.1.3.1 libGLU.so
ln -s libGLU.so.1.3.1 libGLU.so.1
export ANS_IGNOREOS=1
export ANS_NODEPCHECK=1
./ansysedt
cd ~/<AnsysEM>/rsm/Linux64/
./ansoftrsmservice start
cd ~/<AnsysEM>/AnsysEM18.2/Linux64/
./RegisterEnginesWithRSM.pl add
Ok, finally got this thing to work. All the installation craziness and bash/dash was in vain. Here is my recipe for ANSYS APDL in Ubuntu:
My versions: ANSYS 2019r2 Kubuntu 19.04
sudo ./INSTALL
The installation will hang at the installation of arcnode at ca. 92 % completion. Simply close the installation window, ANSYS is now installed.
Now you need to change the ownership of the following folders:
sudo chown -R $USER:$USER ~/.ansys sudo chown -R $USER:$USER ~/.config/Ansys
As I want "only" ANSYS APDL, this can be tested then with starting the ANSYS Launcher from folder belonging to the user: ~/opt/ansys_inc/v194/ansys/bin/launcher
(Replace $USER with your Linux user name.)
I could not figure out what was causing the arcnode to hang during the installation. As I will not be using this (and chose not to install this...), I also do not care.