CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS

Ansys 18.2 on UBuntu 16.04: Installation Guide

Register Blogs Community New Posts Updated Threads Search

Like Tree18Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2018, 04:42
Default Ansys 18.2 on UBuntu 16.04: Installation Guide
  #1
New Member
 
David
Join Date: Dec 2012
Posts: 8
Rep Power: 13
david.pasquale is on a distinguished road
Hi everybody,
since I had a lot of issues installing Ansys on Ubuntu, I summarize here all the steps (some picked up inside this forum) that are required to have a running version. I suggest to use standard MESA driver instead of nvidia or AMD drivers because I also need to use xrdp 0.9.4 (to have remote access) and it does not work with those drivers.

The required packages from the installation guide (for RedHat/CentOS) are:
• libXp.x86_64
• xorg-x11-fonts-cyrillic.noarch
• xterm.x86_64
• openmotif.x86_64
• compat-libstdc++-33.x86_64
• libstdc++.x86_64
• libstdc++.i686
• gcc-c++.x86_64
• compat-libstdc++-33.i686
• libstdc++-devel.x86_64
• libstdc++-devel.i686
• compat-gcc-34.x86_64
• gtk2.i686
• libXxf86vm.i686
• libSM.i686
• libXt.i686
• xorg-x11-fonts-ISO8859-1-75dpi.noarch
• glibc-2.12-1.166.el6_7.1 (or greater)

1. Therefore I installed:
Code:
sudo apt install xterm lsb csh ssh rpm xfonts-base xfonts-100dpi xfonts-100dpi-transcoded xfonts-75dpi xfonts-75dpi-transcoded xfonts-cyrillic libmotif-common mesa-utils libxm4 libxt6 libxext6 libxi6 libx11-6 libsm6 libice6  libxxf86vm1 libpng12-0 libpng16-16 libtiff5 gcc g++ libstdc++6 libstdc++5 libstdc++-5-dev
2. Install manually libXp (not included in the standard repo), you can find it at:
HTML Code:
https://pkgs.org/download/libxp6
3. Update the database with:
Code:
sudo updatedb
4. Locate the following libs and create soft links based on your system. I did as follows:
Code:
sudo ln -sf /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/libGL.so
sudo ln -sf /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/libGL.so.1
sudo ln -sf /usr/lib/x86_64-linux-gnu/libGLU.so.1 /usr/lib/libGLU.so
sudo ln -sf /usr/lib/x86_64-linux-gnu/libXm.so.4 /usr/lib/libXm.so
sudo ln -sf /usr/lib/x86_64-linux-gnu/libXm.so.4 /usr/lib/libXm.so.3
sudo ln -sf /usr/lib/x86_64-linux-gnu/libXp.so.6 /usr/lib/libXp.so
sudo ln -sf /usr/lib/x86_64-linux-gnu/libXt.so.6 /usr/lib/libXt.so
sudo ln -sf /usr/lib/x86_64-linux-gnu/libXext.so.6 /usr/lib/libXext.so
sudo ln -sf /usr/lib/x86_64-linux-gnu/libXi.so.6 /usr/lib/libXi.so
sudo ln -sf /usr/lib/x86_64-linux-gnu/libX11.so.6 /usr/lib/libX11.so
sudo ln -sf /usr/lib/x86_64-linux-gnu/libSM.so.6 /usr/lib/libSM.so
sudo ln -sf /usr/lib/x86_64-linux-gnu/libICE.so.6 /usr/lib/libICE.so
sudo ln -sf /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/libgcc.so
sudo ln -sf /lib/x86_64-linux-gnu/libc.so.6 /lib/libc.so
sudo ln -sf /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6
5. Change the command interpreter for shell scripts:
Code:
sudo dpkg-reconfigure dash
Then answer "No" to the question.


