Installing foam-extend-3.1 on Slackware Linux

From Akionux-wiki
Revision as of 11:31, 25 July 2015 by Akionux (talk | contribs) (Steps)
Jump to: navigation, search


This is my report of installing OpenFOAM foam-extend-3.1 on Slackware Linux 14.1.

Test environment

Slackware Linux 14.1


I referred OpenFOAMWiki[1], please check it for more detail.

Before installing, be sure not to load etc/bashrc(or etc/cshrc) of other OpenFOAM projects(e.g. OpenFOAM-2.3.x). Loading etc/bashrc of other projects seems problematic because of overlapping environment variables. For the coexistence of multiple projects, Put following lines to ~/.bashrc(or etc/.cshrc):

alias of23='source $HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc'
alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc'

which allows to choose which project is used.

Make foam under your home directory and download the source code:

cd ~
mkdir foam
cd foam
git clone git:// foam-extend-3.1

Load bashrc(or etc/cshrc):

cd ~/foam/foam-extend-3.1
source etc/bashrc 

Set the path of qmake to QT_BIN_DIR:

export QT_BIN_DIR=/usr/bin/qmake
echo "export QT_BIN_DIR=/usr/bin/qmake" >> etc/



Make run directory:

mkdir -p $FOAM_RUN

run command is aliased to changing dir to run directory.


tut is also aliased to changing dir to the tutorial directory:


Trouble Shooting

paraFoam not working

I faced following errors when I run paraFoam:

% paraFoam
created temporary 'cavity.OpenFOAM'
ERROR: In /home/akio/OpenFOAM/foam-extend-3.1/ThirdParty/rpmBuild/BUILD/ParaView-v4.0.1-source/VTK/GUISupport/Qt/vtkEventQtSlotConnect.cxx, line 68
vtkEventQtSlotConnect (0x134e6e0): Cannot connect NULL objects.

ERROR: In /home/akio/OpenFOAM/foam-extend-3.1/ThirdParty/rpmBuild/BUILD/ParaView-v4.0.1-source/VTK/GUISupport/Qt/vtkEventQtSlotConnect.cxx, line 68
vtkEventQtSlotConnect (0x134e6e0): Cannot connect NULL objects.

/home/akio/OpenFOAM/foam-extend-3.1/bin/paraFoam: 122 行: 19765 Segmentation fault      (コアダンプ) paraview --data="$caseFile"

Those errors were caused by environment variables of OpenFOAM-2.3.x.


  1. Installation/Linux/foam-extend-3.1 - OpenFOAMWiki