|
[Sponsors] |
August 6, 2012, 17:14 |
How to upgrade centFOAM
|
#1 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
I have installed centFOAM early this May. How can I upgrade it to include OpenFOAM 2.1.1? Thanks.
|
|
August 7, 2012, 04:41 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Compile from source: http://www.openfoam.org/download/source.php
Edit: Alternatively rerun the centFOAM script. It has been updated to include OF-2.1.1 recently
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
August 7, 2012, 06:59 |
|
#3 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
__________________
|
||
August 7, 2012, 13:09 |
|
#4 | |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Thank you Bruno and Anton!
Quote:
|
||
August 13, 2012, 15:23 |
|
#5 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
when I input "blockMesh", the error comes
Code:
$HOME/centFOAM/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc/openmpi-1.5.3/lib/libmpi.so.1: ELF file OS ABI invalid |
|
August 13, 2012, 16:55 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
Code:
uname -m
__________________
|
||
August 13, 2012, 16:57 |
|
#7 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
||
August 13, 2012, 17:09 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
After you installed CentFOAM, did you modify anything in your personal "~/.bashrc" file?
Or better yet, did you change the reference from 2.1.0 to 2.1.1 or is there a repeated/similar line?
__________________
|
|
August 13, 2012, 17:12 |
|
#9 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Code:
alias netgen="$HOME/centFOAM/netgen-4.9.14-svn//bin/./start_netgen" alias engrid="$HOME/centFOAM/engrid-1.3//bin/./start_engrid" alias paraview="$HOME/centFOAM/paraview-3.10.1//bin/start_paraview" alias gmsh="$HOME/centFOAM/gmsh-2.5.0//bin/./start_gmsh" alias OF21=". $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1//etc/bashrc" alias paraFoam='paraFoam -builtin' OF21 |
|
August 13, 2012, 17:15 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
OK, what does this output:
Code:
ldd $(which blockMesh)
__________________
|
|
August 13, 2012, 17:18 |
|
#11 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
||
August 13, 2012, 17:20 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
I forgot to indicate that this command will show what libraries it's expected to load and from where it will try to load them!
This way we can try to figure out if there are any 32bit libraries that it is trying to load!
__________________
|
|
August 13, 2012, 17:24 |
|
#13 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Thanks.
Code:
libblockMesh.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libblockMesh.so (0x00002b23eb280000) libmeshTools.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libmeshTools.so (0x00002b23eb4b8000) libdynamicMesh.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so (0x00002b23eb939000) libOpenFOAM.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so (0x00002b23ebe29000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003a64200000) libstdc++.so.6 => $HOME/centFOAM/OpenFOAM/ThirdParty-2.1.0/platforms/linux64/gcc-4.6.2/lib64/libstdc++.so.6 (0x00002b23ec56a000) libm.so.6 => /lib64/libm.so.6 (0x0000003a63e00000) libgcc_s.so.1 => $HOME/centFOAM/OpenFOAM/ThirdParty-2.1.0/platforms/linux64/gcc-4.6.2/lib64/libgcc_s.so.1 (0x00002b23ec86f000) libc.so.6 => /lib64/libc.so.6 (0x0000003a63a00000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003a64600000) libtriSurface.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libtriSurface.so (0x00002b23eca85000) libfiniteVolume.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libfiniteVolume.so (0x00002b23eccf8000) libPstream.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so (0x00002b23ededc000) libz.so.1 => /usr/lib64/libz.so.1 (0x0000003a64a00000) /lib64/ld-linux-x86-64.so.2 (0x0000003a63600000) libfileFormats.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libfileFormats.so (0x00002b23ee0e7000) libmpi.so.1 => $HOME/centFOAM/OpenFOAM/ThirdParty-2.1.0/platforms/linux64Gcc/openmpi-1.5.3/lib/libmpi.so.1 (0x00002b23ee2f0000) libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003a6d800000) libutil.so.1 => /lib64/libutil.so.1 (0x0000003a72400000) |
|
August 13, 2012, 17:32 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Maybe it doesn't load any 32bit libraries, but then why is every single OpenFOAM related library being called from "OpenFOAM-2.1.0" and "ThirdParty-2.1.0" instead of the ones from 2.1.1?
Check in your "~/.bashrc" and see if you don't have more than one definition of "alias OF21"!? Because if you do, then you could/should:
For more on this subject: Advanced tips for working with the OpenFOAM shell environment
__________________
|
|
August 13, 2012, 17:44 |
|
#15 | |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Sorry, I just changed OF21 to call 2.1.0 and did not realized it when ldd $(which blockMesh) was run.
Now everything should be pointed to 2.1.1 and the output is Code:
$HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: error while loading shared libraries: $HOME/centFOAM/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc/openmpi-1.5.3/lib/libmpi.so.1: ELF file OS ABI invalid Quote:
|
||
August 13, 2012, 17:53 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Mmm... weird... OK, let's try to use the ThirdParty folder from 2.1.0 with OpenFOAM 2.1.1:
Code:
cd $HOME/centFOAM/OpenFOAM mv ThirdParty-2.1.1 ThirdParty-2.1.1_real ln -s ThirdParty-2.1.0 ThirdParty-2.1.1 ldd $(which blockMesh)
__________________
|
|
August 13, 2012, 18:29 |
|
#17 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Looks like GLIBCXX is missing.
Code:
$HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libblockMesh.so) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libblockMesh.so) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libmeshTools.so) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libmeshTools.so) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libdynamicMesh.so) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libdynamicMesh.so) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libtriSurface.so) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libtriSurface.so) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so) $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfileFormats.so) libblockMesh.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libblockMesh.so (0x00002af24b456000) libmeshTools.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libmeshTools.so (0x00002af24b68a000) libdynamicMesh.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libdynamicMesh.so (0x00002af24bb14000) libOpenFOAM.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so (0x00002af24c03d000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003a64200000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003a6a200000) libm.so.6 => /lib64/libm.so.6 (0x0000003a63e00000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003a69e00000) libc.so.6 => /lib64/libc.so.6 (0x0000003a63a00000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003a64600000) libtriSurface.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libtriSurface.so (0x00002af24c79f000) libfiniteVolume.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so (0x00002af24ca0f000) libPstream.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so (0x00002af24dbf0000) libz.so.1 => /usr/lib64/libz.so.1 (0x0000003a64a00000) /lib64/ld-linux-x86-64.so.2 (0x0000003a63600000) libfileFormats.so => $HOME/centFOAM/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfileFormats.so (0x00002af24ddfa000) libmpi.so.1 => $HOME/centFOAM/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc/openmpi-1.5.3/lib/libmpi.so.1 (0x00002af24e002000) libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003a6d800000) libutil.so.1 => /lib64/libutil.so.1 (0x0000003a72400000) |
|
August 13, 2012, 18:44 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
OK, I'm guessing the GCC version used is different... try copying the GCC 4.6.2 build from 2.1.1 to 2.1.0:
Code:
cp -r $HOME/centFOAM/OpenFOAM/ThirdParty-2.1.1_real/platforms/linux64/gcc-4.6.2 $HOME/centFOAM/OpenFOAM/ThirdParty-2.1.0/platforms/linux64/gcc-4.6.2 If this doesn't work, check what GCC version OpenFOAM 2.1.0 is using: Code:
ls -l $HOME/centFOAM/OpenFOAM/ThirdParty-2.1.0/platforms/linux64/ Code:
rm -r $HOME/centFOAM/OpenFOAM/ThirdParty-2.1.0/platforms/linux64/gcc-4.6.2 ln -s $HOME/centFOAM/OpenFOAM/ThirdParty-2.1.0/platforms/linux64/gcc-4.6.1 $HOME/centFOAM/OpenFOAM/ThirdParty-2.1.0/platforms/linux64/gcc-4.6.2
__________________
|
|
August 13, 2012, 19:00 |
|
#19 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Why do we need to copy the GCC 4.6.2 build from 2.1.1 to 2.1.0, if we try to make 2.1.1 work?
2.1.0 is using gcc-4.6.2. Thanks. |
|
August 14, 2012, 05:36 |
|
#20 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Because according to the other error message, the library "libstdc++.so" was not being found, which is located at GCC's lib folder.
This is why I was specifying the need for copying the other gcc version, because its folder was not being found and "/usr/lib64/libstdc++.so.6" is being picked up instead.
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CentFOAM Python Script Installation: Error | socon009 | OpenFOAM Installation | 2 | May 26, 2012 10:36 |
Upgrade CPU or GPU which one is better | RTAF | Hardware | 1 | January 27, 2012 10:06 |
check wmake in CentFOAM | pit | OpenFOAM | 12 | November 24, 2010 17:59 |
CentFOAM updated/cleaned | linnemann | OpenFOAM Installation | 0 | June 1, 2010 16:40 |
Upgrade P4 1.5 to P4 2.6 | JJJ | FLUENT | 3 | May 29, 2004 11:30 |