CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM 1.7.0 on OpenSUSE 11.1 (https://www.cfd-online.com/Forums/openfoam-installation/77575-openfoam-1-7-0-opensuse-11-1-a.html)

Bufacchi June 27, 2010 22:34

OpenFOAM 1.7.0 on OpenSUSE 11.1
 
1 Attachment(s)
Hi all,

I have OpenSUSE 11.1 on a quad-core AMD box. OpenFOAM 1.6.x was working just fine, but I decided to go to the new 1.7.0 version.

I upgraded many apps, and now I got:

paulo@linux-nkui:~/OpenFOAM/OpenFOAM-1.7.0> gcc --version
gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

paulo@linux-nkui:~/OpenFOAM/OpenFOAM-1.7.0> qmake --version
QMake version 2.01a
Using Qt version 4.5.3 in /usr/lib64
paulo@linux-nkui:~/OpenFOAM/OpenFOAM-1.7.0> flex -V
flex 2.5.35
paulo@linux-nkui:~/OpenFOAM/OpenFOAM-1.7.0>


checking the OpenFOAM install, I get:

paulo@linux-nkui:~/OpenFOAM/OpenFOAM-1.7.0> foamInstallationTest
Executing /home/paulo/OpenFOAM/OpenFOAM-1.7.0/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux-nkui
OS: Linux version 2.6.27.45-0.1-default
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/paulo/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/paulo/OpenFOAM/paulo-1.7.0 yes no
$WM_THIRD_PARTY_DIR /home/paulo/OpenFOAM/ThirdParty-1.7.0 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/paulo/OpenFOAM/OpenFOAM-1.7.0 yes yes yes

$FOAM_APPBIN ...7.0/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.7.0/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...7.0/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR .../paulo/OpenFOAM/OpenFOAM-1.7.0/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 ...M/OpenFOAM-1.7.0/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.7.0/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...FOAM/paulo-1.7.0/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...0/platforms/linux64Gcc/openmpi-1.4.1 yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.4.1 /usr/bin/gcc
gzip 1.3.12 /usr/bin/gzip
tar 1.20 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/paulo/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

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


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.

paulo@linux-nkui:~/OpenFOAM/OpenFOAM-1.7.0>


Attached is a file with three samples of the errors extracted from the make.log file. Compilation goes well, but suddenly some errors show up and I really don't know what to do. I tried a lot of things based on previous threads, but nothing seems to work.

Comments are welcome. :D

Thanks in advance,

Paulo

MartinB June 28, 2010 01:02

Hi Paulo,

try install the "binutils-devel" package.

Martin

Bufacchi June 28, 2010 12:49

Hi Martin.

Thanks for your reply.

I already have it installed - version 2.19.

By the way, I'm running a 64bit environment.

Any other hint?

Thanks,

Paulo :)

wyldckat June 28, 2010 18:32

Hi Paulo,

Two things:
  1. You probably missed the very first error: libScotch.so didn't get built, most likely because you didn't install flex and/or bison.
  2. The "-liberty" error is related to some missing libraries in your gcc development tools. In OpenSUSE's YaST, in its software management/installation component, you can choose items by pattern instead of just the package name, and there is a "C/C++ Development" pattern that you can pick and it will install most of the necessary build tools for building OpenFOAM! You can also check this blog for more info on building OpenFOAM for OpenSUSEs: http://albertopassalacqua.com/
Best regards,
Bruno

Bufacchi June 28, 2010 19:59

Hi Bruno,

Thanks for your message.

I had already read the blog and had done exactly what you say in your message. Unfortunately it didn't work. Flex 2.5.35 is installed on my computer.

I just finished upgrading my Suse from 11.1 to 11.2, and compiled OpenFOAM according to the instructions. For the first time in my life I compiled an application without any error. The guys that prepared it did a great job. Congratulations to them, whoever they are.

I only have a problem now compiling Paraview 3.8.0. It seems that Qt needs to be version 4.6 and I have 4.5.3. I used Yast to install a newer version, but I couldn't find one. Do you know how do I get Qt version 4.6?

Thanks for your time. :)

Paulo

wyldckat June 29, 2010 18:37

Hi Paulo,

