|
[Sponsors] |
[OpenFOAM.org] OpenFOAM 3.0.1 from source in Ubuntu 16.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 16, 2016, 23:54 |
OpenFOAM 3.0.1 from source in Ubuntu 16.04
|
#1 |
New Member
JImmy Rojas
Join Date: Jun 2016
Posts: 3
Rep Power: 10 |
icoFoam: command not found
Dear all, I am trying to install OpenFOAM from source on Ubuntu 16.04 LTS by following the instructions given here: https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04 The last command (icoFoam -help) does not work and so I am compressing and attaching the file log.make.gz as suggested to see if someone can please help me. I am supposed to "edit the file log.make and check if there are any error messages. It's the first error message that matters." I have spent 3 days trying to install OpenFOAM and nothing works. So I would truly appreciate your help. |
|
June 17, 2016, 21:42 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
You are missing flex++. Please check your packages
which flex++ /home/jimmy/OpenFOAM/OpenFOAM-3.0.0/platforms/linux64GccDPInt64Opt/lib/libtriSurface.so: undefined reference to `yyFlexLexer::yywrap()' Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
June 17, 2016, 23:32 |
|
#3 |
New Member
JImmy Rojas
Join Date: Jun 2016
Posts: 3
Rep Power: 10 |
Thank you so much for your response. Unfortunately, I am not sure what you mean by that... I am completely new to Ubuntu. According to another website all I have to do to address your comment is running this "sudo apt-get install flex"
But that didn't fix anything. Can you please be more specific? Thank you! |
|
June 18, 2016, 17:20 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer @jandrey: OK, this is a bit confusing... you mentioned in the thread's title that you wanted to install OpenFOAM 3.0.1, but then you followed the instructions for 3.0.0 ...
Instructions for OpenFOAM 3.0.1 and Ubuntu 16.04 have been up for sometime already and are present here: http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04 If you still want to install OpenFOAM 3.0.0 in Ubuntu 16.04, please let me know, but the fix is simple (starting with the OpenFOAM environment ready): Code:
#Go into OpenFOAM's main source folder cd $WM_PROJECT_DIR #Change how the flex version is checked find src applications -name "*.L" -type f | xargs sed -i -e 's=\(YY\_FLEX\_SUBMINOR\_VERSION\)=YY_FLEX_MINOR_VERSION < 6 \&\& \1=' ./Allwmake -j 4 > log.make 2>&1 @hjasak: This fix is also missing in foam-extend 3.2 and possibly in foam-extend 4.0. I'll send you the merge requests as soon as I can. |
|
April 10, 2017, 05:28 |
|
#5 |
New Member
Tobias Baier
Join Date: Jul 2009
Location: Darmstadt
Posts: 3
Rep Power: 17 |
The same fix was necessary for compiling OpenFOAM 2.3.x on Ubuntu 16.04. Thanks a lot!
|
|
Tags |
openfoam 3.0.1, ubuntu 16.04 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFOAM 5 source pack installation on Ubuntu 16.04 | CjjJoy | OpenFOAM Installation | 23 | June 6, 2018 11:55 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error | FerdiFuchs | OpenFOAM Community Contributions | 27 | April 16, 2014 16:14 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |