CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Troubles installing OF 1.6 on Opensuse 11.1 (http://www.cfd-online.com/Forums/openfoam-installation/70424-troubles-installing-1-6-opensuse-11-1-a.html)

magnounibo November 24, 2009 05:15

Troubles installing OF 1.6 on Opensuse 11.1
 
Good morning everybody, I'm trying to install OF on my 32 bit laptop, up to now with very sad results!!!!:(
First of all I have to admit that I'm a Opensuse beginner.

My steps has been the followings:

1 - download the 5 packed files from OF official site and uncompressed inside my </home/mirco/OpenFOAM> folder;
2 - added the line < . /home/mirco/OpenFOAM/OpenFOAM-1.6/etc/bashrc> at the bottom of </home/mirco/.bashrc> file, and updated this file by sourcing it;
3 - changed a variable inside the file </home/mirco/OpenFOAM/OpenFOAM-1.6/etc/settings.sh>. The variable I changed is <compilerInstall=System> instead of <OpenFOAM>;
4 - tried to compile OF, by typing <./Allwmake> from inside ThirdParty folder. No errors, everything seemed ok. Then I did the same inside OpenFOAM folder, but at the middle of the compiling I had the following errors:

<
..............................
+ cmake ../..
-- The CXX compiler identification is unknown
-- Check for working CXX compiler: /bin/c++
CMake Error: your CXX compiler: "/bin/c++" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: /bin/c++ -- broken
CMake Error at /home/mirco/OpenFOAM/ThirdParty-1.6/cmake-2.6.4/platforms/linux/share/cmake-2.6/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
The C++ compiler "/bin/c++" is not able to compile a simple test program.

It fails with the following output:

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):

CMake Error: your CXX compiler: "/bin/c++" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
+ make
make[3]: Entering directory `/home/mirco/OpenFOAM/OpenFOAM-1.6/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt'
-- The CXX compiler identification is unknown
-- Check for working CXX compiler: /bin/c++
CMake Error: your CXX compiler: "/bin/c++" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: /bin/c++ -- broken
CMake Error at /home/mirco/OpenFOAM/ThirdParty-1.6/cmake-2.6.4/platforms/linux/share/cmake-2.6/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
The C++ compiler "/bin/c++" is not able to compile a simple test program.

It fails with the following output:

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):

CMake Error: your CXX compiler: "/bin/c++" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
make[3]: *** [cmake_check_build_system] Error 1
make[3]: Target `default_target' not remade because of errors.
make[3]: Leaving directory `/home/mirco/OpenFOAM/OpenFOAM-1.6/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt'
make[2]: *** [PV3FoamReader] Error 2
+ '[' -d /home/mirco/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linuxGcc -a -r /home/mirco/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linuxGcc ']'
+ case "$ParaView_VERSION" in
make[2]: Target `application' not remade because of errors.
make[2]: Leaving directory `/home/mirco/OpenFOAM/OpenFOAM-1.6/applications/utilities/postProcessing/graphics'
make[1]: *** [graphics] Error 2

>

Then, it went on with the compiling and at the end I was written:

< make: Target 'application' note remade beacuse of errors >

So, I tried anyway the foamInstallationTest and everything looks ok up to the following message:

<
Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.3
User version : 4.3.2
Minimum required: 4.3.1

gcc 4.3.2
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR
>

At the end of the Test I'm written:

< Base configuration ok
The foam installation contains 1 criitical error (s). >

I also tried to do a tutorial, but it didn't work.

Can somebody help me, or suggest me a link where I can get informations???

Thank everybody

Mirco

bigphil November 28, 2009 13:12

Hi,

It looks like 'c++' isn't installed.

You could try install 'gcc-g++' in YaST2.

Philip


All times are GMT -4. The time now is 19:11.