|
[Sponsors] |
[OpenFOAM.com] install OpenFoam v1812 by source |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 16, 2019, 14:57 |
install OpenFoam v1812 by source
|
#1 |
New Member
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 7 |
hi guys, i had some issue before, trying to install openfoam with docker, so i am trying now to install by source.
i am following step by step all informations on the site: i installed everything from prerequisities section, i dowloaded openfoam and thirdparty, and unpacked then in my home. i have the two folders in my home and i entered the line source source ~/OpenFOAM/OpenFOAM-v1812/etc/bashrc in my bashrc so what now? i didn't understand how can i build and compile openfoam could you explain step by step? it's not clear at all |
|
March 16, 2019, 18:30 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick questions:
__________________
|
|
March 17, 2019, 07:10 |
|
#3 | |
New Member
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 7 |
Quote:
Xubuntu i am following these instructions https://www.openfoam.com/code/build-guide.php |
||
March 18, 2019, 07:26 |
|
#4 | |
New Member
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 7 |
Quote:
i wrote the same in terminal and i recieve the same error text. so, what should i do? include the line source ~/OpenFOAM/OpenFOAM-v1812/etc/bashrc in my bash? but i don't understand, where should i past this line? |
||
March 18, 2019, 07:35 |
source openFoam
|
#5 |
New Member
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 7 |
hi guys so, the main problem i had, compiling open foam is that:
i unpack the folders, i open terminal in my home, in the openfoam folder and i write source ~/OpenFOAM/OpenFOAM-v1812/etc/bashrc that's what i get in return; no completion added for /home/myname/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/bin ... incorrect platform, or not yet compiled? so what should i do now? go on with the installation? because other users adviced me to past and save the line source ~/OpenFOAM/OpenFOAM-v1812/etc/bashrc in my bashrc should i do that before start compiling? or after? another question, where should i past it in my bashrc? at what number line? |
|
March 18, 2019, 07:42 |
|
#6 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 66 |
Quote:
Yes you either need to source it every time you open a terminal or you put it into one of your bash scripts (which does it automatically). If you have no idea where it goes, then put it at the bottom or end of your existing bash file. That's because everything in the bash files get executed when the terminal is opened. If you type commands into the terminal (after you open a terminal) then everything in the bash file has already been executed. Putting it at the bottom of your bash reproduces this order. The line doesn't strictly have to be at the bottom, but without knowing the contents of your bash file, we can't say. We have no idea what other sourcing you are already doing. Depending on your setup this can be the bash file bashrc file or localsh file. Personally I prefer localsh. Have you already compiled openfoam or are you currently compiling openfoam? The first time you source openfoam this way, you'll of course get a lot of messages for things that don't yet exist. Compile openfoam and then they should go away the next time. |
||
March 18, 2019, 08:10 |
|
#7 | |
New Member
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 7 |
Quote:
i will let you know, thanks for the reply |
||
March 18, 2019, 11:47 |
|
#8 | |
New Member
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 7 |
Quote:
but then i closed the terminal, i tried again, and i got the message: "the command fluentMeshToFoam can't be found but you can install with sudo apt install openfoam" if i do i use the version 4.0 and not the 18.12 |
||
March 18, 2019, 12:22 |
Paraview v5.6
|
#9 |
New Member
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 7 |
hi there i am trying to install Paraview 5.6 on xubuntu, after compiling openfoam18.12
after i have written the command ./makeParaView that's what i get at the end of the install process CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not find a package configuration file provided by "Qt5X11Extras" with any of the following names: Qt5X11ExtrasConfig.cmake qt5x11extras-config.cmake Add the installation prefix of "Qt5X11Extras" to CMAKE_PREFIX_PATH or set "Qt5X11Extras_DIR" to a directory containing one of the above files. If "Qt5X11Extras" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): VTK/GUISupport/Qt/CMakeLists.txt:71 (find_package) what's wrong? :| |
|
March 18, 2019, 14:11 |
|
#10 | |
New Member
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 7 |
Quote:
i have to source everytime i open the terminal... sor boring Guides are not clear at all |
||
March 18, 2019, 20:48 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: I don't have step-by-step installation instructions for OpenFOAM-v1812, but you can find similar ones for the previous version v1806 here: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04
You can try and read/follow them, to get a better sense of how building from source code can be done.
__________________
|
|
March 19, 2019, 13:00 |
|
#12 | |
New Member
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 7 |
Quote:
|
||
March 19, 2019, 14:41 |
|
#13 |
New Member
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 7 |
hi guys, i understood what to do, the only problem was that on Xubuntu
my system .bashrc file was totally empty anyway, i pasted the line source ~/OpenFOAM/OpenFOAM-v1812/etc/bashrc and all works great now i can avoid to source the enviroment everytime finally |
|
May 8, 2019, 10:17 |
|
#14 |
New Member
S. Huang
Join Date: Feb 2019
Posts: 3
Rep Power: 7 |
I was trying to compile OpenFOAM v1812 without success.
I got the error : Error building: openmpi-1.10.4 You have managed to successfully compile v1812 and it works. I need your help. Chester Mail address: chester.huang@boem.gov |
|
May 11, 2019, 08:42 |
|
#15 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quote:
__________________
|
||
May 20, 2019, 10:24 |
|
#16 |
New Member
S. Huang
Join Date: Feb 2019
Posts: 3
Rep Power: 7 |
I appreciate your response and help.
Linux Distribution used: SUSE Linux Enterprise Server 12 SP1 I follow the instructions as follows: https://www.openfoam.com/code/build-guide.php |
|
May 11, 2020, 11:26 |
|
#17 | |
Member
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16 |
Quote:
I also install OF1812 in Centos 7 without admin rights, with your hint: cd $WM_THIRD_PARTY_DIR sed -i -e 's=--with-system-zlib==' makeGcc ./makeGcc -no-multilib > log.makeGcc 2>&1 wmRefresh I can install Gcc 4.8.5 in thirdparty then, in OF1812, ./Allwmake give libtool: error: require no space between '-L' and '-lrt' make[2]: *** [mca_pml_ucx.la] Error 1 Error building: openmpi-1.10.4 Could you give some help, please. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 03:30 |
[Other] How to use finite area method in official OpenFOAM 2.2.0? | Detian Liu | OpenFOAM Meshing & Mesh Conversion | 4 | November 3, 2015 03:04 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 11:32 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 11:44 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |