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

Installing foam-extend-4.1 from Source (Fedora 36)

Register Blogs Community New Posts Updated Threads Search

Rate this Entry

Installing foam-extend-4.1 from Source (Fedora 36)

Posted August 30, 2022 at 06:13 by elvis

Just a reminder what I did on my Fedora 36
http://https://openfoamwiki.net/inde...oam-extend-4.1
Code:
 dnf install -y  python3-pip m4 flex bison git git-core mercurial cmake cmake-gui openmpi openmpi-devel metis metis-devel metis64 metis64-devel
llvm llvm-devel zlib  zlib-devel  ....
Code:
{
  echo 'export PATH=/usr/local/cuda/bin:$PATH' 
  echo 'module load mpi/openmpi-x86_64' 
}>> ~/.bashrc

Code:
cd ~
mkdir foam && cd foam
git clone https://git.code.sf.net/p/foam-extend/foam-extend-4.1 foam-extend-4.1
Code:
{  
 echo '#source ~/foam/foam-extend-4.1/etc/bashrc' 
 echo "alias fe41='source ~/foam/foam-extend-4.1/etc/bashrc' "
}>> ~/.bashrc
Code:
 pip install --user PyFoam
Code:
cd ~/foam/foam-extend-4.1/etc/
cp prefs.sh-EXAMPLE prefs.sh
Edit prefs.sh ->which bison
/usr/bin/bison
Code:
# Specify system openmpi
# ~~~~~~~~~~~~~~~~~~~~~~
 export WM_MPLIB=SYSTEMOPENMPI
# System installed CMake
export CMAKE_SYSTEM=1
export CMAKE_DIR=/usr/bin/cmake

# System installed Python
export PYTHON_SYSTEM=1
export PYTHON_DIR=/usr/bin/python

# System installed PyFoam
export PYFOAM_SYSTEM=1

# System installed ParaView
export PARAVIEW_SYSTEM=1
export PARAVIEW_DIR=/usr/bin/paraview 

# System installed bison
export BISON_SYSTEM=1
export BISON_DIR=/usr/bin/bison

# System installed flex. FLEX_DIR should point to the directory where
# $FLEX_DIR/bin/flex is located
export FLEX_SYSTEM=1
export FLEX_DIR=/usr/bin/flex  #export FLEX_DIR=/usr

# System installed m4
export M4_SYSTEM=1
export M4_DIR=/usr/bin/m4
; which flex ; which m4 ... all the 3rdParty Stuff

Code:
 foam
Allwmake.firstInstall -j
Posted in Uncategorized
Views 847 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 22:56.