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

[OpenFOAM.org] problem with instaling openfoam-2.0.0 on ubuntu 18.04

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

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2018, 12:18
Default problem with instaling openfoam-2.0.0 on ubuntu 18.04
  #1
New Member
 
Alireza
Join Date: Nov 2018
Posts: 8
Rep Power: 8
alireza.sh is on a distinguished road
Dear users
I am new in Open Foam and Ubuntu. I want to install the OpenFOAM-2.0.0 from source pack on Ubuntu 18.04 but i am failed in it. I do it according to below link:
https://openfoam.org/download/2-0-0-source/
I attached the Log_Allwmake file to see all of the errors.
can any one help me to solve the problem???
thanks a lot
Attached Files
File Type: zip log_Allwmake.zip (27.0 KB, 5 views)
alireza.sh is offline   Reply With Quote

Old   November 6, 2018, 20:17
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: Very interesting... I'm only seeing issues with compiling with Flex... try running the following commands:
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='
Then run Allwmake the same you've done before.
__________________
wyldckat is offline   Reply With Quote

Old   November 10, 2018, 07:00
Default
  #3
New Member
 
Alireza
Join Date: Nov 2018
Posts: 8
Rep Power: 8
alireza.sh is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: Very interesting... I'm only seeing issues with compiling with Flex... try running the following commands:
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='
Then run Allwmake the same you've done before.
Dear Bruno
Thanks a lot for your reply
I run the commands and i still see a lot of error. The new errors have been reported in the attached file.
I want to run the HACFOAM program and it is the reason why I should install the OpenFoam2.0.0.
can anyone help me how to solve this problem?? I have searched in the web a lot but i can not find any things.

Thanks a lot
Attached Files
File Type: zip log_Allwmake.zip (34.7 KB, 2 views)
alireza.sh is offline   Reply With Quote

Old   November 11, 2018, 18:19
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: I didn't notice it on the first log file (edit: the first log did have it), but this:
Code:
no ThirdParty sources found - skipping
indicates that you did not download and unpack the "ThirdParty-2.0.0.gtgz" package in the correct location. The unpacked folder is meant to be placed next to OpenFOAM-2.0.0, e.g.:
  • OpenFOAM
    • OpenFOAM-2.0.0
    • ThirdParty-2.0.0
This is necessary because Open-MPI 1.5.3 is needed for building with this version of OpenFOAM.

Last edited by wyldckat; November 11, 2018 at 18:20. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   November 12, 2018, 04:32
Unhappy
  #5
New Member
 
Alireza
Join Date: Nov 2018
Posts: 8
Rep Power: 8
alireza.sh is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: I didn't notice it on the first log file (edit: the first log did have it), but this:
Code:
no ThirdParty sources found - skipping
indicates that you did not download and unpack the "ThirdParty-2.0.0.gtgz" package in the correct location. The unpacked folder is meant to be placed next to OpenFOAM-2.0.0, e.g.:
  • OpenFOAM
    • OpenFOAM-2.0.0
    • ThirdParty-2.0.0
This is necessary because Open-MPI 1.5.3 is needed for building with this version of OpenFOAM.

Dear Bruno
I am very appreciative of your notification.I did it but I did not make the source again from the first because it take a lot of time (about 4h). I make the source on the previous one (about 5 minute) but also i have a lot of error.
Attached Files
File Type: zip log_Allwmake.zip (35.8 KB, 2 views)
alireza.sh is offline   Reply With Quote

Old   November 12, 2018, 18:26
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
OK, what at first seemed like a fairly simple fix with OpenFOAM 2.0.x, is now an ever expanding list of problems with compiling 2.0.0...


I will not have time before the upcoming weekend to test this myself and work through the issues to write a wiki page on this topic. My best suggestion right now is that you install Ubuntu 14.04 inside a virtual machine and follow the instructions given here: https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04
It's not a great solution, but it's the quickest one I'm able to provide right now.


If you can wait until this upcoming weekend (17-18 of November 2018), I may be able to look into this myself in more detail.
alireza.sh likes this.
wyldckat is offline   Reply With Quote

Old   November 14, 2018, 03:04
Default
  #7
New Member
 
Alireza
Join Date: Nov 2018
Posts: 8
Rep Power: 8
alireza.sh is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
OK, what at first seemed like a fairly simple fix with OpenFOAM 2.0.x, is now an ever expanding list of problems with compiling 2.0.0...


I will not have time before the upcoming weekend to test this myself and work through the issues to write a wiki page on this topic. My best suggestion right now is that you install Ubuntu 14.04 inside a virtual machine and follow the instructions given here: https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04
It's not a great solution, but it's the quickest one I'm able to provide right now.


If you can wait until this upcoming weekend (17-18 of November 2018), I may be able to look into this myself in more detail.

