|
[Sponsors] |
Installation Procedure of OF220 on Ubuntu 10.04LTS |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 8, 2013, 16:52 |
Installation Procedure of OF220 on Ubuntu 10.04LTS
|
#1 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Dear all,
I have just been able to successfully compile OF220 on Ubuntu 10.04 LTS. My steps are given below. It should be noted that I previously have compiled other versions of OF on this machine, so I might have missed the need of certain dependencies. Furthermore, I have not compiled neither QT nor Paraview. 0. Download the source code from Code:
http://www.openfoam.org/download/source.php Code:
tar -xzf OpenFOAM-2.2.0.tgz tar -xzf ThirdParty-2.2.0.tgz Code:
~/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc Code:
foamCompiler=ThirdParty Code:
~/OpenFOAM/OpenFOAM-2.2.0/etc/config/settings.sh Code:
gcc_version=gcc-4.6.2 Code:
svn co svn://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch gcc-4.6.2 Code:
ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.4.tar.bz2 ftp://ftp.gnu.org/gnu/mpfr/mpfr-3.1.0.tar.bz2 http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.3.tar.bz2 https://gforge.inria.fr/frs/download.php/31831/scotch_6.0.0.tar.gz Code:
tar jxf openmpi-1.6.3.tar.bz2 tar jxf mpfr-3.1.0.tar.bz2 tar jxf gmp-5.0.4.tar.bz2 tar -xzf mpc-0.9.tar.gz tar -xzf scotch_6.0.0.tar.gz Code:
. ~/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc [CODE] (cd ~/OpenFOAM/ThirdParty-2.2.0/; ./makeGcc) [CODE] 4. After successfull compilation of gcc, then execute the following commands. I opened a new terminal: Code:
cd ~/OpenFOAM/OpenFOAM-2.2.0 . etc/bashrc export WM_NCOMPPROCS=8 # Here the number 8 is my number of processor ./Allwmake Code:
./Allwmake Good luck, Niels |
|
March 20, 2013, 11:55 |
|
#2 | |
Senior Member
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16 |
Hi Niels,
thanks a lot for your instruction. It also worked for me. I just had to change one more thing because in my system GCC/UPC multilib feature is enabled: In the makeGcc file I had to add that option after line 280 Quote:
Did you link OF2.2 to a previous paraview installation of an older openfoam version? If yes how can i manage to do that? Kind regards Chrisi |
||
March 20, 2013, 12:00 |
|
#3 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Chrisi,
Good to hear that you could use the guide. With respect to paraFoam, then I am not using OF220 for simulations, but merely to check for cross-version compatibility of some code, which I have released. Besides that I never use paraFoam, but rather paraView directly. At one of my computers I have downloaded ParaView3.98, and it works perfectly. Kind regards, Niels |
|
March 21, 2013, 08:49 |
|
#4 |
New Member
Eric Loo
Join Date: Mar 2009
Posts: 1
Rep Power: 0 |
Just in time for my project. Thanks for the easy-to-follow guide! Saved me a huge amount of time.
|
|
March 21, 2013, 15:15 |
|
#5 | |
Senior Member
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16 |
Hi,
I just realized that my installation dos not work for parallel calculations. Does somebody of you experienced the same? Can the small change in the makeGcc file be responsible for that? Where exactly I should store those files: Quote:
Quote:
Thanks in advance! Kind regards Chrisi |
||
March 22, 2013, 14:10 |
|
#6 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Chrisi,
All the operations, which you are referring to are executed in the ThirdParty-2.2.0 directory. With respect to parallel computing, I am sorry that I cannot help you, since I have tested the damBreak successfully in parallel. All I can ask is: Does the src/Pstream libraries compile successfully? Kind regards, Niels |
|
March 23, 2013, 05:03 |
|
#7 |
Senior Member
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16 |
Hi,
thanks for your hint. I recompiled everything after I executed the reffered things in the ThirdParty-2.2.0 directory. Afterwards besides from decomposePar every command for parallel calculations worked. Then I recompiled "decomposePar" in the application/utilities folder. Now everything is running properly also in parallel! Kind regards Chrisi |
|
March 23, 2013, 05:32 |
|
#8 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Good
/ Niels |
|
June 19, 2013, 20:18 |
|
#9 |
Member
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 14 |
Hi Niels,
I followed the same instruction. but when I did the . ~/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc, I got this error Warning in /home/bluesim/OpenFOAM/OpenFOAM-2.2.0/etc/config/settings.sh: Cannot find /home/bluesim/OpenFOAM/ThirdParty-2.2.0/platforms/linux64/gcc-4.6.2 installation. Please install this compiler version or if you wish to use the system compiler, change the 'foamCompiler' setting to 'system' How can i correct it? |
|
June 20, 2013, 17:09 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Dinesh: Which Linux distribution are you using? I ask this because it'll make it easier to assist you, in case you need additional packages for building Gcc 4.6.2. Best regards, Bruno
__________________
|
|
June 20, 2013, 18:11 |
|
#11 |
Member
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 14 |
Hi Bruno,
I am using Ubuntu 10.04.4. Thanks for the help. |
|
June 23, 2013, 17:15 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Dinesh,
Only today did I manage to look into this. Please try following these instructions: http://openfoamwiki.net/index.php/In...u#Ubuntu_10.04 - section Ubuntu 10.04 They were tested with Gcc 4.5.2, which is the version defined in OpenFOAM's settings, but you can attempt to adjust to the Gcc 4.6.2, while also keeping in mind to use "Gcc46" instead of "Gcc45", whenever it appears. Best regards, Bruno
__________________
|
|
June 24, 2013, 16:28 |
|
#13 |
Member
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 14 |
Hi Bruno,
Thanks for the link. I tried the procedure. But I can't proceed more than step 5. When i start with the make gcc command, it doesn't proceed after that |
|
June 24, 2013, 17:27 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Dinesh,
OK, then let's try to figure out what happened:
Bruno
__________________
|
|
June 24, 2013, 17:58 |
|
#15 |
Member
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 14 |
Hi,
1. The ubuntu architecture is x86_64 2. Yeah, I am following the exact procedure, step by step 3. No since this page contains procedure to download fresh OF 2.2 package, i am doing it in separate folder. 4. when i tried to source the bashrc, there was an error display, as first mentioned by me in this thread 5. I am trying to install gcc 4.6.2 6. the following command gave me the error ./makeGcc gcc-4.5.2 gmp-5.0.1 mpfr-2.4.2 mpc-0.8.1> mkgcc.log 2>&1 The error was bash: export: `gmp-5.0.1': not a valid identifier bash: export: `mpfr-2.4.2': not a valid identifier bash: export: `mpc-0.8.1': not a valid identifier is this error serious? |
|
June 24, 2013, 18:14 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Dinesh,
OK, I gave this a quick try, but I did not try to build Gcc. Nonetheless, the following steps are what I did differently from the wiki page:
Bruno
__________________
|
|
June 25, 2013, 16:07 |
|
#17 |
Member
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 14 |
Hi Bruno,
In addition to this error message, Warning in /home/bluesim/OpenFOAM/OpenFOAM-2.2.0/etc/config/settings.sh: Cannot find /home/bluesim/OpenFOAM/ThirdParty-2.2.0/platforms/linux64/gcc-4.6.2 installation. Please install this compiler version or if you wish to use the system compiler, change the 'foamCompiler' setting to 'system' which the tutorial itself says we would get, I am also getting the following error Cannot open configuration file /home/bluesim/OpenFOAM/ThirdParty-2.2.0/platforms/linux64Gcc/openmpi-1.6.3/share/openmpi/mpicc-wrapper-data.txt Error parsing data file mpicc: Not found is this error important or can be neglected along with the previous one? |
|
June 25, 2013, 18:04 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Dinesh,
That is indeed a very strange error message. I feels like that there is a conflict of options when Open-MPI was chosen as the MPI toolbox for OpenFOAM. The only thing that comes to mind is that you might have 2 or more lines in the file "~/.bashrc" that conflict with each other. Perhaps something like having both of the following lines: Code:
source $HOME/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc source $HOME/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI foamCompiler=ThirdParty WM_COMPILER=Gcc46
Best regards, Bruno
__________________
|
|
June 26, 2013, 20:22 |
|
#19 |
Member
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 14 |
Hi Bruno,
Thanks for the help. Just proceeded ignoring the error. Everything seems to work fine including the paraview. But the mpicc error seems to persist. For eg. when i give wmSET $FOAM_SETTINGS I get the following error Cannot open configuration file /home/bluesim/OpenFOAM/ThirdParty-2.2.0/platforms/linux64Gcc/openmpi-1.6.3/share/openmpi/mpicc-wrapper-data.txt Error parsing data file mpicc: Not found Will this be affecting my simulation results? |
|
June 27, 2013, 04:30 |
|
#20 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Dinesh,
As I said before, this is a strange message you're getting. It should not affect your simulations, but it's possible that you might not be able to run in parallel. What do the following commands give you? Code:
echo $WM_MPLIB echo $MPI_ARCH_PATH which mpicc which mpirun Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Openfoam 2.1 installation in ubuntu 12.04 | jsm | OpenFOAM Installation | 11 | May 7, 2012 05:56 |
openFOAM installation in ubuntu 11.10 | kirubhakaran | OpenFOAM Installation | 5 | February 17, 2012 03:16 |
Installation of OpenFOAM-1.6 on Ubuntu 9.10 | marval | OpenFOAM Installation | 2 | March 17, 2010 09:33 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |