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

[OpenFOAM.org] Can't find installation instruction for Openfoam 2.4.x , on Ubuntu 16.04

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By wyldckat
  • 1 Post By hconel
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2017, 04:36
Default Can't find installation instruction for Openfoam 2.4.x , on Ubuntu 16.04
  #1
New Member
 
shashank
Join Date: May 2017
Posts: 1
Rep Power: 0
titanium is on a distinguished road
Hi everyone,
I want to work with OpenFoam 2.4.x. I have ubuntu 16.04.2 LTS installed on my machine. I looked for installation instructions for openfoam 2.4.x on ubuntu 16.04, but I couldn't find one.
The nearest ones I found were :

Openfoam 2.4.0 for ubuntu 16.04
Openfoam 2.4.x for ubuntu 15.04 and ubuntu 14.04

I want to avoid going back to ubuntu 14.04 to run openFoam 2.4.x.
I request everyone to kindly look into this issue.

Thanks
titanium is offline   Reply With Quote

Old   May 7, 2017, 07:46
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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: The following instructions that are written specifically for Ubuntu 15.04 should also work on Ubuntu 16.04: https://openfoamwiki.net/index.php/I...u#Ubuntu_15.04
titanium likes this.
__________________
wyldckat is offline   Reply With Quote

Old   September 26, 2018, 17:10
Default
  #3
Member
 
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 47
Rep Power: 8
hconel is on a distinguished road
Hello, did this work for you? I get the following errors while running ./Allwmake in $WM_THIRD_PARTY_DIR at step 9:

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


-- Sources for CGAL component library 'CGAL_Qt4/CMakeLists.txt' detected
CMake Error at src/CMakeLists.txt:81 (add_subdirectory):
  add_subdirectory given source
  "/home/hconel/OpenFOAM/ThirdParty-2.4.x/CGAL-4.6/src/CGAL_Qt4/CMakeLists.txt"
  which is not an existing directory.
Call Stack (most recent call first):
  src/CMakeLists.txt:140 (configure_component)


-- Sources for CGAL component library 'CGAL_Core/CMakeLists.txt' detected
CMake Error at src/CMakeLists.txt:81 (add_subdirectory):
  add_subdirectory given source
  "/home/hconel/OpenFOAM/ThirdParty-2.4.x/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)


-- Sources for CGAL component library 'CGAL_Qt3/CMakeLists.txt' detected
CMake Error at src/CMakeLists.txt:81 (add_subdirectory):
  add_subdirectory given source
  "/home/hconel/OpenFOAM/ThirdParty-2.4.x/CGAL-4.6/src/CGAL_Qt3/CMakeLists.txt"
  which is not an existing directory.
Call Stack (most recent call first):
  src/CMakeLists.txt:140 (configure_component)


-- Sources for CGAL component libraries 'CGAL_Core/CMakeLists.txt;CGAL_ImageIO/CMakeLists.txt;CGAL_Qt3/CMakeLists.txt;CGAL_Qt4/CMakeLists.txt' detected
== Generating build files (DONE) ==

-- Configuring incomplete, errors occurred!
See also "/home/hconel/OpenFOAM/ThirdParty-2.4.x/build/linux64Gcc/CGAL-4.6/CMakeFiles/CMakeOutput.log".
See also "/home/hconel/OpenFOAM/ThirdParty-2.4.x/build/linux64Gcc/CGAL-4.6/CMakeFiles/CMakeError.log".
+ exit 1

========================================
Done ThirdParty Allwmake
========================================
hconel is offline   Reply With Quote

Old   September 26, 2018, 18:01
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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: My guesses are that either:
  1. The "CGAL-4.6.tar.bz2" did not download correctly or did not unpack correctly.
    • My guess here is because of messages like this one:
      Code:
        add_subdirectory given source
        "/home/hconel/OpenFOAM/ThirdParty-2.4.x/CGAL-4.6/src/CGAL_Core/CMakeLists.txt"
        which is not an existing directory.
      So it is possible that the folder "CGAL-4.6/src/CGAL_Core" does not exist, hence the error.
  2. Or that you're using another Ubuntu version, instead of Ubuntu 16.04?
wyldckat is offline   Reply With Quote

Old   September 27, 2018, 07:30
Default
  #5
Member
 
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 47
Rep Power: 8
hconel is on a distinguished road
Yes, it is Ubuntu 16.04.5 LTS. Also, CGAL-4.6/src/CGAL_Core directory also exists. I have gedit'ed all these files from terminal by copy-pasting the paths and they exist. Couldn't figure out the problem yet...
hconel is offline   Reply With Quote

Old   September 27, 2018, 19:47
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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: OK, I've got good news... we don't need to build CGAL 4.6, we can use CGAL 4.7 that comes with Ubuntu 16.04. So from the instructions that I wrote a few years ago then for OpenFOAM 2.4.0: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 - you can use the following commands to fix the current issue:
  1. Install the package "libcgal-dev", by running this command:
    Code:
    sudo apt-get install libcgal-dev
  2. Change the CGAL version to be used, by running the following commands (as normal user):
    Code:
    cd ~/OpenFOAM
    sed -i -e 's/^\(cgal_version=\).*/\1cgal-system/' OpenFOAM-2.4.0/etc/config/CGAL.sh
  3. Then refresh the shell environment, by running:
    Code:
    of24x
    if you were in a new terminal, or:
    Code:
    wmSET $FOAM_SETTINGS
    if you had already activated the OpenFOAM 2.4.x shell environment.
  4. Now you can do step #9 from here: https://openfoamwiki.net/index.php/I...u#Ubuntu_15.04 - once again and proceed forward.


