OpenFOAM gcc configuration problem
Greetings
I am new user on openfoam platform and got many issues during installation. The most pressing one is regarding gcc configuration. I have downloaded and extracted gcc 4.6.2 version, but when i give Allwmake command to configure, it shows the following errors. Could anyone please help. Code:
======================================== |
Greetings Sreetej and welcome to the forum!
Please provide more information about the Linux Distribution you are using and how exactly you've installed GCC 4.6.2. Because if my guess is right and you're using Ubuntu 12.04, then have a look into this thread: http://www.cfd-online.com/Forums/ope...myhexmesh.html Best regards, Bruno |
Thanks a lot for your reply Bruno
I am installing in my account on my university's HPC. I am using LSB Version: : core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID: RedHatEnterpriseServer Description: Red Hat Enterprise Linux Server release 5.3 (Tikanga) Release: 5.3 Codename: Tikanga Regarding gcc installation and used wget command to download the .tbz file and extracted it in the Third party folder. Thanks again Sreetej |
Hi,
Can you post (partly) your OpenFOAM'm etc/bashrc? In fact I'd like to know the value of foamCompiler variable. In general when I compiled OF on RH clone (ScientificLinux) I did the following: 1. Download gcc, mpc, mpfr, gmp distributions and extract them into ThirdParty folder. 2. Correct makeGcc script Code:
gmpPACKAGE=gmp-5.0.4 3. Run makeGcc script in ThirdParty folder. 4. Change foamCompiler to ThirdParty in etc/bashrc. 5. Run ./Allwmake Since you are trying to build OF 2.3.0 maybe you also need to download boost libraries (and extract them to ThirdParty folder) to be able to compile CGAL. If you don't need the part that depends on CGAL, you can skip this step. Also if you need to compile paraview, you have to install cmake and qt in ThirdParty folder as the packages provided by RHEL 5.3 are rather old. |
Thanks a lot Alex for your reply..
Here is my etc/bashrc file, as I am new to linux and openfoam platforms I don't exactly know what you asked for. Code:
#----------------------------------*-sh-*-------------------------------------- I got CGAL - 4.3 cmake-2.8.12.1 in my Third Party folder, Do I still need to download the libraries? |
Well,
As you've already got sources of cmake and CGAL, you don't need to download them again. Configuration of CGAL complains about missing boost_system component, so I guess you've got boost installed system-wide but maybe it's too old so it'll be easier to download it and build with CGAL. Again maybe you'll need to correct components versions in makeCGAL script (you need to correct the following lines): Code:
cgalPACKAGE=CGAL-4.3 So first compile gcc with makeGcc script and then execute Allwmake, as it won't build gcc. |
Greetings to all!
I haven't tested the following instructions on CentOS 5.3, but hopefully the ones for CentOS 6.5 will work just as well: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5 Best regards, Bruno PS: CentOS is a derivative from RHEL. |
Greetings to all...
Thnks again for your assistance...:) I discovered that the problem was with the settings, the compiler was taking gcc 4.6.1 instead of gcc version 4.6.2. I changed the gcc version settings using vi .settings.sh from 4.6.1 to 4.6.2 and then ./Allwmake. OpenFOAM works perfect now..:):) Best Regards Sreetej |
All times are GMT -4. The time now is 10:04. |