|
[Sponsors] |
[foam-extend.org] How to install foam-extend 4.0 in UBUNTU 18.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 10, 2018, 15:40 |
How to install foam-extend 4.0 in UBUNTU 18.04
|
#1 |
New Member
Manoel Silvino B. A.
Join Date: Oct 2015
Location: Brazil
Posts: 3
Rep Power: 11 |
Hi all.
I need help to install foam-extend 4.0 in ubuntu 18.04. Is there a page with instructions for it? thanks. Last edited by silvino; August 10, 2018 at 15:45. Reason: correct text |
|
August 17, 2018, 14:45 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: I don't have time right now to test this myself, but please try the following steps:
With a bit of luck, this will work
__________________
|
|
August 18, 2018, 15:59 |
|
#3 |
New Member
Manoel Silvino B. A.
Join Date: Oct 2015
Location: Brazil
Posts: 3
Rep Power: 11 |
Apparently steps 1 and 2 were enough.
Thank you! |
|
August 28, 2018, 06:36 |
|
#4 | ||
Member
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11 |
First I want to thank wyldckat for his priceless and valuable help about OpenFOAM and foam-extend.
I also have same foam-extend 4.0 installation problem on Ubuntu 18.04. I followed the steps as wyldckat posted: 1) https://openfoamwiki.net/index.php/I...om_source_code 2) https://openfoamwiki.net/index.php/I...end-4.0/Ubuntu Then I checked my Allwmake.firstInstall log file and found something that seems an error to me. Here is the log file (unfortunately I can't upload whole because of upload limit) log_stage4.txt So I went to the Quote:
Quote:
What should I do now? Best regards, Emre |
|||
August 29, 2018, 10:36 |
|
#5 |
New Member
Igor Fleury
Join Date: Aug 2018
Posts: 4
Rep Power: 8 |
Hello, guys!
Also wanna thanks wyldckat, I'm a beginner at openfoam andmust say your posts are being really helpful to me. I'm also trying to install foamextend4 on ubuntu 18.04. Followed the steps from openfoamwiki and then used the commands wyldckat posted, but I'm afraid it's not installed correctly. When I ran the commands it gets me this back: bash: /home/igor/foam/foam-extend-4.0/ThirdParty/packages/gcc-4.9.2/platforms/linux64Gcc49DPOpt/etc/gcc-4.9.2.sh: No such file or directory Warning in /home/igor/foam/foam-extend-4.0/etc/settings.sh: Cannot find /home/igor/foam/foam-extend-4.0/ThirdParty/packages/gcc-4.9.2/platforms/linux64Gcc49DPOpt installation. Please install this compiler version or if you wish to use the system compiler, change the 'compilerInstall' setting to 'System' in this file Thanks so much for the attention. |
|
September 1, 2018, 14:48 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to Emre and Igor,
I haven't managed to properly look into this yet, but here is what I know so far:
I'll try to look into this in more detail as soon as I can. Best regards, Bruno |
|
September 1, 2018, 15:11 |
|
#7 |
Member
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11 |
Thank you very much for your response. I overcame the issue by installing ParaView:
Code:
sudo apt-get install paraview Best regards, Emre |
|
September 1, 2018, 22:59 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
@Emre: You can have paraFoam in foam-extend to open with the internal reader in ParaView by using this command:
Code:
paraFoam -nativeReader Code:
echo "alias paraFoamFE='paraFoam -nativeReader'" >> ~/.bashrc source ~/.bashrc @Igor: Wow, I'm glad it's working! If you have problems with ParaView, you can do the same as Emre. ----- For future readers, I've finished testing in a virtual machine and the new section https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04 - should work for Ubuntu 18.04. So for those trying to install for the first time:
|
|
October 5, 2018, 01:36 |
|
#10 |
New Member
BOLUN YANG
Join Date: Oct 2018
Posts: 3
Rep Power: 8 |
hi, everyone
I am a beginner to openfoam, trying to install foam-extend-4.0 on ubuntu 18.04. I followed the instruction from wiki and CHALMERS https://pingpong.chalmers.se/public/...o?item=4764601 But I failed in running .Allwmake.firstInstall, it ended up with Code:
make: Nothing to be done for 'all'. This system rpm command: rpm --force-debian ======================================== Starting ThirdParty Allwmake.pre ======================================== This system rpm command: rpm --force-debian ======================================== Starting ThirdParty AllMake: Stage1 ======================================== Building gcc-4.9.2 Package name : gcc-4.9.2 Package URL : http://ftpmirror.gnu.org/gcc/gcc-4.9.2/gcc-4.9.2.tar.gz RPM spec file name: gcc-4.9.2.spec RPM file name : Additional flags : Updating the ThirdParty environment variables before building package gcc-4.9.2 RPM file name : /home/user/foam/foam-extend-4.0/ThirdParty/rpmBuild/RPMS/x86_64/gcc-4.9.2-linux64Gcc49DPOpt.x86_64.rpm Making package gcc-4.9.2 using RPM. Building package gcc-4.9.2 using SPEC file : gcc-4.9.2.spec. Optional args: Code:
export WM_COMPILER=Gcc49 export WM_THIRD_PARTY_USE_GCC_492=1 export compilerInstall=System export WM_THIRD_PARTY_USE_BISON_27=1 export WM_MPLIB=SYSTEMOPENMPI export OPENMPI_DIR=/usr export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin export WM_THIRD_PARTY_USE_BISON_27=1 export QT_SELECT=qt4 export WM_CC='gcc-5' export WM_CXX='g++-5' export QT_BIN_DIR=/usr/bin/ |
|
October 7, 2018, 07:43 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer @e1905: I wrote the solution in my previous post... quoting from it:
Quote:
|
||
October 9, 2018, 04:43 |
|
#12 |
New Member
BOLUN YANG
Join Date: Oct 2018
Posts: 3
Rep Power: 8 |
very appreciate for your replying! I also followed the site you given, but the result is same. Anyway, I am now using ubuntu 16.04, and all worked well.
thanks |
|
November 9, 2018, 14:54 |
|
#13 | |
New Member
Tom
Join Date: Nov 2018
Posts: 23
Rep Power: 8 |
Hello Everyone,
Similar to E1905, I am a new user attempting to download Foam-Extend 4.0 for the first time, and am running into the same problem. When I run Allwmake.firstInstall, the script gets stuck here: Code:
make: Nothing to be done for 'all'. This system rpm command: rpm --force-debian ======================================== Starting ThirdParty Allwmake.pre ======================================== This system rpm command: rpm --force-debian ======================================== Starting ThirdParty AllMake: Stage1 ======================================== Building bison 2.7 Package name : bison-2.7 Package URL : http://ftpmirror.gnu.org/bison/bison-2.7.tar.gz RPM spec file name: bison-2.7.spec RPM file name : Additional flags : Updating the ThirdParty environment variables before building package bison-2.7 RPM file name : /home/russel60/foam/foam-extend-4.0/ThirdParty/rpmBuild/RPMS/x86_64/bison-2.7-linux64GccDPOpt.x86_64.rpm Making package bison-2.7 using RPM. Building package bison-2.7 using SPEC file : bison-2.7.spec. Optional args: Quote:
I appreciate any and all help! Thanks! |
||
November 11, 2018, 17:47 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer @russel60: Please try running the following commands:
Code:
cd $WM_THIRD_PARTY_DIR ./AllMake.pre Hopefully this way you will get something like a question or some feedback from the script asking you for something specific. But related to this, how are you keeping the two versions apart? What I mean is: how are you sourcing each "etc/bashrc" file on foam-extend 4.0 and OpenFOAM 6? Are you using aliases? |
|
November 12, 2018, 09:38 |
|
#15 |
New Member
Tom
Join Date: Nov 2018
Posts: 23
Rep Power: 8 |
Hi Wyldckat,
Answering your question first - I am using aliases to source foam-extend and openfoam. As far as I can tell, this is working fine. I test it by typing my aliases (either of6 or fe4), then typing other shortcuts like 'tut' or 'app' to see if I end up in the appropriate directory. As for the installation problems, I ran Code:
./AllMake.pre Code:
This system rpm command: rpm --force-debian ======================================== Starting ThirdParty AllMake: Stage1 ======================================== Building bison 2.7 Package name : bison-2.7 Package URL : http://ftpmirror.gnu.org/bison/bison-2.7.tar.gz RPM spec file name: bison-2.7.spec RPM file name : Additional flags : Updating the ThirdParty environment variables before building package bison-2.7 RPM file name : /home/russel60/foam/foam-extend-4.0/ThirdParty/rpmBuild/RPMS/x86_64/bison-2.7-linux64GccDPOpt.x86_64.rpm Download bison-2.7.tar.gz from : http://ftpmirror.gnu.org/bison/bison-2.7.tar.gz --2018-11-12 08:19:37-- http://ftpmirror.gnu.org/bison/bison-2.7.tar.gz Resolving ftpmirror.gnu.org (ftpmirror.gnu.org)... 208.118.235.200 Connecting to ftpmirror.gnu.org (ftpmirror.gnu.org)|208.118.235.200|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://mirrors.kernel.org/gnu/bison/bison-2.7.tar.gz [following] --2018-11-12 08:19:38-- http://mirrors.kernel.org/gnu/bison/bison-2.7.tar.gz Resolving mirrors.kernel.org (mirrors.kernel.org)... 149.20.37.36, 2001:4f8:4:6f:0:1994:3:14 Connecting to mirrors.kernel.org (mirrors.kernel.org)|149.20.37.36|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3137885 (3.0M) [application/x-gzip] Saving to: ‘bison-2.7.tar.gz’ bison-2.7.tar.gz 100%[========================================================================================================================================>] 2.99M 3.69MB/s in 0.8s 2018-11-12 08:19:39 (3.69 MB/s) - ‘bison-2.7.tar.gz’ saved [3137885/3137885] Making package bison-2.7 using RPM. Building package bison-2.7 using SPEC file : bison-2.7.spec. Optional args: tools/makeThirdPartyFunctionsForRPM: line 163: 19014 Segmentation fault (core dumped) rpmbuild --define "_topdir $buildBase" --dbpath $buildBase/rpmDB -bb ./SPECS/$specFile "$@" Installing package: bison-2.7 Uninstalling bison-2.7 using RPM: bison-2.7-linux64GccDPOpt.x86_64 Installing bison-2.7 using RPM file: /home/russel60/foam/foam-extend-4.0/ThirdParty/rpmBuild/RPMS/x86_64/bison-2.7-linux64GccDPOpt.x86_64.rpm error: open of /home/russel60/foam/foam-extend-4.0/ThirdParty/rpmBuild/RPMS/x86_64/bison-2.7-linux64GccDPOpt.x86_64.rpm failed: No such file or directory Done installing package I don't know enough about Linux / Bash to know if this matters, but I am running this on the "Bash on Ubuntu on Windows" GUI on my computer with windows 10. Sorry for the long reply, but I hope this helps better describe what I am dealing with on my end. Thanks! |
|
November 12, 2018, 18:16 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: OK, knowing about Bash on Windows was a critical piece of information. Furthermore, the new output revealed another critical detail:
Code:
tools/makeThirdPartyFunctionsForRPM: line 163: 19014 Segmentation fault (core dumped) rpmbuild --define "_topdir $buildBase" --dbpath $buildBase/rpmDB -bb ./SPECS/$specFile "$@" My fairly wild guess without testing this myself is that something is contaminating the shell environment. WSL has a somewhat weird idea of defining the PATH environment variable to start with the original one that Windows has got, which means that paths such as "/c/Windows/System32" will appear on the Ubuntu Bash, which means that Windows applications can be launched from within Ubuntu... which can lead to disastrous situations. So my suggestion is that you:
|
|
November 13, 2018, 13:05 |
|
#17 |
New Member
Tom
Join Date: Nov 2018
Posts: 23
Rep Power: 8 |
Thank you very much, Wyldckat! I was able to get it working. I don't know exactly what I did, but a combination of restarting my computer, uninstalling foam-extend, reinstalling foam-extend, and running the command you suggested was able to get it to download.
If I go into /ThirdParty and try to run an individual AllMake.stage, I sometimes still see it stall at Optional Args. I was able to run a tutorial or two and open them up in Paraview, so I'm going to operate under the assumption that everything is working properly. My linux knowledge is definitely not strong enough to debug it much further. Thanks! |
|
January 24, 2020, 06:01 |
|
#18 |
Member
Eren
Join Date: Aug 2018
Posts: 86
Rep Power: 9 |
Hello,
I did every step Mr.Santos said but it got stuck at ThirdParty AllMake: Stage2 Code:
======================================== Starting ThirdParty AllMake: Stage2 ======================================== Building openmpi 1.8.8 Package name : openmpi-1.8.8 Package URL : http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.8.tar.gz RPM spec file name: openmpi-1.8.8.spec RPM file name : Additional flags : --define Updating the ThirdParty environment variables before building package openmpi-1.8.8 RPM file name : /home/erenc/foam/foam-extend-4.0/ThirdParty/rpmBuild/RPMS/x86_64/openmpi-1.8.8-linux64GccDPOpt.x86_64.rpm Download openmpi-1.8.8.tar.gz from : http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.8.tar.gz --2020-01-24 12:51:23-- http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.8.tar.gz Resolving www.open-mpi.org (www.open-mpi.org)... 54.230.234.41, 54.230.234.15, 54.230.234.43, ... Connecting to www.open-mpi.org (www.open-mpi.org)|54.230.234.41|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.8.tar.gz [following] --2020-01-24 12:51:23-- https://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.8.tar.gz Connecting to www.open-mpi.org (www.open-mpi.org)|54.230.234.41|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://download.open-mpi.org/release/open-mpi/v1.8/openmpi-1.8.8.tar.gz [following] --2020-01-24 12:51:24-- https://download.open-mpi.org/release/open-mpi/v1.8/openmpi-1.8.8.tar.gz Resolving download.open-mpi.org (download.open-mpi.org)... 54.230.234.121, 54.230.234.128, 54.230.234.16, ... Connecting to download.open-mpi.org (download.open-mpi.org)|54.230.234.121|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 19718799 (19M) [application/x-tar] Saving to: ‘openmpi-1.8.8.tar.gz’ openmpi-1.8.8.tar.gz 100%[=================================================>] 18.80M 2.87MB/s in 6.7s 2020-01-24 12:51:32 (2.82 MB/s) - ‘openmpi-1.8.8.tar.gz’ saved [19718799/19718799] Making package openmpi-1.8.8 using RPM. Building package openmpi-1.8.8 using SPEC file : openmpi-1.8.8.spec. Optional args: --define _configureAdditionalArgs "$WM_THIRD_PARTY_USE_OPENMPI_188_ConfigureAdditionalArgs" Eren Edit: I followed Problems compiling foam-extend-4.0 + fsiFoam on Ubuntu+WSL this and I think it is okay. I'll probably have further issues but I think I can manage the rest, Thank you again Mr. Santos! Last edited by ErenC; January 24, 2020 at 16:10. |
|
April 15, 2020, 10:45 |
|
#19 |
New Member
Jitish
Join Date: Apr 2020
Posts: 12
Rep Power: 6 |
Hello wyldckat
I have run the git clone setup from https://openfoamwiki.net/index.php/I...om_source_code then ran the instructions here https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04 as you have instructed previously but as soon as type in source etc/bashrc I get the following errors, please help. bash: /opt/foam-extend-4.0/bin/foamGetSystemInfo: No such file or directory bash: /opt/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.0/etc/settings.sh: No such file or directory bash: /opt/foam-extend-4.0/etc/aliases.sh: No such file or directory bash: /opt/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.0/bin/foamCleanPath: No such file or directory I have been trying to get this to work for the past 3 days for Udemy course. I have even asked the question in another thread OpenFOAM-extend 4.1 installation but I am having no luck with this for some reason. I am running ubuntu 18.04. Any and all help will be greatly appreciated. |
|
June 21, 2022, 16:57 |
|
#20 |
New Member
Join Date: Jul 2017
Posts: 10
Rep Power: 9 |
Hi all
I followed the instructions from Wyldcat (thanks for contributing), and although it came up with an error during the build: https://www.dropbox.com/s/4nydr59mp5...Error.PNG?dl=0 I was able to run icoFoam cavity tutorial. Would I have to anticipate any problems as I continue to use fe40? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[CGNS] CGNS converters available | mbeaudoin | OpenFOAM Meshing & Mesh Conversion | 137 | December 14, 2018 05:20 |
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' | muth | OpenFOAM Running, Solving & CFD | 3 | August 27, 2018 05:18 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |