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

[OpenFOAM.org] Install OpenFOAM-2.4.0 in Ubuntu 18.04?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2019, 03:04
Default Install OpenFOAM-2.4.0 in Ubuntu 18.04?
  #1
New Member
 
Join Date: May 2019
Posts: 4
Rep Power: 3
luckyraymond is on a distinguished road
Hi All,

Did anyone install OpenFOAM-2.4.0 successfully in Ubuntu 18..04?

Instructions for OpenFOAM-2.3.0 are posted in Wiki, but not for OpenFOAM-2.4.0.

In the OpenFOAM-2.4.0 installation Wiki, the latest post is for Ubuntu 16.04, which I tried to follow but did not work for Ubuntu 18.04.
luckyraymond is offline   Reply With Quote

Old   May 15, 2019, 05:41
Default
  #2
New Member
 
Mattia
Join Date: May 2014
Location: Eindhoven/Bologna
Posts: 2
Rep Power: 0
mattiaricci13 is on a distinguished road
Dear luckyraymond,

why do you need that version in place of a more recent one?
mattiaricci13 is offline   Reply With Quote

Old   May 15, 2019, 09:28
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,922
Rep Power: 35
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Could you elaborate about "I tried to follow but did not work"? At what stage did you fail?
alexeym is offline   Reply With Quote

Old   May 16, 2019, 18:41
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 45
Rep Power: 122
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 answers:
  1. Following the instructions that were meant for OpenFOAM 2.3.1 on Ubuntu 18.04 from openfoamwiki.net would have worked...
  2. So that's what I've done just now, copy-paste-adapted those instructions to OpenFOAM 2.4.0 on Ubuntu 18.04: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04
@luckyraymond: Please let me know if these instructions work or not.
__________________
wyldckat is offline   Reply With Quote

Old   May 17, 2019, 02:53
Default
  #5
New Member
 
Join Date: May 2019
Posts: 4
Rep Power: 3
luckyraymond is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answers:
  1. Following the instructions that were meant for OpenFOAM 2.3.1 on Ubuntu 18.04 from openfoamwiki.net would have worked...
  2. So that's what I've done just now, copy-paste-adapted those instructions to OpenFOAM 2.4.0 on Ubuntu 18.04: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04
@luckyraymond: Please let me know if these instructions work or not.
Hi wyldckat,

Thank you for helping!
I tried your new post. It seems that CGAL version should be fixed to 4.6 instead of 4.3?

== Generating build files ==
Configuring libCGAL
-- Requested component: MPFR
-- Requested component: GMP
libCGAL is configured
-- Sources for CGAL component library 'CGAL_Core/CMakeLists.txt' detected
CMake Error at src/CMakeLists.txt:81 (add_subdirectory):
add_subdirectory given source
"/home/ubuntu/OpenFOAM/ThirdParty-2.4.0/CGAL-4.6/src/CGAL_Core/CMakeLists.txt"
which is not an existing directory.
Call Stack (most recent call first):
src/CMakeLists.txt:140 (configure_component)
luckyraymond is offline   Reply With Quote

Old   May 18, 2019, 13:04
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 45
Rep Power: 122
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: Yes, you're correct, I didn't remember that the CGAL version being used had changed. I've corrected the wiki page. Here are the commands you need to run in order to fix this:
Code:
of240
foam
sed -i -e 's/\(cgal_version=\)CGAL-4.6/\1cgal-system/' etc/config/CGAL.sh
of240
Then continue from step #10.

edit: The log file will then indicate this:
Code:
Build CGAL
    optional component was not found
which is fine, because the system's CGAL version is being used instead of 4.6.

Last edited by wyldckat; May 18, 2019 at 13:06. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Reply

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
[OpenFOAM.org] Installation of openfoam 6 on Ubuntu 18.04 EMurphy OpenFOAM Installation 1 March 7, 2019 18:32
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
How to install two version openfoam on ubuntu? MAHDI1366 OpenFOAM Installation 1 July 1, 2014 14:25
How to Install Openfoam 2.2.2 in Ubuntu 14.04? satty_00 OpenFOAM Installation 7 May 18, 2014 10:04
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55


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