CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Help!! Need: Walkthrough OpenFOAM-1.6-ext on OpenSUSE 12.1 64bit (http://www.cfd-online.com/Forums/openfoam-installation/105808-help-need-walkthrough-openfoam-1-6-ext-opensuse-12-1-64bit.html)

iznal August 9, 2012 10:24

Help!! Need: Walkthrough OpenFOAM-1.6-ext on OpenSUSE 12.1 64bit
 
Hi guys

I have tried a couple of days to install and compile the OpenFOAM-1.6-ext on my laptop. I didn't make it. There are two critical errors. Could someone post your successful Walkthrough of Install OpenFOAM-1.6-ext on OpenSUSE 12.1 64bit!

Thanks a lot!

wyldckat August 9, 2012 10:28

Uhm... The walkthrough your asking for is already available in 1.6-ext, in the path "doc/buildInstructions/openSUSE/12.1/Compilation_openSUSE_12.1_64bit.txt".

You can see it online here: http://openfoam-extend.git.sourcefor...it.txt;hb=HEAD

iznal August 9, 2012 10:32

Quote:

Originally Posted by wyldckat (Post 376241)
Uhm... The walkthrough your asking for is already available in 1.6-ext, in the path "doc/buildInstructions/openSUSE/12.1/Compilation_openSUSE_12.1_64bit.txt".

You can see it online here: http://openfoam-extend.git.sourcefor...it.txt;hb=HEAD

It's not 100% correct, I did trying this one, but not succeed. Have you installed your 1.6-ext on OpenSUSE 12.1 64 bit?

wyldckat August 9, 2012 10:43

Quote:

Originally Posted by iznal (Post 376242)
It's not 100% correct, I did trying this one, but not succeed. Have you installed your 1.6-ext on OpenSUSE 12.1 64 bit?

I haven't tried it, but neither did you first reference that you had followed those instructions ;)

What errors are you getting?

iznal August 9, 2012 10:48

Quote:

Originally Posted by wyldckat (Post 376249)
I haven't tried it, but neither did you first reference that you had followed those instructions ;)

What errors are you getting?

It happens in gcc and gzip.

Quote:

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux-16n7.site
OS: Linux version 3.1.0-1.2-desktop
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/yukaiyu/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/yukaiyu/OpenFOAM/yukaiyu-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/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext yes yes yes

$FOAM_APPBIN ...t/applications/bin/linux64Gcc46DPOpt yes yes yes
$FOAM_SITE_APPBIN ...M/site/1.6-ext/bin/linux64Gcc46DPOpt no no
$FOAM_USER_APPBIN ...t/applications/bin/linux64Gcc46DPOpt no no
$WM_DIR ...aiyu/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 ...enFOAM-1.6-ext/lib/linux64Gcc46DPOpt yes yes yes
$FOAM_SITE_LIBBIN ...M/site/1.6-ext/lib/linux64Gcc46DPOpt no no
$FOAM_USER_LIBBIN ...ukaiyu-1.6-ext/lib/linux64Gcc46DPOpt no no
$MPI_ARCH_PATH /usr/lib64/mpi/gcc/openmpi 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/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64Gcc46DPOpt/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.

wyldckat August 9, 2012 10:51

OK, what are the first errors shown in "log.Allwmake"?

wyldckat August 9, 2012 11:09

There is one step they didn't mention: after installing the system's Open-MPI, you have to log out and log back in. Otherwise it isn't known to the working session as to which mpirun to use.

iznal August 9, 2012 11:10

First one:
Quote:

flex wmkdep.l
make: flex: Command not found
make: *** [/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/wmake/bin/linux64Gcc46/wmkdep] Error 127
Second One

Quote:

wmakeLnInclude: linking include files to ./lnInclude
/bin/sh: /home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/wmake/bin/linux64Gcc46/wmkdep: No such file or directory
/bin/sh: /home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/wmake/bin/linux64Gcc46/wmkdep: No such file or directory
SOURCE=scotchDecomp/scotchDecomp.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/scotchDecomp.o
SOURCE=engineScotchDecomp/engineScotchDecomp.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/engineScotchDecomp.o
In file included from scotchDecomp/scotchDecomp.C:108:0:
scotchDecomp/scotchDecomp.H:39:33: fatal error: decompositionMethod.H: No such file or directory
compilation terminated.
compilation terminated.

wyldckat August 9, 2012 11:12

OK, they are related. The first one should be fixed if you run as root (or with sudo):
Code:

zypper install -t pattern devel_C_C++

iznal August 9, 2012 11:15

Ok, but actually I followed the tutorial from Martin Beaudoin. The OpenMPI in stage2 is not installed in my laptop. I used the OpenMPI direct from System. Would you like to see all the log files, I could send you, cause I don't know how to post them all.

wyldckat August 9, 2012 11:19

Quote:

Originally Posted by iznal (Post 376264)
Ok, but actually I followed the tutorial from Martin Beaudoin. The OpenMPI in stage2 is not installed in my laptop. I used the OpenMPI direct from System. Would you like to see all the log files, I could send you, cause I don't know how to post them all.

If I'm not mistaken, it won't be necessary for me to see the logs ;)
I'm trying the steps myself and so far from your feedback the following steps are missing in the walkthrough:
  1. This needs to also be installed, to make sure that flex and other building utilities are installed:
    Code:

    zypper install -t pattern devel_C_C++
  2. The system Open-MPI will only be fully available if you log out and log back in.

iznal August 9, 2012 11:28

Awesome! You are a big boss!
Any Ideas about this one?

Quote:

