Difference between revisions of "Installation/Linux/foam-extend-3.2/openSUSE"

From OpenFOAMWiki
(openSUSE 42.1: mercurial and rpm-build are also needed)
m (moved note into steps)
 
(4 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
<li>Install the necessary packages:
 
<li>Install the necessary packages:
 
<bash>zypper install -t pattern devel_C_C++
 
<bash>zypper install -t pattern devel_C_C++
zypper install cmake libqt4-devel qt4-x11-tools qt4-assistant-adp-devel gnuplot openmpi-devel boost-devel cgal-devel gmp-devel mpfr-devel metis-devel libQtWebKit-devel python-devel git mercurial rpm-build
+
zypper install cmake libqt4-devel qt4-x11-tools qt4-assistant-adp-devel gnuplot openmpi-devel boost-devel cgal-devel gmp-devel mpfr-devel libQtWebKit-devel python-devel git mercurial rpm-build
 
</bash></li>
 
</bash></li>
  
 
{{Installation/Linux/ExitRoot}}
 
{{Installation/Linux/ExitRoot}}
 +
 +
<li>'''Note''': In order for Open-MPI to be properly accessible, you will need to either logout and then log back in or run the following command in each terminal in the meantime:
 +
<bash>source /etc/profile.d/mpi-selector.sh</bash>
 +
</li>
 
</ol>
 
</ol>
  
Line 23: Line 27:
 
<bash>echo unset WM_THIRD_PARTY_USE_CMAKE_322 >> etc/prefs.sh
 
<bash>echo unset WM_THIRD_PARTY_USE_CMAKE_322 >> etc/prefs.sh
 
echo export WM_MPLIB=SYSTEMOPENMPI >> etc/prefs.sh
 
echo export WM_MPLIB=SYSTEMOPENMPI >> etc/prefs.sh
echo export METIS_SYSTEM=1 >> etc/prefs.sh</bash>
+
</bash>
  
 
More specifically, the commands should be executed something like this:
 
More specifically, the commands should be executed something like this:
Line 30: Line 34:
 
echo unset WM_THIRD_PARTY_USE_CMAKE_322 >> etc/prefs.sh
 
echo unset WM_THIRD_PARTY_USE_CMAKE_322 >> etc/prefs.sh
 
echo export WM_MPLIB=SYSTEMOPENMPI >> etc/prefs.sh
 
echo export WM_MPLIB=SYSTEMOPENMPI >> etc/prefs.sh
echo export METIS_SYSTEM=1 >> etc/prefs.sh
 
  
 
source etc/bashrc</bash>
 
source etc/bashrc</bash>
  
 +
And then, in order for the library {{tt|parMetisDecomp}} to build properly, you need to run once the following command:
 +
<bash>sed -i -e 's=\-L$(OPENMPI.*=$(PLIBS)=' $FOAM_SRC/decompositionMethods/parMetisDecomp/Make/options</bash>
 +
 +
'''Note''': Using the openSUSE's own Metis system installation did not work at the time of this writing (23:09, 19 December 2015 (CET)).
  
 
[[Category:Installing OpenFOAM on Linux]] [[Category:Installing OpenFOAM on openSUSE]]
 
[[Category:Installing OpenFOAM on Linux]] [[Category:Installing OpenFOAM on openSUSE]]

Latest revision as of 20:08, 26 March 2017

1 Introduction

This page is dedicated to preparing an openSUSE system for installing the foam-extend project OF Version 32ext.png.


2 openSUSE versions

2.1 openSUSE 42.1

Follow these steps:

  1. Switch to root mode (administrator), to install the necessary packages:
    sudo -s
    • If the 'sudo' command tells you're not in the sudoers list, then run:
      su -
  2. Install the necessary packages:
    zypper install -t pattern devel_C_C++
    zypper install cmake libqt4-devel qt4-x11-tools qt4-assistant-adp-devel gnuplot openmpi-devel boost-devel cgal-devel gmp-devel mpfr-devel libQtWebKit-devel python-devel git mercurial rpm-build
  3. Now exit from the root mode:
    exit
  4. Note: In order for Open-MPI to be properly accessible, you will need to either logout and then log back in or run the following command in each terminal in the meantime:
    source /etc/profile.d/mpi-selector.sh

Then continue following the instructions on the previous page, subsection Get the source code, although keep in mind to run the following commands before you run source etc/bashrc:

echo unset WM_THIRD_PARTY_USE_CMAKE_322 >> etc/prefs.sh
echo export WM_MPLIB=SYSTEMOPENMPI >> etc/prefs.sh

More specifically, the commands should be executed something like this:

cd ~/foam/foam-extend-3.2
 
echo unset WM_THIRD_PARTY_USE_CMAKE_322 >> etc/prefs.sh
echo export WM_MPLIB=SYSTEMOPENMPI >> etc/prefs.sh
 
source etc/bashrc

And then, in order for the library parMetisDecomp to build properly, you need to run once the following command:

sed -i -e 's=\-L$(OPENMPI.*=$(PLIBS)=' $FOAM_SRC/decompositionMethods/parMetisDecomp/Make/options

Note: Using the openSUSE's own Metis system installation did not work at the time of this writing (23:09, 19 December 2015 (CET)).