6. From DVD1 install Ansys, launch:
Code:
sudo ./INSTALL
7. Since you have installled ANSYS as root, you need to change ownership of the ANSYS configuration directories and files so that you have write access to them (if "user" is your username):
Code:
sudo chown -R user:user ~/.ansys
sudo chown -R user:user ~/.config
sudo chown -R 777 /ansys_inc/v182/aisol/WBMWRegistry/

8. Debian-based multiarch distributions have their libc in /lib/x86_64-linux-gnu/ instead in /lib/. So that regular-expression for fetching the libc_version misses because of the two hyphens in x86_64-gnu-linux. After this modification everything seems to be fine...
Locate cfx5arch (probably /usr/ansys_inc/v182/CFX/bin/cfx5arch). In this file you will find near line 196:
Code:
if test -n "$libc_file"; then
case `basename $libc_file | sed 's/\.so//g'` in
glibc-*|libc-[0123].*) # this is almost certainly a glibc version
after that I added:
Code:
libc_file_tmp=`echo $libc_file | sed -e 's/x86_64-linux-gnu//g'`
and modified the following line from:
libc_version=`echo $libc_file | sed -e 's/^[^-]*-//' -e 's/\.so//g'`
to
Code:
libc_version=`echo $libc_file_tmp | sed -e 's/^[^-]*-//' -e 's/\.so//g'`
9.Since ptrace is used to monitor intelmpi CFX run, set the permission for all the users, just edit
PHP Code:
/etc/sysctl.d/10-kernel-hardening.conf 
and set:
Code:
kernel.yama.ptrace_scope = 0

10. Set the following environment variables in your .bashrc:
Code:
# Workbench
export ANSYS182_DIR=/ansys_inc/v182/ansys
alias wb2='/ansys_inc/v182/Framework/bin/Linux64/runwb2 -oglmesa' 
export LD_LIBRARY_PATH=/usr/ansys_inc/v182/Framework/bin/Linux64/Mesa:$LD_LIBRARY_PATH
#export XLIB_SKIP_ARGB_VISUALS=1 #uncomment if you have trasparency issues in CFX pre/post or turbogrid
export LANG=en_US.UTF8

#CFX
export PATH=/ansys_inc/v182/CFX/bin:$PATH

#Turbogrid
export PATH=/ansys_inc/v182/TurboGrid/bin:$PATH

#FLUENT
export PATH=/ansys_inc/v182/fluent/bin:$PATH
export FLUENT_ARCH='lnamd64'
david.pasquale is offline   Reply With Quote

Old   April 12, 2018, 08:40
Default
  #2
New Member
 
Sebastian Riebl
Join Date: Apr 2018
Posts: 1
Rep Power: 0
inputmissing is on a distinguished road
Hi David,
thanks a lot for posting this walkthrough. It also works for Ansys 19.0 (on Ubuntu 16.04 LTS). Before following your guide I was unable to run CFX standalone or from workbench.
This was exactly the help I needed.
amuzeshi likes this.
inputmissing is offline   Reply With Quote

Old   April 30, 2018, 08:11
Default
  #3
New Member
 
Ziga
Join Date: Feb 2016
Location: Maribor, Slovenia
Posts: 27
Rep Power: 10
Zigec is on a distinguished road
Send a message via Skype™ to Zigec
does anyone has an idea, why CFX opens normally, but Fluent doesn't? I have v190.
Zigec is offline   Reply With Quote

Old   May 11, 2018, 00:27
Default
  #4
New Member
 
Chaitanya
Join Date: Aug 2013
Location: Mumbai
Posts: 18
Rep Power: 13
chaitanyaarige is on a distinguished road
First of all, Lots of thank you to David Pasquale.
Secondly, for this issue:

Quote:
Originally Posted by Zigec View Post
does anyone has an idea, why CFX opens normally, but Fluent doesn't? I have v190.
For opening the application directly from terminal, I guess step 10, can be simplified

Open the bashrc file by,
Code:
sudo gedit ~/.bashrc
Then in the file, at end you can simply add these lines instead of step 10.

