Problem Building OF on Centos cluster (no admin rights)
2 Attachment(s)
Hi there,
I'm trying to manually compile OpenFOAM on a Centos 5.5 cluster. I've tried to follow the excellent threads posted by Bruno and the detailed instructions found at the followng link: http://www.tfd.chalmers.se/~hani/kur...sAndTricks.htm (albeit correcting for minor typos). Basically, I've compiled gcc-4.5.1 (the default on the cluster is 4.1 and the "preview" version of gcc44 is gcc-4.4.0) and flex-2.5.35. I've changed the lines in etc/bashrc and settings.sh to point to my installation directory and where the 3rd party gcc and flex are. I've also appended a line to the various Make/Options files to point to the new flex, as per the link above. Despite the above, I'm still running into errors and I'm out of ideas what else to do. I've attached the log file for Allwmake (from the main /OpenFOAM-2.0.1). Grateful if anyone could help. KH edit: I did a wcleanall and repeated the whole process and after a bit of grepping around the new log_allwmake, i find the following: Code:
[atlas6-c01]$ grep "cannot" log_allwmake |
Hi
Make sure you have the following packages installed, ask your admin. gcc gcc-c++ bison ncurses-devel tix.x86_64 glibc-devel flex flex-devel zlib-devel libXt-devel binutils-devel I had a similar problem and it was the binutils-devel which caused the problems for me. |
Hi Niels,
Thanks a lot for the quick response...I've queried the system (i.e. rpm -qa | grep packagename) and found the following: - binutils-2.17.50.0.6-14.el5 - gcc-c++-4.1.2-48.el5 - bison-2.3-2.1 - ncurses-devel-5.5-24.20060715 - libXt-devel-1.0.2-3.2.el5 - zlib-devel-1.2.3-3 - glibc-devel-2.5-49.el5_5.7 I didn't get any output for binutils-devel, flex-devel and tix.x86_64 so I suppose these packages are not on the cluster. As for gcc and flex, I've already built gcc-4.5.1 and flex-2.5.35 in the $WM_THIRD_PARRY_DIR. After your post, I've googled around and found your earlier advice http://www.cfd-online.com/Forums/openfoam-installation/67676-openfoam-1-6-x-centos-5-3-x86_64-a-3.html. However, I've tried but I don't think I have the admin rights to install packages via rpm...is there another way to build the 3 missing packages from source and pointing openfoam to them? Thank you once again. |
Hi
Yes you certainly can. You just need to compile them and then link to them by putting this in your openfoam bashrc at the end (or in your $HOME/.bashrc), one line for each library. export LD_LIBRARY_PATH=/path/to/the/lib/files:$LD_LIBRARY_PATH |
[Partially Solved] Now Cmake build problems....
1 Attachment(s)
I've managed to install OpenFOAM on the server and here are my steps (for anyone who will find it useful):
1) Download and untar the source pack as per instructions on the OpenFOAM website: http://www.openfoam.com/download/source.php 2) Follow instructions on the above link to modify the your $HOME/.bashrc file by adding lines (under an alias): (i) to change the installation directory to the correct target, and (ii) source the /path/to/target/directory/OpenFOAM/OpenFOAM-2.0.1/etc/bashrc , i.e. Code:
alias OF201='export FOAM_INST_DIR=/path/to/target/directory/OpenFOAM; foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.0.1/etc/bashrc; [ -f $foamDotFile ] && . $foamDotFile; source $FOAM_INST_DIR/OpenFOAM-2.0.1/etc/bashrc' Code:
foamCompiler=system Code:
foamCompiler=ThirdParty Code:
foamCompiler=ThirdParty 4) Follow the instructions in this post http://www.cfd-online.com/Forums/ope...tml#post316084 to build a new copy of flex 5) Run the OpenFOAM-2.0.1/Allwmake file! Now that I've gotten the main OpenFOAM installed, I'm trying to build a new copy of cmake, qmake and Qt (none on my cluster) in order to install paraview... I've downloaded Qteverywhere and ran makeQt which seems ok.. however, qmake doesn't seemed to be created...could I be missing a step?? Also, when I run makeCmake, I get error messages like the following: Code:
undefined reference to `std::_List_node_base::_M_transfer(std::_List_node_base*, std::_List_node_base*)' Hope someone will be able to give me some clue about the makeCmake error and how to get qmake.... Thank you in advance! |
Cmake [Partial solution again]
Ok I've managed to build cmake manually: by looking at the $WM_THRID_PARTY_DIR/etc/Tools/ThirdPartytools script and the makeCmake script and figuring out which --prefix directory to run the bootstrap, then followed by the usual make and make install. It is really strange that the script doesn't work while manually following the script does...
Anyway, for the qmake, I manage to figure out that I just needed to add the proper PATH pointing to qmake. I've added it in etc/config/paraview.sh, although I suspect that it should work under bashrc or settings.sh. Now paraview is building and my next step will be to hopefully get the native OpenFOAM reader for paraview up and running. I will try to post my steps for anyone who may find it useful. |
All times are GMT -4. The time now is 12:23. |