CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM-1.6-ext installation on OpenSUSE 12.1 (http://www.cfd-online.com/Forums/openfoam-installation/100413-openfoam-1-6-ext-installation-opensuse-12-1-a.html)

matthiass April 25, 2012 07:12

OpenFOAM-1.6-ext installation on OpenSUSE 12.1
 
5 Attachment(s)
Hello everybody,

the last days I tried to install OpenFOAM-1.6-ext on OpenSUSE 12.1.
During installation I followed the instructions of this thread http://www.cfd-online.com/Forums/ope...1-4-64bit.html (first Post) and the last post of the following thread http://www.cfd-online.com/Forums/ope...11-10-x64.html to get ParaView working.

Finally, I didn't really succeed.
I attached my log-files of the Third-Party-Installation and of OpenFOAM. I guess it is a problem with openmpi. I thought I installed it correctly, but as newbie I'm not really sure.
I would be very thankful if someone could help me and give me a hint.
Thank you in advance!

Best regards,
Matthias

matthiass April 25, 2012 07:13

3 Attachment(s)
Here are the other logs!

matthiass April 25, 2012 07:53

I forgot the foamInstallationTest.



Code:

Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:              linux-3eo1.site
OS:                Linux version 3.1.10-1.9-desktop
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/mias/OpenFOAM                      yes      yes
$WM_PROJECT_USER_DIR /home/mias/OpenFOAM/mias-1.6-ext        no        no
$WM_THIRD_PARTY_DIR  ...OpenFOAM/OpenFOAM-1.6-ext/ThirdParty  yes      yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /home/mias/OpenFOAM/OpenFOAM-1.6-ext    yes  yes  yes

$FOAM_APPBIN        ...ext/applications/bin/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_APPBIN    ...OAM/site/1.6-ext/bin/linux64GccDPOpt  no        no
$FOAM_USER_APPBIN    ...ext/applications/bin/linux64GccDPOpt  no        no
$WM_DIR              ...mias/OpenFOAM/OpenFOAM-1.6-ext/wmake  yes  yes  yes
-------------------------------------------------------------------------------                                                   
                                                                                                                                   
                                                                                                                                   
Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...                                                                 
-------------------------------------------------------------------------------                                                   
Environment_variable Set_to_file_or_directory                Valid Path Crit                                                       
-------------------------------------------------------------------------------                                                   
$FOAM_LIBBIN        ...OpenFOAM-1.6-ext/lib/linux64GccDPOpt  yes  yes  yes                                                       
$FOAM_SITE_LIBBIN    ...OAM/site/1.6-ext/lib/linux64GccDPOpt  no        no                                                         
$FOAM_USER_LIBBIN    ...OAM/mias-1.6-ext/lib/linux64GccDPOpt  no        no                                                         
$MPI_ARCH_PATH      ...nmpi-1.4.3/platforms/linux64GccDPOpt  yes  no  yes                                                       
-------------------------------------------------------------------------------                                                   
                                                                                                                                   
                                                                                                                                   
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.6.2                                                                                                   
        Minimum required: 4.3.1                                                                                                   
                                                                                                                                   
gcc      4.6.2                                                                                                                     
WARNING:  Conflicting installations:                                                                                               
          OpenFOAM settings        : /bin/gcc                                                                                     
          current path            : /usr/bin/gcc
          CRITICAL ERROR

gzip    1.4      /usr/bin/gzip                                           
tar      1.26      /bin/tar                                               
icoFoam         
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/mias/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/icoFoam
          current path            :
          CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.


anon_c April 25, 2012 10:20

hi mathias i am doing the same it is the first time for me to compile openfoam1.6-ext on opensuse 12.1 and there are also some problems in the thirdparty

./Allmake.stage3 give the problem about

mesquite-2.1.2

so i think it is a problem with the distribution and openfoam that need to be find out i dont know what really happens till now

anon_c April 25, 2012 10:33

why you installing mesquite2.99?

matthiass April 25, 2012 10:41

Hi Tajoooko,

I replaced mesquite-2.1.2 by mesquite-2.99 as proposed in this thread http://www.extend-project.de/user-fo...ation-openfoam by Maria Garcia-Camprubi.

Quote:

Mesquite-2.1.2 source-code gave some compilation errors. Thus, I have used the latest available version, updating the mesquite version in:

~/OpenFOAM®®/OpenFOAM®®-1.6-ext/ThirdParty/AllMake.stage3: rpm_make -p mesquite-2.99 -s mesquite-2.99.spec -u software.sandia.gov/~jakraft/mesquite-2.99.tar.gz

in /OpenFOAM®®/OpenFOAM®®-1.6-ext/etc/settings.sh :
[ -z "$MESQUITE_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/mesquite-2.99/platforms/$WM_OPTIONS ] && { _foamSource $WM_THIRD_PARTY_DIR/packages/mesquite-2.99/platforms/$WM_OPTIONS/etc/mesquite-2.99.sh }

and in ~/OpenFOAM®®/OpenFOAM®®-1.6-ext/ThirdParty/rpmBuild/SPECS/ :
mv mesquite-2.1.2.spec mesquite-2.99.spec
vim mesquite-2.99.spec : replace mesquite-2.1.2 with mesquite-2.99 ~/OpenFOAM®® $ cd OpenFOAM®®-1.6-ext/ ./Allwmake
And to say the truth I got it working on one of my desktops. There are still a lot errors but I can use the solvers that interest me. But I tried it on a few other computers and didn't succeed. Always with the same results in the logs and that is not really satisying.

Best regards,
Matthias

anon_c April 25, 2012 11:13

ah yes i do it now too it works fine but the next error is about

mpi.h --> not found

matthiass April 25, 2012 11:19

Do you mean in one of the wmake-log-files?

anon_c April 25, 2012 11:19

common.h:84:28: fatal error: mpi.h: No such file or directory


it seems that he is not finding the openMPI instalation but

thirdparty Allmake.stage3 gives:

========================================
Starting ThirdParty AllMake: Stage2
========================================

Package name : openmpi-1.4.3
Package URL : http://www.open-mpi.org/software/omp...i-1.4.3.tar.gz
RPM spec file name: openmpi-1.4.3.spec
Additional flags :
Updating the ThirdParty environment variables before building package openmpi-1.4.3
Package openmpi-1.4.3 is already installed
Done installing package

========================================
Done ThirdParty AllMake: Stage2
========================================

matthiass May 2, 2012 15:47

I finally succeeded the installation of OF-1.6-ext on OpenSUSE 12.1!
In my case the ThirdParty openmpi-1.4.3 doesn't install properly (until now I don't know why), because of that I used the systems openmpi-1.4.3 (I adjusted this in prefs.sh).

After that I got the next error:
Code:

+ wmake libso mesquiteMotionSolver
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lmesquite
collect2: ld returned 1 exit status
make: *** [/home/matthias/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libmesquiteMotionSolver.so] Fehler 1

This was an error caused by a different name of the library folder of MESQUITE2.99 (lib64 instead of lib), so the content of this folder couldn't be found.

The next error was:
Code:

In file included from vtkPV3Foam.C:28:0:
../PV3FoamReader/vtkPV3FoamReader.h:31:43: fatal error: vtkMultiBlockDataSetAlgorithm.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[3]: *** [Make/linux64GccDPOpt/vtkPV3Foam.o] Fehler 1

To solve this problem I had to change in the options-file of the following folder
Code:

cd ~/OpenFOAM/OpenFOAM-1.6-ext/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/Make
Code:

-I$(PARAVIEW_INCLUDE_DIR)/paraview-3.12 \
to
-I$(PARAVIEW_INCLUDE_DIR)/paraview-3.10 \

After this I had no errors anymore!

Maybe this will help someone!

Best regards,
Matthias


All times are GMT -4. The time now is 02:27.