Code:
alias cfx191  = '/ansys_inc/v191/CFX/bin/cfx5'

alias fluent191  = '/ansys_inc/v191/fluent/bin/fluent'

alias workbench191  = '/ansys_inc/v191/Framework/bin/Linux64/runwb2'

alias cfx182  = '/ansys_inc/v182/CFX/bin/cfx5'

alias fluent182  = '/ansys_inc/v182/fluent/bin/fluent'

alias workbench182   = '/ansys_inc/v182/Framework/bin/Linux64/runwb2'

You can now, just type fluent182 for launching Fluent-18.2 version and like that.

Last edited by chaitanyaarige; May 14, 2018 at 03:04.
chaitanyaarige is offline   Reply With Quote

Old   May 11, 2018, 08:26
Default
  #5
New Member
 
Ziga
Join Date: Feb 2016
Location: Maribor, Slovenia
Posts: 27
Rep Power: 10
Zigec is on a distinguished road
Send a message via Skype™ to Zigec
Hey, thanks for the reply, but I don't have a problem with opening the programs. I think something went wrong with the installation. I reinstalled everything 3 times and I have the same problem: I can't find workbench and fluent crashed after the fluent launcher window.

The message I get:
Code:
/usr/ansys_inc/v190/fluent/fluent19.0.0/bin/fluent -r19.0.0
/usr/ansys_inc/v190/fluent/fluent19.0.0/bin/fluent -r19.0.0 3d -nm -ssh
/usr/ansys_inc/v190/fluent/fluent19.0.0/cortex/lnamd64/cortex.19.0.0 -f fluent -nm (fluent "3d -pshmem  -host -alnamd64 -r19.0.0 -t1 -mpi=ibmmpi -path/usr/ansys_inc/v190/fluent -ssh")
/usr/ansys_inc/v190/fluent/fluent19.0.0/cortex/lnamd64/cortex.19.0.0: symbol lookup error: /usr/ansys_inc/v190/fluent/fluent19.0.0/lnamd64/syslib/libsvml.so: undefined symbol: __intel_cpu_feature_indicator_x
Does anyone have a solution to this?
Zigec is offline   Reply With Quote

Old   June 13, 2018, 17:17
Default
  #6
Senior Member
 
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 110
Rep Power: 17
rcastilla is on a distinguished road
David,
Thank you! It works also with 19.1. It is exactly was I was looking for!
Robert
amuzeshi likes this.
rcastilla is offline   Reply With Quote

Old   June 26, 2018, 10:54
Default
  #7
Senior Member
 
Shamoon Jamshed
Join Date: Apr 2009
Location: Karachi
Posts: 381
Rep Power: 18
Shamoon Jamshed is on a distinguished road
Send a message via Skype™ to Shamoon Jamshed
Dear Zigec,

In Ansys there is a separate folder for workbench /v191/Framework/

Thanks
Shamoon Jamshed is offline   Reply With Quote

Old   July 16, 2018, 12:43
Red face finite element modeller: connection refused
  #8
New Member
 
jason
Join Date: May 2011
Location: uk
Posts: 10
Rep Power: 15
zhaolinchen is on a distinguished road
Hi david

On workbench platform, I made a mesh with ICEM, and linked with finite element modoeler to read the mesh, however it failed and said that connection refused and shows the information of AnsysWBU.exe has stop on the terminal, please help, thanks everyone
Attached Images
File Type: jpg Screenshot from 2018-07-16 23-50-43.jpg (128.1 KB, 87 views)
zhaolinchen is offline   Reply With Quote

Old   July 27, 2018, 05:32
Default
  #9
Member
 
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 8
jgross is on a distinguished road
Hi everyone,


Has anyone who followed this guide had any issues with running CFX in parallel? My set up will perform the parallel calculations just fine using the Intel MPI local parallel method, but then will never write the results file and simply hang indefinitely. I am sure it is an issue with the set up as I have tested it on a number of test cases.