SOURCE=scotchDecomp/scotchDecomp.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/scotchDecomp.o
SOURCE=engineScotchDecomp/engineScotchDecomp.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/engineScotchDecomp.o
scotchDecomp/scotchDecomp.C:116:20: fatal error: scotch.h: No such file or directory
compilation terminated.
make: *** [Make/linux64Gcc46DPOpt/scotchDecomp.o] Error 1
make: *** Waiting for unfinished jobs....
engineScotchDecomp/engineScotchDecomp.C:36:5: error: ‘adddictionaryMeshConstructorToTable’ in ‘class Foam::scotchDecomp’ does not name a type
make: *** [Make/linux64Gcc46DPOpt/engineScotchDecomp.o] Error 1

iznal August 9, 2012 11:31

You are right. The first error disappeared.

Quote:

2. The system Open-MPI will only be fully available if you log out and log back in.
How to solve this issue? should I compile the OpenMPI with Allwmake.stage2?

wyldckat August 9, 2012 11:35

Quote:

Originally Posted by iznal (Post 376272)
Awesome! You are a big boss!
Any Ideas about this one?

Run AllMake.stage3 again.

Quote:

Originally Posted by iznal (Post 376275)
How to solve this issue? should I compile the OpenMPI with Allwmake.stage2?

If you can't log out and log back in, then let's try for now building OpenFOAM without logging out and back in.

iznal August 9, 2012 11:55

I have ran AllMake.stage3 agian.
and sourced the . ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc.
and ran the Allwmake. The error motionSolver.H comes out. Should I download it, and save in /home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude/

Quote:

+ dynamicMesh/Allwmake
+ wmakeLnInclude dynamicMesh
+ wmake libso dynamicMesh
'/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc46DPOpt/libdynamicMesh.so' is up to date.
+ meshMotion/Allwmake
+ wmake libso fvMotionSolver
'/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc46DPOpt/libfvMotionSolver.so' is up to date.
+ wmake libso RBFMotionSolver
'/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc46DPOpt/libRBFMotionSolver.so' is up to date.
+ wmake libso mesquiteMotionSolver
SOURCE=mesquiteMotionSolver.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I -I/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -IlnInclude -I. -I/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/mesquiteMotionSolver.o
In file included from mesquiteMotionSolver.H:40:0,
from mesquiteMotionSolver.C:27:
/home/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude/motionSolver.H:41:32: fatal error: twoDPointCorrector.H: No such file or directory
compilation terminated.
make: *** [Make/linux64Gcc46DPOpt/mesquiteMotionSolver.o] Error 1
+ cd tetDecompositionMotionSolver

wyldckat August 9, 2012 12:04

I have a feeling you better run the other stages as well, namely:
Code:

cd $WM_PROJECT_DIR/ThirdParty
./AllMake.stage1 >& log.AllMake.stage1
./AllMake.stage4 >& log.AllMake.stage4


iznal August 9, 2012 12:22

1 Attachment(s)
my log file contains no errors. But by doing the foamInstallationTest it shows a critical error.

Quote:

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux-16n7.site
OS: Linux version 3.1.0-1.2-desktop
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/yukaiyu/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/yukaiyu/OpenFOAM/yukaiyu-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/yukaiyu/OpenFOAM/OpenFOAM-1.6-ext yes yes yes

$FOAM_APPBIN ...t/applications/bin/linux64Gcc46DPOpt yes yes yes
$FOAM_SITE_APPBIN ...M/site/1.6-ext/bin/linux64Gcc46DPOpt no no
$FOAM_USER_APPBIN ...t/applications/bin/linux64Gcc46DPOpt no no
$WM_DIR ...aiyu/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 ...enFOAM-1.6-ext/lib/linux64Gcc46DPOpt yes yes yes
$FOAM_SITE_LIBBIN ...M/site/1.6-ext/lib/linux64Gcc46DPOpt no no
$FOAM_USER_LIBBIN ...ukaiyu-1.6-ext/lib/linux64Gcc46DPOpt no no
$MPI_ARCH_PATH /usr/lib64/mpi/gcc/openmpi 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 1.6-ext ...OAM-1.6-ext/applications/bin/linux64Gcc46DPOpt/icoFoam
-------------------------------------------------------------------------------


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

The foam installation contains 1 critical error(s).

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

done.

wyldckat August 9, 2012 12:40

Not to worry, that's an old bug in the diagnosis script :)

I think you're ready to start using 1.6-ext!
Have fun! :)

mbeaudoin August 9, 2012 23:42

@the build instructions for OpenSUSE 12.1 64bit:
I just tested every single instructions of the build instructions I wrote for OpenSUSE 12.1 64bit using a brand new OpenSUSE 12.1 64bit system.
Everything compiled without a single glitch. No need for additional packages. The instructions provided are complete and sufficient.

@OpenMPI on OpenSUSE 12.1-64bit:
You don't have to logoff nor reboot your system after configuring and compiling OF 1.6-ext in order to run a parallel simulation using the system installed mpirun on OpenSUSE 12.1-64bit .
This is nonsense. And yes, I took the time to test this as well.

@error messages from 'foamInstallationTest':
Have you seen any mention of 'foamInstallationTest' in the build instructions?
You did not because running this script is not necessary.
As a matter of fact, I can't even remember the last time I invoked that rather useless script.

Martin

wyldckat August 10, 2012 13:12

Martin,

I've updated the report: https://sourceforge.net/apps/mantisb...hp?id=149#c370
My apologies for not fully checking the instructions myself and delivered that complete log when I did the initial report.

Best regards,
Bruno


All times are GMT -4. The time now is 23:04.