|
[Sponsors] |
OpenFOAM-1.7.0 for CentOS/RHEL/SL 5.x 64bit released |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 5, 2010, 10:17 |
|
#21 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
OK, but then I dont understand from where you managed to run
the configure script when you got the error in the first place. N |
|
July 5, 2010, 10:24 |
|
#22 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
I just checked your error message and saw that its located in
/home/user/build/gcc-4.4.4/build which makes me wonder if your foam intallation is located under your home-catalog, because if it isnt the configure script needs to be adjusted accordingly. N |
|
July 5, 2010, 10:43 |
|
#23 |
Member
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17 |
Niklas,
Yes the gcc.4.4.4 is located as you saw also confirmed below. This became so after following the recipe from Niels. The OpenFOAM is located in: [user@OpenFOAM OpenFOAM]$ ls OpenFOAM-1.6 OpenFOAM-1.7.0.gtgz.1 ThirdParty-1.7.0 user-1.6 OpenFOAM-1.6.x OpenFOAM-1.7.x ThirdParty-1.7.0.gtgz OpenFOAM-1.7.0 ThirdParty-1.6 ThirdParty-1.7.0.gtgz.1 OpenFOAM-1.7.0.gtgz ThirdParty-1.6.x ThirdParty-1.7.x [user@OpenFOAM OpenFOAM]$ pwd /home/user/OpenFOAM Bjorn ___________________________________ checking for suffix of object files... configure: error: in `/home/user/build/gcc-4.4.4/build/i686-pc-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[2]: *** [configure-stage1-target-libgcc] Error 1 make[2]: Leaving directory `/home/user/build/gcc-4.4.4/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/user/build/gcc-4.4.4/build' make: *** [all] Error 2 [user@OpenFOAM build]$ pwd /home/user/build/gcc-4.4.4/build [user@OpenFOAM build]$ |
|
July 6, 2010, 06:37 |
|
#24 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
adding these lines to your $HOME/.bashrc file should make it possible to compile gcc-4.4.4 Code:
export LD_LIBRARY_PATH=$HOME/OpenFOAM/ThirdParty-1.7.0/platforms/linux/gmp-5.0.1/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$HOME/OpenFOAM/ThirdParty-1.7.0/platforms/linux/mpfr-2.4.2/lib:$LD_LIBRARY_PATH Code:
ls -l $HOME/OpenFOAM/ThirdParty-1.7.0/platforms/linux/gmp-5.0.1/lib ls -l $HOME/OpenFOAM/ThirdParty-1.7.0/platforms/linux/mpfr-2.4.2/lib Code:
. $HOME/.bashrc make -j2
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
July 6, 2010, 08:11 |
|
#25 |
Member
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17 |
Niels,
I tried your new scheme and it did not give any errors. I take that I should execute 'make install ' and follow your instructions from before. When I came to OpenFOAM OpenFOAM-1.7.0] and execute ./Allwmake I got these errors: + 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/linuxGccDPOpt/global.C; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/user/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linuxGccDPOpt/global.C -o Make/linuxGccDPOpt/global.o SOURCE=global/argList/argList.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/user/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/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/linuxGccDPOpt/argList.o] Error 1 Any guide for what went wrong? rgds Bjorn |
|
July 6, 2010, 08:40 |
|
#26 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
Did you remember to run Allwmake in the Thirdparty folder first? What is the output of Code:
OF17 which gcc If this is the case I have no idea what should be going on.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
July 6, 2010, 08:47 |
|
#27 |
Member
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17 |
Niels,
Yes, I did the procedure as you mention. When I issue the command which gcc I get /usr/bin/gcc This is not what you would expect? Any clue what is wrong? Bjorn |
|
July 6, 2010, 08:54 |
|
#28 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi is there anything in the folder
$HOME/OpenFOAM/ThirdParty-1.7.0/platforms/linux/gcc-4.4.4 if not then the make install step did not install gcc-4.4.4 the right place. as a side note open the openFOAM/etc/settings and check that the compiler version is as below Code:
# Select compiler installation # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # compilerInstall = OpenFOAM | system : ${compilerInstall:=OpenFOAM} After changing run Code:
OF17 which gcc
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
July 6, 2010, 09:09 |
|
#29 |
Member
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17 |
Niels,
That seemed to do the trick! I changed the settings.sh file to (in red): # compilerInstall = OpenFOAM | system : ${compilerInstall:=OpenFOAM} case "${compilerInstall:-OpenFOAM}" in OpenFOAM) case "$WM_COMPILER" in Gcc) # gcc_version=gcc-4.4.3 gcc_version=gcc-4.4.4 Now it compiles and probably will generate OF1.7.0 Bjorn |
|
July 6, 2010, 10:44 |
|
#30 |
Member
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17 |
Niels,
It compiled and passed the cavity check! Thank you very much for your help! My next task will be to tray to install paraFoam. Bjorn PS! There were some warnings during the compilation (unused variables). Is this something that you also found? Will it be a problem? |
|
July 7, 2010, 10:00 |
|
#31 |
Member
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17 |
Hi,
Following the successfull installation of OF1.7.0 on my 32 bit CentOS linux maschine I have now moved over to install paraFoam. The following error comes at the very end after the command ./makeParaView: ________________________________________ Linking CXX executable ../../../../bin/GraphicsCxxTests ../../../../bin/libvtkRendering.so.pv3.8: undefined reference to `QPainter::drawImage(QPointF const&, QImage const&)' ../../../../bin/libvtkRendering.so.pv3.8: undefined reference to `QTextDocument::setDocumentMargin(double)' collect2: ld returned 1 exit status make[2]: *** [bin/GraphicsCxxTests] Error 1 make[1]: *** [VTK/Graphics/Testing/Cxx/CMakeFiles/GraphicsCxxTests.dir/all] Error 2 make: *** [all] Error 2 --- Installation complete for paraview-3.8.0 Set environment variables: export ParaView_DIR=/home/user/OpenFOAM/ThirdParty-1.7.0/platforms/linuxGcc/paraview-3.8.0 export PATH=$ParaView_DIR/bin:$PATH export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.8 --- Done _____________________________ Anybody out there that migth help me? rgds Bjorn |
|
August 13, 2010, 18:09 |
Didn't work at all.
|
#32 |
Senior Member
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 17 |
Hi everyone
I tried to compile OF17, but got problems, then I saw this thread. I want to install it on a RHEL 5.0 64bit. I don't have access to root, so I couldn't run the Yum command in post #4. Then I went through gcc part, and got the same error as post #5 and #6. Right now I have gcc 4.3.3 under OpenFoam 1.6 third parties, and my OF16 works perfectly. But when I want to make gcc 4.4.4 I get error. under OF17 environment, My Gcc is /usr/bin/gcc and under 1.6 its ~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/gcc
__________________
SAHM |
|
August 14, 2010, 14:41 |
question
|
#33 |
New Member
|
Guys, I have a question:
I have a cluster with 64bit RHEL 5.0, and previously I have installed OpenFoam 1.6 on it. Can I replace all the source code for 1.7 with all the source code for 1.6 and wmake it? does this work? |
|
August 16, 2010, 02:26 |
|
#34 | |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
@ SAHM you need to edit the OpenFOAM settings.sh file to reflect where gcc is installed lige Bjorn did. With the compilation of GCC try and export the library path for mpfr and gmp in your .bashrc file like so. Code:
export LD_LIBRARY_PATH=/pathToGmp/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=/pathToMpfr/lib:$LD_LIBRARY_PATH Code:
. $HOME/.bashrc Quote:
I do not think that is possible. you can use the ThirdParty stuff from my binary release and then get the sources for OF and then do wmake. If you do it this way remember to change the settings.sh file like above. Otherwise download both my packages and you are ready to run. 1.6 and 1.7 will live happily alongside each other on the same system and a good way to keep them seperate is to use aliases for them in your $HOME/.bashrc file like so. Code:
alias OF16=". $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc" alias OF17=". $HOME/OpenFOAM/OpenFOAM-1.7/etc/bashrc"
__________________
Linnemann PS. I do not do personal support, so please post in the forums. Last edited by linnemann; August 16, 2010 at 11:59. |
||
September 14, 2010, 02:57 |
|
#35 |
New Member
Join Date: Apr 2010
Posts: 17
Rep Power: 16 |
Hello Linneman,
I am trying to install CentFOAM and I am getting the following errors when ./centFOAMInstall yum all " No package ncurses-devel available. No package libXt-devel available. Nothing to do" Thanks D |
|
September 14, 2010, 10:01 |
|
#36 | |
New Member
Join Date: Apr 2010
Posts: 17
Rep Power: 16 |
Quote:
sometimes I wish I could just disappear into one of those cracks on the walls. |
||
September 15, 2010, 13:26 |
|
#37 |
Member
Join Date: Sep 2010
Posts: 36
Rep Power: 16 |
Dear All,
is it possible to install the here cited version of CentFOAM on RHEL 4.1.2-46 (I do not know what SL 5.x stands for) on a cluster to which I do not have the root rights? I know the installation requires the "yum" command, which needs root rights that I do not have... Thanks! Andreas |
|
September 15, 2010, 14:10 |
|
#38 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
No that will not be possible. It is possible to get OF working on RHEL 4.x releases it will although take some time and will be somewhat more difficult if you cant install packages as root. SL-5.x is Scientific Linux 5.x where x can be 0,1,2,3,4 or 5. Best
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
September 15, 2010, 18:47 |
|
#39 |
Member
Join Date: Sep 2010
Posts: 36
Rep Power: 16 |
Hi Linnemann,
thanks for the quick reply. More difficult but thankfully not impossible. According to other threads (http://www.cfd-online.com/Forums/ope...linux-5-a.html) it is possible to install gcc4.3.3 from OF1.6ThridParty and then use OF1.7.1 ... do you agree with that? Thanks, Andreas |
|
September 16, 2010, 08:40 |
|
#40 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
If only you were that lucky, I've installed OF-1.5 on a RHEL 4 release and it was not the most trivial task :-) and 1.6 and 1.7 are most likely not easier. There are some libraries in rhel 4 that are to old for gcc-4.3.x so you need to compile new ones of those and a whole lot of other stuff I cant remember. But again Google is your friend http://cheminsilico.blogspot.com/200...-on-rhel4.html From here on you are on your own I'm afraid, unless some other member has a cluster/workstation with rhel/centos 4 on it.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.7.0 Released | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 1 | May 26, 2011 04:09 |
OpenFOAM 1.7.0 on OpenSUSE 11.1 | Bufacchi | OpenFOAM Installation | 8 | August 6, 2010 10:57 |
OpenFOAM Version 1.4.1 Released | OpenFOAM discussion board administrator | OpenFOAM Announcements from ESI-OpenCFD | 0 | August 3, 2007 08:31 |
OpenFOAM Version 1.3 Released | OpenFOAM discussion board administrator | OpenFOAM Announcements from ESI-OpenCFD | 0 | March 29, 2006 19:06 |
OpenFOAM Version 1.1 Released | OpenFOAM discussion board administrator | OpenFOAM Announcements from ESI-OpenCFD | 0 | March 11, 2005 06:33 |