|
[Sponsors] |
Installing OpenFOAM 1.7.0 on openSUSE and CentOS 5.5 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 1, 2013, 22:03 |
Installing OpenFOAM 1.7.0 on openSUSE and CentOS 5.5
|
#1 | |
Senior Member
Join Date: Nov 2012
Posts: 171
Rep Power: 14 |
Quote:
I also had the similar problem as follows: lnInclude/Switch.H:140: note: candidates are: Foam::Switch::Switch(int) lnInclude/Switch.H:134: note: Foam::Switch::Switch(bool) lnInclude/Switch.H:62: note: Foam::Switch::Switch(const Foam::Switch&) make: *** [Make/linux64GccDPOpt/argList.o] Error 1 + wmake libso lagrangian/basic wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file passiveParticle/passiveParticleCloud.C Making dependency list for source file indexedParticle/indexedParticleCloud.C I am installing OF 1.7.0 in OpenSuse. I used the same source package to install it on my PC and that is successful. But when I did it on another machine, the error appears, and lots of the following appears: /usr/bin/ld: cannot find -lfiniteVolume Does anybody know how to solve it? best regards, H |
||
January 2, 2013, 17:37 |
|
#2 |
Senior Member
Join Date: Nov 2012
Posts: 171
Rep Power: 14 |
Hi Bruno,
When I compiled OF170, the following errors appear, and they are as follows(This is the first error in the compilation process): ....... + WM_OPTIONS=linux64GccDPOptOPENMPI + wmake libso mpi '/users/hz283/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so' is up to date. + wmake libo OSspecific/POSIX '/users/hz283/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libOSspecific.o' is up to date. + wmake libso OpenFOAM SOURCE=global/global.Cver ; sed -e 's/VERSION_STRING/1.7.0/' -e 's/BUILD_STRING/1.7.0-21131bcbd876/' $SOURCE > Make/linux64GccDPOpt/global.C; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/users/hz283/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/users/hz283/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/users/hz283/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linux64GccDPOpt/global.C -o Make/linux64GccDPOpt/global.o SOURCE=global/argList/argList.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/users/hz283/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/users/hz283/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/users/hz283/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/argList.o lnInclude/dictionaryTemplates.C: In member function ‘T Foam::dictionary::lookupOrDefault(const Foam::word&, const T&, bool, bool) const [with T = Foam::Switch]’: global/argList/argList.C:396: instantiated from here lnInclude/dictionaryTemplates.C:44: error: call of overloaded ‘Switch(Foam:Traits<Foam::Switch>)’ is ambiguous lnInclude/Switch.H:140: note: candidates are: Foam::Switch::Switch(int) lnInclude/Switch.H:134: note: Foam::Switch::Switch(bool) lnInclude/Switch.H:62: note: Foam::Switch::Switch(const Foam::Switch&) make: *** [Make/linux64GccDPOpt/argList.o] Error 1 + wmake libso lagrangian/basic '/users/hz283/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/liblagrangian.so' is up to date. + wmake libso triSurface '/users/hz283/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libtriSurface.so' is up to date. + wmake libso edgeMesh '/users/hz283/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libedgeMesh.so' is up to date. + wmake libso surfMesh '/users/hz283/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libsurfMesh.so' is up to date. + decompositionMethods/AllwmakeLnInclude + wmakeLnInclude decompositionMethods + wmakeLnInclude metisDecomp + wmakeLnInclude parMetisDecomp + wmakeLnInclude scotchDecomp + dummyThirdParty/Allwmake + wmake libso scotchDecomp ....... The linux kernal version is 2.6.18-194.17.1.el5. Thank you very much for your help. best , H |
|
January 2, 2013, 18:27 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi H,
OK, I did some searching and it looks like in this case you've got either RHEL, or SL or CentOS 5.5 installed. For either one of those 3 and OpenFOAM 1.7.1, you've got these instructions: http://consultancy.edvoncken.net/index.php/OpenFOAM In the same machine where I had tested fireFoam 1.6-1.0 and OpenFOAM 1.7.0, I've also tested with success with OpenFOAM 1.7.1. Therefore, I think it's safe for you to install OpenFOAM 1.7.1, but 1.7.0 should also work with the instructions from the link above. As for openSUSE, which version do you have installed? 12.2, 12.1, 11.4, or older!? Run this command to know which version you've got: Code:
cat /etc/SuSE-release Bruno PS: I've moved your questions to a new thread.
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dissimilarity in compiling new BC in 32bit OpenSuSE 103 versus 64bit CentOS 50 versus 64bit SLED 100 | sponiar | OpenFOAM Running, Solving & CFD | 3 | February 26, 2008 07:31 |