CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Open foam installation (https://www.cfd-online.com/Forums/openfoam-installation/255096-open-foam-installation.html)

sumitcool March 18, 2024 14:08

Open foam installation
 
Dear all,


I am working on OpenFoam 2.3.1. I am using source code to install on a cluster.
I want to install OpenFoam on a cluster. For this, I am using spack to load gcc 5.3 and Flexlexer. I created symbolic link for FlexLexer using command

ln -s $HOME/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/FlexLexer.h $HOME/Software/GNU/Flex/2.5.39/include/FlexLexer.h


But after compiling, i found some errors and at the end of log file, they were showing

make: Target 'application' was not remade because of errors.

this is my bashrc file in home

# Spack

. $HOME/Software/spack/share/spack/setup-env.sh

spack load gcc



# GNU Software

export PATH="$HOME/Software/GNU/Flex/2.5.39/bin:$PATH"

export LD_LIBRARY_PATH="$HOME/Software/GNU/Flex/2.5.39/lib:$LD_LIBRARY_PATH"



# Open MPI

module load openmpi/4.1.1



# OpenFOAM

source $HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc

export WM_NCOMPROCS=8


Kindly help me if some one knows how to figure it out.

Thank you


All times are GMT -4. The time now is 18:50.