|
[Sponsors] |
February 27, 2014, 04:21 |
OpenFOAM gcc configuration problem
|
#1 |
New Member
Sreetej
Join Date: Feb 2014
Location: Singapore
Posts: 14
Rep Power: 12 |
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:
======================================== Start ThirdParty Allwmake ======================================== ======================================== Build MPI libraries if required have OPENMPI shared library (openmpi-1.6.5) ======================================== Build Scotch decomposition library scotch_6.0.0 /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc/scotch_6.0.0 scotch header in /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc/scotch_6.0.0/include scotch libs in /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64GccDPOpt/lib ======================================== Build PTScotch decomposition library scotch_6.0.0 (uses MPI) /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc/scotch_6.0.0 ptscotch header in /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc/scotch_6.0.0/include/openmpi-1.6.5 ptscotch libs in /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64GccDPOpt/lib/openmpi-1.6.5 ======================================== Build Metis decomposition optional component Metis was not found ======================================== Build CGAL + cgalPACKAGE=CGAL-4.3 + boostPACKAGE=boost-system + gmpPACKAGE=gmp-system + mpfrPACKAGE=mpfr-system + wmakeCheckPwd /home/sreetej001/OpenFOAM//ThirdParty-2.3.x + . etc/tools/ThirdPartyFunctions ++ buildBASE=/home/sreetej001/OpenFOAM//ThirdParty-2.3.x/build/linux64Gcc ++ installBASE=/home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc ++ unset WM_HOSTS WM_SCHEDULER +++ egrep '^processor' /proc/cpuinfo +++ wc -l ++ export WM_NCOMPPROCS=8 ++ WM_NCOMPPROCS=8 ++ '[' 8 -le 1 ']' ++ '[' 8 -ge 8 ']' ++ WM_NCOMPPROCS=8 + '[' -n g++ ']' + export CXX=g++ + CXX=g++ + '[' 0 -gt 0 ']' + BOOST_ARCH_PATH=/home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc/boost-system + BOOST_SOURCE_DIR=/home/sreetej001/OpenFOAM//ThirdParty-2.3.x/boost-system + '[' -d /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc/boost-system ']' + '[' -d /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/boost-system ']' + boostInc=/usr/include + '[' 64 = 64 ']' + boostLib=/usr/lib64 + '[' -f /usr/include/boost/version.hpp ']' ++ sed -ne 's/^#define *BOOST_VERSION *\([0-9][0-9]*\).*$/\1/p' /usr/include/boost/version.hpp + BOOST_VERSION_NO=103301 + CGAL_SOURCE_DIR=/home/sreetej001/OpenFOAM//ThirdParty-2.3.x/CGAL-4.3 + CGAL_BINARY_DIR=/home/sreetej001/OpenFOAM//ThirdParty-2.3.x/build/linux64Gcc/CGAL-4.3 + CGAL_ARCH_PATH=/home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc/CGAL-4.3 + CGAL_DIR=/home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc/CGAL-4.3 + installBASE=/home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64 + GMP_ARCH_PATH=/home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64/gmp-system + MPFR_ARCH_PATH=/home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64/mpfr-system + '[' -d /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/build/linux64Gcc/CGAL-4.3 ']' + echo 'removing old build directory' removing old build directory + echo ' /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/build/linux64Gcc/CGAL-4.3' /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/build/linux64Gcc/CGAL-4.3 + rm -rf /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/build/linux64Gcc/CGAL-4.3 + mkdir -p /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/build/linux64Gcc/CGAL-4.3 + cd /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/build/linux64Gcc/CGAL-4.3 + unset configBoost configGmpMpfr + echo ---- ---- + echo 'Configuring CGAL-4.3 with boost 103301' Configuring CGAL-4.3 with boost 103301 + echo ' Source : /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/CGAL-4.3' Source : /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/CGAL-4.3 + echo ' Build : /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/build/linux64Gcc/CGAL-4.3' Build : /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/build/linux64Gcc/CGAL-4.3 + echo ' Target : /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc/CGAL-4.3' Target : /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc/CGAL-4.3 + '[' -d /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc/boost-system ']' + echo ' system : boost' system : boost ++ cat + configBoost=' -DBOOST_LIBRARYDIR=/usr/lib64' + '[' -d /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64/gmp-system -a -d /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64/mpfr-system ']' + echo ' system : gmp/mprf' system : gmp/mprf + echo ---- ---- + set -x + cmake -DCMAKE_INSTALL_PREFIX=/home/sreetej001/OpenFOAM//ThirdParty-2.3.x/platforms/linux64Gcc/CGAL-4.3 -DCMAKE_BUILD_TYPE=Release -DBOOST_LIBRARYDIR=/usr/lib64 /home/sreetej001/OpenFOAM//ThirdParty-2.3.x/CGAL-4.3 -- The CXX compiler identification is GNU -- The C compiler identification is GNU -- Check for working CXX compiler: /usr/bin/g++ -- Check for working CXX compiler: /usr/bin/g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done == Setting paths == -- Build CGAL from release in directory CGAL-4.3 -- Packagenames: CGAL-4.3 == Setting paths (DONE) == == Generate version files == -- CGAL_MAJOR_VERSION=4 -- CGAL_MINOR_VERSION=3 -- CGAL_BUGFIX_VERSION=0 -- CGAL_SONAME_VERSION=10 -- CGAL_SOVERSION =10.0.2 -- CGAL_REFERENCE_CACHE_DIR= -- Building shared libraries -- Targetting Unix Makefiles -- Using /usr/bin/g++ compiler. -- USING CMake version: 2.6.4 -- System: Linux -- USING GCC_VERSION = '4.1.2 20080704 (Red Hat 4.1.2-44)' -- Using gcc version 4 or later. Adding -frounding-math == Generate version files (DONE) == == Set up flags == -- Build type: Release -- USING CXXFLAGS = '-m64 -fPIC -frounding-math -O3 -DNDEBUG' -- USING LDFLAGS = '-m64 ' == Set up flags (DONE) == == Detect external libraries == -- External libraries supported: GMP;GMPXX;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;TAUCS;Eigen3;BLAS;LAPACK;QGLViewer;ESBTL;Coin3D;NTL;IPE -- Preconfiguring library: GMP ... -- Found GMP: /usr/lib64/libgmp.so -- GMP has been preconfigured: -- UseGMP-file: -- GMP include: /usr/include -- GMP libraries: /usr/lib64/libgmp.so -- GMP definitions: -- USING GMP_VERSION = '4.1.4' -- Preconfiguring library: MPFR ... -- Found MPFR: /usr/lib64/libmpfr.a -- MPFR has been preconfigured: -- UseMPFR-file: -- MPFR include: /usr/include -- MPFR libraries: /usr/lib64/libmpfr.a -- MPFR definitions: -- USING MPFR_VERSION = '2.2.1' CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:868 (message): Unable to find the requested Boost libraries. Boost version: 1.33.1 Boost include path: /usr/include The following Boost libraries could not be found: boost_system Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set Boost_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. Call Stack (most recent call first): cmake/modules/CGAL_SetupBoost.cmake:6 (find_package) cmake/modules/CGAL_SetupDependencies.cmake:85 (include) CMakeLists.txt:589 (include) -- Boost include: /usr/include -- Boost libraries: -- Boost definitions: -- USING BOOST_VERSION = '1.33.1' == Detect external libraries (DONE) == == Write compiler_config.h == -- Performing Test CGAL_CFG_BOOST_VARIANT_SWAP_BUG - Success -- Performing Test CGAL_CFG_DENORMALS_COMPILE_BUG - Success -- Performing Test CGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG - Success -- Performing Test CGAL_CFG_IEEE_754_BUG - Success -- Performing Test CGAL_CFG_ISTREAM_INT_BUG - Success -- Performing Test CGAL_CFG_MATCHING_BUG_5 - Success -- Performing Test CGAL_CFG_MATCHING_BUG_6 - Success -- Performing Test CGAL_CFG_NESTED_CLASS_FRIEND_DECLARATION_BUG - Success -- Performing Test CGAL_CFG_NO_LIMITS - Success -- Performing Test CGAL_CFG_NO_NEXTAFTER - Success -- Performing Test CGAL_CFG_NO_STL - Success -- Performing Test CGAL_CFG_NO_WARNING_CPP_DIRECTIVE_BUG - Success -- Performing Test CGAL_CFG_NUMERIC_LIMITS_BUG - Success -- Performing Test CGAL_CFG_OUTOFLINE_MEMBER_DEFINITION_BUG - Success -- Performing Test CGAL_CFG_TEMPLATE_IN_DEFAULT_PARAMETER_BUG - Success -- Performing Test CGAL_CFG_TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG - Success -- Performing Test CGAL_CFG_USING_BASE_MEMBER_BUG_2 - Success == Write compiler_config.h (DONE) == == Generating build files == Configuring libCGAL -- Requested component: MPFR -- Requested component: GMP libCGAL is configured -- Sources for CGAL component library 'CGAL_Core' detected Configuring libCGAL_Core -- Requested component: MPFR -- Requested component: GMP libCGAL_Core is configured -- Sources for CGAL component library 'CGAL_ImageIO' detected Configuring libCGAL_ImageIO -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib64/libX11.so -- Found ZLIB: /usr/lib64/libz.so -- OpenGL include: /usr/include -- OpenGL libraries: /usr/lib64/libGLU.so;/usr/lib64/libGL.so;/usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so -- USING ZLIB_VERSION = '1.2.3' -- Requested component: MPFR -- Requested component: GMP libCGAL_ImageIO is configured -- Sources for CGAL component library 'CGAL_Qt4' detected Configuring libCGAL_Qt4 -- libCGAL_Qt4 needs Qt4, cannot be configured. -- Sources for CGAL component library 'CGAL_Qt3' detected Configuring libCGAL_Qt3 -- libCGAL_Qt3 needs Qt3, cannot be configured. -- Sources for CGAL component libraries 'CGAL_Core;CGAL_ImageIO;CGAL_Qt3;CGAL_Qt4' detected == Generating build files (DONE) == -- Configuring incomplete, errors occurred! Last edited by wyldckat; February 27, 2014 at 04:35. Reason: Added [CODE][/CODE] |
|
February 27, 2014, 04:37 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
February 27, 2014, 04:48 |
|
#3 |
New Member
Sreetej
Join Date: Feb 2014
Location: Singapore
Posts: 14
Rep Power: 12 |
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 |
|
February 27, 2014, 05:41 |
|
#4 |
Senior Member
|
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 mpfrPACKAGE=mpfr-3.1.0 mpcPACKAGE=mpc-0.9 gccPACKAGE=gcc-4.6.2 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. |
|
February 27, 2014, 07:29 |
|
#5 |
New Member
Sreetej
Join Date: Feb 2014
Location: Singapore
Posts: 14
Rep Power: 12 |
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-*-------------------------------------- # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | # \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------ # License # This file is part of OpenFOAM. # # OpenFOAM is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # OpenFOAM is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License # along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. # # File # etc/bashrc # # Description # Startup file for OpenFOAM # Sourced from ~/.profile or ~/.bashrc # Should be usable by any POSIX-compliant shell (eg, ksh) # #------------------------------------------------------------------------------ export WM_PROJECT=OpenFOAM export WM_PROJECT_VERSION=2.3.x ################################################################################ # USER EDITABLE PART: Changes made here may be lost with the next upgrade # # either set $FOAM_INST_DIR before sourcing this file or set # 'foamInstall' below to where OpenFOAM is installed # # Location of the OpenFOAM installation # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foamInstall=$HOME/$WM_PROJECT # foamInstall=~$WM_PROJECT # foamInstall=/opt/$WM_PROJECT # foamInstall=/usr/local/$WM_PROJECT # # END OF (NORMAL) USER EDITABLE PART ################################################################################ # # These are the defaults for this version which should generally be # overridden from the prefs.sh file or from command-line specification # #- note the location for later use (eg, in job scripts) : ${FOAM_INST_DIR:=$foamInstall}; export FOAM_INST_DIR #- Compiler location: # foamCompiler= system | ThirdParty (OpenFOAM) foamCompiler=OpenFOAM #- Compiler: # WM_COMPILER = Gcc | Gcc45 | Gcc46 | Gcc47 | Clang | Icc (Intel icc) export WM_COMPILER=Gcc unset WM_COMPILER_ARCH WM_COMPILER_LIB_ARCH #- Architecture: # WM_ARCH_OPTION = 32 | 64 export WM_ARCH_OPTION=64 #- Precision: # WM_PRECISION_OPTION = DP | SP export WM_PRECISION_OPTION=DP #- Optimised, debug, profiling: # WM_COMPILE_OPTION = Opt | Debug | Prof export WM_COMPILE_OPTION=Opt #- MPI implementation: # WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI # | GAMMA | MPI | QSMPI | SGIMPI export WM_MPLIB=OPENMPI #- Operating System: # WM_OSTYPE = POSIX | ??? export WM_OSTYPE=POSIX #- Floating-point signal handling: # set or unset export FOAM_SIGFPE= #- memory initialisation: # set or unset #export FOAM_SETNAN= ################################################################################ # The old dirs to be cleaned from the various environment variables # - remove anything under top-level directory. # NB: the WM_PROJECT_INST_DIR might not be identical between versions foamOldDirs="$FOAM_INST_DIR $WM_PROJECT_SITE $HOME/$WM_PROJECT/$USER" if [ "$WM_PROJECT_INST_DIR" != "$FOAM_INST_DIR" ] then foamOldDirs="$WM_PROJECT_INST_DIR $foamOldDirs" fi # Location of installation # ~~~~~~~~~~~~~~~~~~~~~~~~ export WM_PROJECT_INST_DIR=$FOAM_INST_DIR export WM_PROJECT_DIR=$WM_PROJECT_INST_DIR/$WM_PROJECT-$WM_PROJECT_VERSION # Location of third-party software # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ export WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/ThirdParty-$WM_PROJECT_VERSION # Location of site-specific templates etc # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # unset is equivalent to $WM_PROJECT_INST_DIR/site if [ -d "$WM_PROJECT_SITE" ] then export WM_PROJECT_SITE else unset WM_PROJECT_SITE fi # Location of user files # ~~~~~~~~~~~~~~~~~~~~~~ export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION # Source files, possibly with some verbosity _foamSource() { while [ $# -ge 1 ] do [ "$FOAM_VERBOSE" -a "$PS1" ] && echo "Sourcing: $1" 1>&2 . $1 shift done } # Evaluate command-line parameters _foamEval() { while [ $# -gt 0 ] do case "$1" in -*) # stray option (not meant for us here) -> get out break ;; *=) # name= -> unset name [ "$FOAM_VERBOSE" -a "$PS1" ] && echo "unset ${1%=}" 1>&2 eval "unset ${1%=}" ;; *=*) # name=value -> export name=value [ "$FOAM_VERBOSE" -a "$PS1" ] && echo "export $1" 1>&2 eval "export $1" ;; *) # filename: source it if [ -f "$1" ] then _foamSource "$1" else _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile -silent "$1"` fi ;; esac shift done } # Add in preset user or site preferences: _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile prefs.sh` # Evaluate command-line parameters and record settings for later # these can be used to set/unset values, or specify alternative pref files export FOAM_SETTINGS="$@" _foamEval $@ # Clean standard environment variables (PATH, LD_LIBRARY_PATH, MANPATH) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foamClean=$WM_PROJECT_DIR/bin/foamCleanPath #- Clean PATH cleaned=`$foamClean "$PATH" "$foamOldDirs"` && PATH="$cleaned" #- Clean LD_LIBRARY_PATH cleaned=`$foamClean "$LD_LIBRARY_PATH" "$foamOldDirs"` \ && LD_LIBRARY_PATH="$cleaned" #- Clean MANPATH cleaned=`$foamClean "$MANPATH" "$foamOldDirs"` && MANPATH="$cleaned" export PATH LD_LIBRARY_PATH MANPATH # Source project setup files # ~~~~~~~~~~~~~~~~~~~~~~~~~~ _foamSource $WM_PROJECT_DIR/etc/config/settings.sh _foamSource $WM_PROJECT_DIR/etc/config/aliases.sh # Source user setup files for optional packages # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/paraview.sh` _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/ensight.sh` _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/gperftools.sh` _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/CGAL.sh` # Clean environment paths again. Only remove duplicates # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #- Clean PATH cleaned=`$foamClean "$PATH"` && PATH="$cleaned" #- Clean LD_LIBRARY_PATH cleaned=`$foamClean "$LD_LIBRARY_PATH"` && LD_LIBRARY_PATH="$cleaned" #- Clean MANPATH (trailing ':' to find system pages) cleaned=`$foamClean "$MANPATH"`: && MANPATH="$cleaned" export PATH LD_LIBRARY_PATH MANPATH #- Clean LD_PRELOAD if [ -n "$LD_PRELOAD" ] then cleaned=`$foamClean "$LD_PRELOAD"` && LD_PRELOAD="$cleaned" export LD_PRELOAD fi # cleanup environment: # ~~~~~~~~~~~~~~~~~~~~ unset cleaned foamClean foamInstall foamOldDirs unset _foamSource _foamEval # ----------------------------------------------------------------- end-of-file --------------------------- I got CGAL - 4.3 cmake-2.8.12.1 in my Third Party folder, Do I still need to download the libraries? Last edited by wyldckat; March 1, 2014 at 19:59. Reason: Added [CODE][/CODE] |
|
February 27, 2014, 08:21 |
|
#6 |
Senior Member
|
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 boostPACKAGE=boost-system gmpPACKAGE=gmp-system mpfrPACKAGE=mpfr-system So first compile gcc with makeGcc script and then execute Allwmake, as it won't build gcc. |
|
March 1, 2014, 20:03 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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.
__________________
|
|
March 3, 2014, 23:44 |
|
#8 |
New Member
Sreetej
Join Date: Feb 2014
Location: Singapore
Posts: 14
Rep Power: 12 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
OpenFOAM 1.6.x, 1.7.0 and 1.7.x are not fully prepared to work with gcc-4.5.x | wyldckat | OpenFOAM Bugs | 18 | October 21, 2010 06:51 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
Problem with mpirun with OpenFOAM | jiejie | OpenFOAM | 3 | July 7, 2010 20:30 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |