CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

OpenFOAM 1.7.0 on OpenSUSE 11.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2010, 23:34
Default OpenFOAM 1.7.0 on OpenSUSE 11.1
  #1
Member
 
Paulo Bufacchi
Join Date: Jun 2010
Posts: 50
Rep Power: 16
Bufacchi is on a distinguished road
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.

Thanks in advance,

Paulo
Attached Files
File Type: txt error samples.txt (6.7 KB, 14 views)
Bufacchi is offline   Reply With Quote

Old   June 28, 2010, 02:02
Default
  #2
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 22
MartinB will become famous soon enough
Hi Paulo,

try install the "binutils-devel" package.

Martin
MartinB is offline   Reply With Quote

Old   June 28, 2010, 13:49
Default
  #3
Member
 
Paulo Bufacchi
Join Date: Jun 2010
Posts: 50
Rep Power: 16
Bufacchi is on a distinguished road
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
Bufacchi is offline   Reply With Quote

Old   June 28, 2010, 19:32
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   June 28, 2010, 20:59
Default
  #5
Member
 
Paulo Bufacchi
Join Date: Jun 2010
Posts: 50
Rep Power: 16
Bufacchi is on a distinguished road
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
Bufacchi is offline   Reply With Quote

Old   June 29, 2010, 19:37
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   July 3, 2010, 14:09
Default
  #7
Member
 
Paulo Bufacchi
Join Date: Jun 2010
Posts: 50
Rep Power: 16
Bufacchi is on a distinguished road
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
Bufacchi is offline   Reply With Quote

Old   August 6, 2010, 10:05
Default
  #8
Member
 
Join Date: Dec 2009
Location: Kanpur, India
Posts: 54
Rep Power: 17
Shoonya is on a distinguished road
Quote:
Originally Posted by Bufacchi View Post
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.

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


Last edited by Shoonya; August 6, 2010 at 13:35.
Shoonya is offline   Reply With Quote

Old   August 6, 2010, 10:57
Default
  #9
Member
 
Paulo Bufacchi
Join Date: Jun 2010
Posts: 50
Rep Power: 16
Bufacchi is on a distinguished road
Thanks for your message, Dinesh.

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

Regards,

Paulo
Bufacchi is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Openfoam installation on OpenSuse 11.1 Bufacchi OpenFOAM Installation 1 June 15, 2010 20:55
OpenFOAM Live USB based on openSUSE 11.1 created with SUSE Studio alberto OpenFOAM 40 May 23, 2010 17:15
Critical errors during OpenFoam installation in OpenSuse 11.0 amscosta OpenFOAM 5 May 1, 2009 15:06
Installing OpenFOAM 1.5 on OpenSUSE 11.1 StructureITA OpenFOAM Installation 31 April 30, 2009 20:45
OpenFOAM 1.5 installation on OpenSUSE 11.0 bigphil OpenFOAM Installation 16 April 29, 2009 07:28


All times are GMT -4. The time now is 01:32.