|
[Sponsors] |
[OpenFOAM.com] Problem installing Openfoam from source. Allwmake doesn't work |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 23, 2018, 10:48 |
Problem installing Openfoam from source. Allwmake doesn't work
|
#1 |
Member
Martin
Join Date: Aug 2018
Posts: 33
Rep Power: 8 |
I have Ubuntu and I installed OpenFOAM from source. It is installed in /home/<user>/OpenFOAM/OpenFOAM-v1806
When I run "icoFoam -help" in Terminal, I get this: Code:
Command 'icoFoam' not found, but can be installed with: sudo apt install openfoam source ~/OpenFOAM/OpenFOAM-v1806/etc/bashrc After some reading I found out I might need to compile Openfoam first. So I ran ./Allwmake and got this error. What am I doing wrong? Code:
$ ./Allwmake ======================================== 2018-11-23 15:43:15 +0100 Starting OpenFOAM-v1806 Gcc system compiler linux64GccDPInt32Opt, with SYSTEMOPENMPI openmpi-system flex -o /home/ubuntwo/OpenFOAM/OpenFOAM-v1806/wmake/platforms/linux64Gcc/wmkdep.c wmkdep.l && gcc -m64 -DOPENFOAM=1806 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -O3 -fPIC /home/ubuntwo/OpenFOAM/OpenFOAM-v1806/wmake/platforms/linux64Gcc/wmkdep.c -o /home/ubuntwo/OpenFOAM/OpenFOAM-v1806/wmake/platforms/linux64Gcc/wmkdep /bin/sh: 1: flex: not found Makefile:76: recipe for target '/home/ubuntwo/OpenFOAM/OpenFOAM-v1806/wmake/platforms/linux64Gcc/wmkdep' failed make: *** [/home/ubuntwo/OpenFOAM/OpenFOAM-v1806/wmake/platforms/linux64Gcc/wmkdep] Error 127 |
|
December 4, 2018, 18:03 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: "flex not found" means that the "flex" package hasn't been installed. You should follow the instructions given here: https://www.openfoam.com/documentati...quirements.php - it's indicated at the start of the instructions for source code page that you provided
__________________
|
|
Tags |
allwmake, source, ubuntu |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 19:13 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
Re : Problem Installing OpenFOAM on Centos -5.3 | mohanphy | OpenFOAM Installation | 1 | February 7, 2010 20:09 |