Thank you for any help you can give.


Regards,
James
jgross is offline   Reply With Quote

Old   August 9, 2018, 11:43
Default Ansys 18.2 on Ubuntu 18.04
  #10
New Member
 
Join Date: Aug 2018
Posts: 2
Rep Power: 0
rweber is on a distinguished road
Hy everyone,

nice description, it was truly helpful. However I recently upgraded my Ubuntu system from 16.04 to 18.04 and the ansys installation just stops around 90%. The last information in the log file is:


Quote:
Generating daemon scripts for this installation.
AWPROOTDIR = /usr/ansys_inc/v182
Creating RSM Launcher script ...
Created service script: rsmlauncher


AWPROOTDIR = /usr/ansys_inc/v182
Creating ANSYS RSM Cluster Master Service script ...
Created service script: arcmaster


AWPROOTDIR = /usr/ansys_inc/v182
Creating ANSYS RSM Cluster Node Service script ...
Created service script: arcnode

Has anyone met anything similar?

Thanks,
Richard
mohamad809 likes this.
rweber is offline   Reply With Quote

Old   August 28, 2018, 11:30
Default
  #11
Senior Member
 
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21
Daniel_Khazaei will become famous soon enough
same problem with installation of ansys19.1 on ubuntu 18.04!
Design Modeler and ICEMCFD are not working
Daniel_Khazaei is offline   Reply With Quote

Old   August 31, 2018, 02:51
Default
  #12
New Member
 
Timo ZHANG
Join Date: Aug 2016
Posts: 27
Rep Power: 10
ztnuaa is on a distinguished road
Hi, Daniel

I solve the problem icemcfd not working on ubuntu 18.04
check this post:
Installation of Ansys 19 on Ubuntu 18.4
hope it will help.
since i don't use design modeler, i don't know why it cant work either.

Happy meshing.
ztnuaa
Daniel_Khazaei likes this.
ztnuaa is offline   Reply With Quote

Old   September 4, 2018, 13:21
Default
  #13
Senior Member
 
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21
Daniel_Khazaei will become famous soon enough
Quote:
Originally Posted by ztnuaa View Post
Hi, Daniel

I solve the problem icemcfd not working on ubuntu 18.04
check this post:
Installation of Ansys 19 on Ubuntu 18.4
hope it will help.
since i don't use design modeler, i don't know why it cant work either.

Happy meshing.
ztnuaa
thanks for the solution, it works perfectly!

regarding designModeler and ansys not compeleting installation, I have gone through the AnsConfigWB.sh and .workbench.sh script...it seems that even though I have installed libpng12 from xenial package, ansys is still using libpng16 and that is the problem...

tried re-directing a soft link for libpng.so to libpng12 with no luck...
Also I have compiled and installed bash 4.3.30 form ubuntu 16.04 which also didn't fixed the problem...

so my guess is that libpng16 is the problem here as the script stucks here:

Code:
./workbench -cmd $exeFiles regServer -B
Daniel_Khazaei is offline   Reply With Quote

Old   October 3, 2018, 04:23
Default libxp6 for Ubuntu 16.04
  #14
New Member
 
Batuhan Tas
Join Date: May 2018
Posts: 1
Rep Power: 0
batuhan.tas is on a distinguished road
Hi everyone,


I could not find libxp6 for Ubuntu 16.04 at the above link. What should I do?
batuhan.tas is offline   Reply With Quote

Old   October 4, 2018, 09:19
Default
  #15
Senior Member
 
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21
Daniel_Khazaei will become famous soon enough
Quote:
Originally Posted by batuhan.tas View Post
Hi everyone,


I could not find libxp6 for Ubuntu 16.04 at the above link. What should I do?

hi,

use 14.04 library instead...
Daniel_Khazaei is offline   Reply With Quote

Old   October 23, 2018, 10:40
Default
  #16