Dear Bruno
I appreciate your prompt response to my question. If it is possible for you to write a wiki page on this topic, i prefer to wait until 18 of November but I also try to install it on Ubuntu 14.04 as you suggested.
thanks a lot
alireza.sh is offline   Reply With Quote

Old   November 18, 2018, 03:17
Default
  #8
New Member
 
Alireza
Join Date: Nov 2018
Posts: 8
Rep Power: 8
alireza.sh is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
OK, what at first seemed like a fairly simple fix with OpenFOAM 2.0.x, is now an ever expanding list of problems with compiling 2.0.0...


I will not have time before the upcoming weekend to test this myself and work through the issues to write a wiki page on this topic. My best suggestion right now is that you install Ubuntu 14.04 inside a virtual machine and follow the instructions given here: https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04
It's not a great solution, but it's the quickest one I'm able to provide right now.


If you can wait until this upcoming weekend (17-18 of November 2018), I may be able to look into this myself in more detail.
Dear Bruno
According to your previous post, I run the Openfoam-2.0.0 on ubuntu14.04. But it is necessary for me to run it on Ubuntu 18.04
I would appreciate if you help me
Thanks a lot
alireza.sh is offline   Reply With Quote

Old   November 22, 2018, 06:12
Default problem with instaling openfoam-2.0.0 on ubuntu 14.04
  #9
New Member
 
Alireza
Join Date: Nov 2018
Posts: 8
Rep Power: 8
alireza.sh is on a distinguished road
Dear users
I tried to make the openfoam-2.0.0 on ubuntu 14.04. At first I tried to do it on ubuntu for i386 in virtual Box and it worked correctly.
I follow:https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04


After that i decided to make openfoam-2.0.0 on ubuntu 14.04 for x86_64 on a real machine. But I got the errors.
can any one help me to solve the problem???
Thanks a lot
Attached Files
File Type: zip log.make.zip (24.7 KB, 1 views)
alireza.sh is offline   Reply With Quote

Old   November 22, 2018, 06:35
Default
  #10
Senior Member
 
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21
Daniel_Khazaei will become famous soon enough
just looking at the first line:

Code:
gcc-4.4-4.4-4.4 -m64  -Wall -O3   -fPIC dirToString.c -o /home/alireza/OpenFOAM/OpenFOAM-2.0.0/wmake/platforms/linux64Gcc44/dirToString
you have some how messed up how OpenFOAM reads the gcc version, it should be:

Code:
gcc-4.4
not
Code:
gcc-4.4-4.4-4.4
probably executing one command multiple times at step 7?
check these two files here:
Code:
OpenFOAM-2.0.0/wmake/rules/linux*Gcc44/c
OpenFOAM-2.0.0/wmake/rules/linux*Gcc44/c++
Daniel_Khazaei is offline   Reply With Quote

Old   November 22, 2018, 11:46
Default
  #11
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
See the first two lines of your log file:
Code:
gcc-4.4-4.4-4.4 -m64  -Wall -O3   -fPIC dirToString.c -o /home/alireza/OpenFOAM/OpenFOAM-2.0.0/wmake/platforms/linux64Gcc44/dirToString
make: gcc-4.4-4.4-4.4: Command not found
There is an obvious typo in the compiler definition. Correct that by removing last 4 4s and retry.
fertinaz is offline   Reply With Quote

Old   November 22, 2018, 12:09
Default
  #12
New Member
 
Alireza
Join Date: Nov 2018
Posts: 8
Rep Power: 8
alireza.sh is on a distinguished road
Quote:
Originally Posted by Daniel_Khazaei View Post
just looking at the first line:

Code:
gcc-4.4-4.4-4.4 -m64  -Wall -O3   -fPIC dirToString.c -o /home/alireza/OpenFOAM/OpenFOAM-2.0.0/wmake/platforms/linux64Gcc44/dirToString
you have some how messed up how OpenFOAM reads the gcc version, it should be:

Code:
gcc-4.4
not
Code:
gcc-4.4-4.4-4.4
probably executing one command multiple times at step 7?
check these two files here:
Code:
OpenFOAM-2.0.0/wmake/rules/linux*Gcc44/c
OpenFOAM-2.0.0/wmake/rules/linux*Gcc44/c++
Dear Daniel
It is working.
Tanks a lot
alireza.sh 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
[waves2Foam] waves2Foam on an Ubuntu 18.04 with OpenFOAM 1712 JGadelho OpenFOAM Community Contributions 36 April 27, 2024 17:46
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
Wigley Hull with OpenFoam 2.0.0 problem Stephy OpenFOAM Bugs 19 October 12, 2020 11:22
[OpenFOAM.org] Problem of openFOAM 2.3.1 installation in Ubuntu 14.04LTS mukut OpenFOAM Installation 9 January 19, 2015 01:48
[Commercial meshers] Handling cyclic BC from gambit to openfoam for a cascade airfoil problem - OF 1.6 maverick OpenFOAM Meshing & Mesh Conversion 2 June 18, 2011 05:36


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