For future reference, CMake 3.5 that comes with Ubuntu 16.04 does not work properly with CGAL 4.6, hence the weird error messages. The workaround for building with CGAL 4.6 is to build the custom version of CMake 2.8.12, as explained here: OpenFOAM 2.4.0 and Fedora 22: error building CGAL - post #2.
wyldckat is offline   Reply With Quote

Old   September 28, 2018, 03:04
Default
  #7
Member
 
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 47
Rep Power: 8
hconel is on a distinguished road
While I was digging the problem last night, I came across that step you mentioned in 2.4.0 installation but it was too late to give it a shot. Today I'll try and refresh the post.
Thanks so much Mr. Santos. Whenever I have a problem about installing OF, it is always you who show at the top of a search. You surely make world a better place to live for foamers.
wyldckat likes this.
hconel is offline   Reply With Quote

Old   September 30, 2018, 08:28
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Many thanks to you as well! I've now added the section for 16.04: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 - I haven't tested it myself, but I'm ~95% certain it should work
aerospaceman likes this.
wyldckat is offline   Reply With Quote

Old   October 20, 2018, 21:53
Default
  #9
Member
 
Peng Liang
Join Date: Mar 2014
Posts: 60
Rep Power: 12
tjliang is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: The following instructions that are written specifically for Ubuntu 15.04 should also work on Ubuntu 16.04: https://openfoamwiki.net/index.php/I...u#Ubuntu_15.04
Hi Bruno,


is there any installation instructions for openfoam 2.4.x on Ubuntu 18? I have searched the posts here and can only find 2.3.1 on ubuntu 18. Thanks.


Bests,





Peng
tjliang is offline   Reply With Quote

Old   October 24, 2018, 18:17
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Quote:
Originally Posted by tjliang View Post
is there any installation instructions for openfoam 2.4.x on Ubuntu 18? I have searched the posts here and can only find 2.3.1 on ubuntu 18. Thanks.
Quick answer: Not yet, but please try the following:
  1. Do steps 1 to 4 from the instructions for Ubuntu 18.04 + OpenFOAM 2.3.1: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04
  2. Then do steps #5 and #6 on the instructions for Ubuntu 16.04 + OpenFOAM 2.4.x: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04
  3. Then run these commands (it is a modified from #7 on 2.3.1):
    Code:
    sed -i -e 's/gcc/\$(WM_CC)/' OpenFOAM-2.4.x/wmake/rules/linux64Gcc/c
    sed -i -e 's/g++/\$(WM_CXX)/' OpenFOAM-2.4.x/wmake/rules/linux64Gcc/c++
  4. Then do steps #8 and #9 from the instructions for 2.3.1, but replace any mentioned to "2.3.1" with "2.4.x".
  5. Then do steps #10 and #11 from 2.4.x...
  6. Then step #12 from 2.3.1...
  7. Then continue from step #12 on 2.4.x...

Sorry for not creating the wiki page right now for it, but I don't have time to test it... if it works or not for you, please let me know!
wyldckat is offline   Reply With Quote

Old   January 10, 2020, 05:20
Default
  #11
Member
 
Callum Guy
Join Date: Dec 2019
Location: Scotland
Posts: 44
Rep Power: 7
CallumG is on a distinguished road
Hi, I know this is an old thread but I followed your instructions wyldckat to get 2.4.x on ubuntu 18.04 and it works for the most part, but I don't think it compiles ParaView properly.

On running the cavity tutorial after blockMesh and icoFoam commands, if I run paraFoam it returns:

Code:
FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
./Allwclean
./Allwmake
On attempting ./Allwmake it returns:

Code:
ERROR: ParaView not found in /home/callum/OpenFOAM/ThirdParty-2.4.x/platforms/linux64Gcc/ParaView-4.1.0
I have attached a log file I'd be grateful if someone could tell me how to get paraview to compile!

Cheers
Callum
Attached Files
File Type: txt logmakePV.txt (5.6 KB, 2 views)

Last edited by CallumG; January 29, 2020 at 14:42.
CallumG is offline   Reply With Quote

Old   February 19, 2020, 13:42
Default
  #12
New Member
 
Colin Bettini
Join Date: Feb 2020
Posts: 1
Rep Power: 0
Colin_B is on a distinguished road
I have the exact same issue
Colin_B is offline   Reply With Quote

Old   February 19, 2020, 18:36
Default
  #13
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
avoid installing 10+ year old technology (i.e. 2.4)?
HPE is offline   Reply With Quote

Old   February 20, 2020, 04:19
Default
  #14
New Member
 
Stu
Join Date: May 2016
Location: Prague
Posts: 6
Rep Power: 10
fluidstu is on a distinguished road
Quote:
Originally Posted by HPE View Post
avoid installing 10+ year old technology (i.e. 2.4)?
It was released in 2015. Avoid littering legitimate questions with snarky, lazy comments.

Last edited by fluidstu; February 20, 2020 at 05:26.
fluidstu is offline   Reply With Quote

Old   February 20, 2020, 12:46
Default
  #15
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
So you raid, and harrass the threads I write...

Copy-pasted:

Its engine is based on 2.x - which was first released in 2011. What you don't understand is there is a reason why the version 3.0 was called 3.0, but not 2.5, as it underwent huge change.
HPE is offline   Reply With Quote

Reply


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
CFX-Pre problem, pls help!!! cth_yao CFX 0 February 17, 2012 01:52
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 07:32
OpenFOAM Installation Ubuntu 9.04 Problems Sumontro OpenFOAM Installation 8 July 21, 2009 22:40
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30


All times are GMT -4. The time now is 07:47.