ANV
New Member
 
Amey Vasulkar
Join Date: Jul 2013
Location: Delft, Netherlands
Posts: 2
Rep Power: 0
ANV is on a distinguished road
Quote:
Originally Posted by rweber View Post
Hy everyone,

nice description, it was truly helpful. However I recently upgraded my Ubuntu system from 16.04 to 18.04 and the ansys installation just stops around 90%. The last information in the log file is:





Has anyone met anything similar?

Thanks,
Richard
Hi,

Were you able to solve the issue? I am having the same problem with Linux Mint!

Please let me know, if you or anyone else has been able to solve the issue.

Thanks
ANV is offline   Reply With Quote

Old   November 12, 2018, 00:20
Default INSTALL file is not found
  #17
New Member
 
Ali Ahmed
Join Date: Nov 2018
Posts: 1
Rep Power: 0
AliAhmed is on a distinguished road
Hello guys,
I'm trying to install ansys 18.2 on ubuntu16.04. I downloaded ansys 18.2 but I don't see DVD1 or INSTALL file which is required as shown in step 6
Any ideas how to install ansys 18 on Ubuntu?
AliAhmed is offline   Reply With Quote

Old   November 20, 2018, 07:31
Default
  #18
New Member
 
Yuan Lihuan
Join Date: Sep 2018
Posts: 3
Rep Power: 8
nickkid is on a distinguished road
Same problem with both ansys v191 and v192 on Fedora 26. Has anyone got the solution?

Quote:
Originally Posted by rweber View Post
Hy everyone,

nice description, it was truly helpful. However I recently upgraded my Ubuntu system from 16.04 to 18.04 and the ansys installation just stops around 90%. The last information in the log file is:





Has anyone met anything similar?

Thanks,
Richard
nickkid is offline   Reply With Quote

Old   January 28, 2019, 14:54
Default
  #19
New Member
 
Mohammad
Join Date: Sep 2012
Posts: 2
Rep Power: 0
mohamad809 is on a distinguished road
I want to install ansys 18.02 on ubuntu 18.10 but the installation stuck on 99% with the below log file:

Generating daemon scripts for this installation.
AWPROOTDIR = /usr/ansys_inc/v182
Creating RSM Launcher script ...
Created service script: rsmlauncher


AWPROOTDIR = /usr/ansys_inc/v182
Creating ANSYS RSM Cluster Master Service script ...
Created service script: arcmaster


AWPROOTDIR = /usr/ansys_inc/v182
Creating ANSYS RSM Cluster Node Service script ...
Created service script: arcnode


does anybody know how can we solve it?
mohamad809 is offline   Reply With Quote

Old   February 2, 2019, 01:47
Default
  #20
New Member
 
Mohammad
Join Date: Sep 2012
Posts: 2
Rep Power: 0
mohamad809 is on a distinguished road
Quote:
Originally Posted by rweber View Post
Hy everyone,

nice description, it was truly helpful. However I recently upgraded my Ubuntu system from 16.04 to 18.04 and the ansys installation just stops around 90%. The last information in the log file is:





Has anyone met anything similar?

Thanks,
Richard
The same problem here! could you solve it?
mohamad809 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[CAD formats] MegaCads Installation on Ubuntu NablaDyn OpenFOAM Meshing & Mesh Conversion 13 May 29, 2020 14:17
Workbench 18.2 Installation Error Ubuntu 16.04 turbostudent ANSYS 1 October 3, 2019 11:13
[OpenFOAM.org] Deb packages on Ubuntu 16.04: Problem with bash file f.fp OpenFOAM Installation 2 April 24, 2017 14:31
Ansys Licence Serve on Ubuntu 16.04 LTS david.pasquale ANSYS 2 January 20, 2017 12:52
Ansys CFX support for ubuntu LUIS1717 CFX 0 May 17, 2014 16:07


All times are GMT -4. The time now is 13:30.