Problem Building OF on Centos cluster (no admin rights)
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.
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:
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.
Thanks a lot for the quick response...I've queried the system (i.e. rpm -qa | grep packagename) and found the following:
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.
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.
[Partially Solved] Now Cmake build problems....
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
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:
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 13:36.|