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

[OpenFOAM.org] OpenFOAM 3.0.1 from source in Ubuntu 16.04

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 4 Post By wyldckat
  • 1 Post By 2bias

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2016, 22:54
Unhappy OpenFOAM 3.0.1 from source in Ubuntu 16.04
  #1
New Member
 
JImmy Rojas
Join Date: Jun 2016
Posts: 3
Rep Power: 9
jandrey is on a distinguished road
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.
Attached Files
File Type: gz log.make.gz (7.3 KB, 12 views)
jandrey is offline   Reply With Quote

Old   June 17, 2016, 20:42
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   June 17, 2016, 22:32
Default
  #3
New Member
 
JImmy Rojas
Join Date: Jun 2016
Posts: 3
Rep Power: 9
jandrey is on a distinguished road
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!
jandrey is offline   Reply With Quote

Old   June 18, 2016, 16:20
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
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 @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.
2bias, MPJ, thab and 1 others like this.
wyldckat is offline   Reply With Quote

Old   April 10, 2017, 04:28
Default
  #5
New Member
 
Tobias Baier
Join Date: Jul 2009
Location: Darmstadt
Posts: 3
Rep Power: 16
2bias is on a distinguished road
The same fix was necessary for compiling OpenFOAM 2.3.x on Ubuntu 16.04. Thanks a lot!
MPJ likes this.
2bias is offline   Reply With Quote

Reply

Tags
openfoam 3.0.1, ubuntu 16.04


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
[OpenFOAM.org] OpenFOAM 5 source pack installation on Ubuntu 16.04 CjjJoy OpenFOAM Installation 23 June 6, 2018 10:55
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Community Contributions 27 April 16, 2014 15:14
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


All times are GMT -4. The time now is 09:12.