You can get most versions of Qt from right here: ftp://ftp.trolltech.com/qt/source/
If you get the ThirdParty-1.6 package, you'll find in it a script that was used for building Qt 4.3.5, and in the link in my signature you'll find another link to a thread with instructions on how to build ParaView 3.6.1 with Qt 4.3.5, which I believe you can adapt to Qt 4.6.0 and ParaView 3.8.0.

Nonetheless, you could also try to save some time and download the precompiled version available at www.paraview.org, and do the tweak described in the second half of this post: http://www.cfd-online.com/Forums/ope...tml#post263925
Well, those are also instructions relative to ParaView 3.6.1, but it should be easy enough to adapt to ParaView 3.8.0 :)

Best regards,
Bruno

Bufacchi July 3, 2010 13:09

Howdy Bruno,

Sorry for the late reply.

I made the changes you mentioned: I used the precompiled version available at www.paraview.org, and did the tweak described in the second half of the post: http://www.cfd-online.com/Forums/ope...tml#post263925

I spent most of the time trying to recompile paraview myself, but as I didn't succeed it seems I'm not as good as I thought I was. :)

I tested Paraview with icoFoam and worked ok.

Next, I'll compile OpenFOAM-1.7.x and just link ThirdParty-1.7.x to 1.7.0.

Thanks a lot for your time.

Best regards,

Paulo

Shoonya August 6, 2010 09:05

Quote:

Originally Posted by Bufacchi (Post 264743)
Hi all,

I have OpenSUSE 11.1 on a quad-core AMD box. OpenFOAM 1.6.x was working just fine, but I decided to go to the new 1.7.0 version.

I upgraded many apps, and now I got:

paulo@linux-nkui:~/OpenFOAM/OpenFOAM-1.7.0> gcc --version
gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

paulo@linux-nkui:~/OpenFOAM/OpenFOAM-1.7.0> qmake --version
QMake version 2.01a
Using Qt version 4.5.3 in /usr/lib64
paulo@linux-nkui:~/OpenFOAM/OpenFOAM-1.7.0> flex -V
flex 2.5.35
paulo@linux-nkui:~/OpenFOAM/OpenFOAM-1.7.0>


checking the OpenFOAM install, I get:

paulo@linux-nkui:~/OpenFOAM/OpenFOAM-1.7.0> foamInstallationTest
Executing /home/paulo/OpenFOAM/OpenFOAM-1.7.0/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux-nkui
OS: Linux version 2.6.27.45-0.1-default
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/paulo/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/paulo/OpenFOAM/paulo-1.7.0 yes no
$WM_THIRD_PARTY_DIR /home/paulo/OpenFOAM/ThirdParty-1.7.0 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/paulo/OpenFOAM/OpenFOAM-1.7.0 yes yes yes

$FOAM_APPBIN ...7.0/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.7.0/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...7.0/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR .../paulo/OpenFOAM/OpenFOAM-1.7.0/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 ...M/OpenFOAM-1.7.0/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.7.0/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...FOAM/paulo-1.7.0/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...0/platforms/linux64Gcc/openmpi-1.4.1 yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.4.1 /usr/bin/gcc
gzip 1.3.12 /usr/bin/gzip
tar 1.20 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/paulo/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

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


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.

paulo@linux-nkui:~/OpenFOAM/OpenFOAM-1.7.0>


Attached is a file with three samples of the errors extracted from the make.log file. Compilation goes well, but suddenly some errors show up and I really don't know what to do. I tried a lot of things based on previous threads, but nothing seems to work.

Comments are welcome. :D

Thanks in advance,

Paulo


hi...
I too get this error. So I guessed that it may not finding icoFoam. I copied that icoFoam from /home/my/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/icoFoam my compiled openFoam same version 1.7.0 of and put at
/home/paulo/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/icoFoam

and then I installed bison, flex, liberty, lz, binutil-dev. and then I excuted ./Allwmake. I was able to compile. Though I could not make the paraview by unknown reason. But I ran many cases in openFoam. I separately installed paraview, which could handle the .vtk files gotten from by executing command foamToVTK.

let me know if it is helps

dinesh


Bufacchi August 6, 2010 09:57

Thanks for your message, Dinesh.

I decided to move on OpenSuse 11.3, and all OpenFOAM 1.7.x compilations ran smoothly.

Regards,

Paulo


All times are GMT -4. The time now is 16:03.