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

[OpenFOAM.com] Problem installing Openfoam from source. Allwmake doesn't work

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2018, 10:48
Default Problem installing Openfoam from source. Allwmake doesn't work
  #1
Member
 
Martin
Join Date: Aug 2018
Posts: 31
Rep Power: 5
artymk4 is on a distinguished road
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
I manually edited file /home/<user>/.bashrc and added this at the end:
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
artymk4 is offline   Reply With Quote

Old   December 4, 2018, 18:03
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,962
Blog Entries: 45
Rep Power: 125
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
mcfdma and coco.dss like this.
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
allwmake, source, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 1 June 24, 2021 21:34
[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


All times are GMT -4. The time now is 03:20.