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

[OpenFOAM.com] install OpenFoam v1812 by source

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2019, 14:57
Default install OpenFoam v1812 by source
  #1
New Member
 
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 3
Maxwell87 is on a distinguished road
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
Maxwell87 is offline   Reply With Quote

Old   March 16, 2019, 18:30
Default
  #2
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 questions:
  1. Which Linux Distribution are you using?
  2. Which installation instructions are you following?
__________________
wyldckat is offline   Reply With Quote

Old   March 17, 2019, 07:10
Default
  #3
New Member
 
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 3
Maxwell87 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick questions:
  1. Which Linux Distribution are you using?
  2. Which installation instructions are you following?
yes, sorry
Xubuntu
i am following these instructions

https://www.openfoam.com/code/build-guide.php
Maxwell87 is offline   Reply With Quote

Old   March 18, 2019, 07:26
Default
  #4
New Member
 
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 3
Maxwell87 is on a distinguished road
Quote:
Originally Posted by Phicau View Post
Hi Lukas,

everything is alright, just follow the guide and continue building. The script is only stating that there are no executable files in that folder, because it has just been created and they will only appear as you compile the code.

Yes, you need to source every time you open a new terminal, unless you include the sourcing line in your .bashrc file.

Best,

Pablo
hi pablo i did have the same problem with OpenFoam 1812
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?
Maxwell87 is offline   Reply With Quote

Old   March 18, 2019, 07:35
Default source openFoam
  #5
New Member
 
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 3
Maxwell87 is on a distinguished road
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?
Maxwell87 is offline   Reply With Quote

Old   March 18, 2019, 07:42
Default
  #6
Senior Member
 
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 4,026
Rep Power: 48
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by Maxwell87 View Post
hi pablo i did have the same problem with OpenFoam 1812
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?

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.
LuckyTran is offline   Reply With Quote

Old   March 18, 2019, 08:10
Default
  #7
New Member
 
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 3
Maxwell87 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
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.
i am compiling right now, and then i will try to run it.
i will let you know, thanks for the reply
Maxwell87 is offline   Reply With Quote

Old   March 18, 2019, 11:47
Default
  #8
New Member
 
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 3
Maxwell87 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
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.
i compiled and all was great, i tried to make run first simulation, elbow, i used the command fluentMeshToFoam and it worked very good.
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
Maxwell87 is offline   Reply With Quote

Old   March 18, 2019, 12:22
Default Paraview v5.6
  #9
New Member
 
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 3
Maxwell87 is on a distinguished road
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? :|
Maxwell87 is offline   Reply With Quote

Old   March 18, 2019, 14:11
Default
  #10
New Member
 
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 3
Maxwell87 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
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.
hi, i really don't know where to put the line source ~/OpenFOAM/OpenFOAM-v1812/etc/bashrc in my bashrc

i have to source everytime i open the terminal... sor boring

Guides are not clear at all
Maxwell87 is offline   Reply With Quote

Old   March 18, 2019, 20:48
Default
  #11
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: 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.
__________________
wyldckat is offline   Reply With Quote

Old   March 19, 2019, 13:00
Default
  #12
New Member
 
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 3
Maxwell87 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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.
thanks, let's see what i can find
Maxwell87 is offline   Reply With Quote

Old   March 19, 2019, 14:41
Default
  #13
New Member
 
Giuseppe
Join Date: Mar 2019
Posts: 18
Rep Power: 3
Maxwell87 is on a distinguished road
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
Maxwell87 is offline   Reply With Quote

Old   May 8, 2019, 10:17
Default
  #14
New Member
 
S. Huang
Join Date: Feb 2019
Posts: 3
Rep Power: 3
csihuang is on a distinguished road
Quote:
Originally Posted by Maxwell87 View Post
thanks, let's see what i can find
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
csihuang is offline   Reply With Quote

Old   May 11, 2019, 08:42
Default
  #15
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
Quote:
Originally Posted by csihuang View Post
I was trying to compile OpenFOAM v1812 without success.
I got the error : Error building: openmpi-1.10.4
Quick questions:
  1. Which Linux Distribution are you using?
  2. Which installation instructions are you following?
__________________
wyldckat is offline   Reply With Quote

Old   May 20, 2019, 10:24
Default
  #16
New Member
 
S. Huang
Join Date: Feb 2019
Posts: 3
Rep Power: 3
csihuang is on a distinguished road
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
csihuang is offline   Reply With Quote

Old   May 11, 2020, 11:26
Default
  #17
New Member
 
le
Join Date: Nov 2009
Location: seoul
Posts: 23
Rep Power: 12
fsifsi is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick questions:
  1. Which Linux Distribution are you using?
  2. Which installation instructions are you following?
Hello Bruno,
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.
fsifsi 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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 11 November 1, 2016 06:43
[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


All times are GMT -4. The time now is 16:57.