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

Installation of OpenFOAM-1.6 on Ubuntu 9.10

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 10, 2010, 14:53
Default Installation of OpenFOAM-1.6 on Ubuntu 9.10
  #1
Member
 
Join Date: Dec 2009
Posts: 39
Rep Power: 7
marval is on a distinguished road
Hi everyone!

Iḿ quite new to Ubuntu but I'd like to install OpenFOAM on it, so I simply follow this simple how to-guide:

http://code-saturne.blogspot.com/201...on-ubuntu.html

For those of you that don't want to press the link:

Quote:
Installation of OpenFOAM 1.6 on Ubuntu 9.10

OpenFOAM is another open source CFD software. In order to install OpenFOAM onto Ubuntu 9.10, the following packages are necessary.

cmake g++ flex++ bison python qt4-designer binutils-dev zlib1g-dev

Use apt-get to install them before trying to install and use OpenFOAM.

:/$ sudo apt-get install cmake g++ flex++ bison python qt4-designer binutils-dev zlib1g-dev

A very brief introduction on the compilation

1. Download the related packages, including the source pack and the binary pack. Double precision is recommended.

2. Create a directory OpenFOAM under $HOME (or at other locations if you prefer), move the downloaded packages into it, and then execute

:/$ tar xzvf OpenFOAM-1.6.General.gtgz
:/$ tar xzvf ThirdParty-1.6.General.gtgz
:/$ tar xzvf OpenFOAM-1.6.linuxGccDPOpt.gtgz
:/$ tar xzvf ThirdParty-1.6.linuxGcc.gtgz

3. Source the file OpenFOAM-1.6/etc/bashrc. For convenience, a sentence could be incorporated into the user config file .bashrc.

source $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc

4. Compile ParaView. Ship into OpenFOAM/ThirdParty-1.6 and execute

sh makeParaView

5. Link OpenFOAM ParaView reader and ParaView.

:/$ cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
:/$ ./Allwclean
:/$ ./Allwmake

The Windows version

"openfoam-mswin" is a project to provide an OpenFOAM binary release for MS windows. The project is hosted on SourceForge, and a self-install file for Windows can then be downloaded from its SourceForge site. With its help, it is easier to install and use OpenFOAM if Linux experience is absent.
Now, I succed in all but the last step:
Quote:
./Allwmake
. When I type in that I get the following:

Quote:
+ [ -d /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc -a -r /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc ]
+ wmake libso vtkPV3Foam
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3Foam.C
could not open file vtkConfigure.h for source file vtkPV3Foam.C
Making dependency list for source file vtkPV3FoamFields.C
could not open file vtkConfigure.h for source file vtkPV3FoamFields.C
Making dependency list for source file vtkPV3FoamMesh.C
could not open file vtkConfigure.h for source file vtkPV3FoamMesh.C
Making dependency list for source file vtkPV3FoamMeshLagrangian.C
could not open file vtkConfigure.h for source file vtkPV3FoamMeshLagrangian.C
Making dependency list for source file vtkPV3FoamMeshPatch.C
could not open file vtkConfigure.h for source file vtkPV3FoamMeshPatch.C
Making dependency list for source file vtkPV3FoamMeshSet.C
could not open file vtkConfigure.h for source file vtkPV3FoamMeshSet.C
Making dependency list for source file vtkPV3FoamMeshVolume.C
could not open file vtkConfigure.h for source file vtkPV3FoamMeshVolume.C
Making dependency list for source file vtkPV3FoamMeshZone.C
could not open file vtkConfigure.h for source file vtkPV3FoamMeshZone.C
Making dependency list for source file vtkPV3FoamUpdateInfo.C
could not open file vtkConfigure.h for source file vtkPV3FoamUpdateInfo.C
Making dependency list for source file vtkPV3FoamUtilities.C
could not open file vtkConfigure.h for source file vtkPV3FoamUtilities.C
SOURCE=vtkPV3Foam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/marcoantonio/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/marcoantonio/OpenFOAM/OpenFOAM-1.6/src/lagrangian/basic/lnInclude -I/home/marcoantonio/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -I/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc/VTK -I/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1 -I/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK -I/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common -I/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Filtering -I/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Rendering -I../PV3FoamReader -IlnInclude -I. -I/home/marcoantonio/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/marcoantonio/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3Foam.o
In file included from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkSystemIncludes.h:30,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkIndent.h:24,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkObjectBase.h:43,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkObject.h:41,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Filtering/vtkAlgorithm.h:32,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Filtering/vtkMultiBlockDataSetAlgorithm.h:25,
from ../PV3FoamReader/vtkPV3FoamReader.h:31,
from vtkPV3Foam.C:28:
/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkWin32Header.h:27:26: error: vtkConfigure.h: No such file or directory
In file included from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkSystemIncludes.h:40,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkIndent.h:24,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkObjectBase.h:43,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkObject.h:41,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Filtering/vtkAlgorithm.h:32,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Filtering/vtkMultiBlockDataSetAlgorithm.h:25,
from ../PV3FoamReader/vtkPV3FoamReader.h:31,
from vtkPV3Foam.C:28:
/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkIOStream.h:68:68: error: iostream.h: No such file or directory
/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkIOStream.h:69:23: error: iomanip.h: No such file or directory
/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkIOStream.h:70:70: error: fstream.h: No such file or directory
In file included from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkSystemIncludes.h:44,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkIndent.h:24,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkObjectBase.h:43,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkObject.h:41,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Filtering/vtkAlgorithm.h:32,
from /home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Filtering/vtkMultiBlockDataSetAlgorithm.h:25,
from ../PV3FoamReader/vtkPV3FoamReader.h:31,
from vtkPV3Foam.C:28:
/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkType.h:165:3: error: #error "No native data type can represent an 8-bit integer."
/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkType.h:180:3: error: #error "No native data type can represent a 16-bit integer."
/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkType.h:195:3: error: #error "No native data type can represent a 32-bit integer."
/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkType.h:215:3: error: #error "No native data type can represent a 64-bit integer."
/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkType.h:223:3: error: #error "No native data type can represent a 32-bit floating point value."
/home/marcoantonio/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkType.h:231:3: error: #error "No native data type can represent a 64-bit floating point value."
make: *** [Make/linux64GccDPOpt/vtkPV3Foam.o] Error 1
+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
cmake: /home/marcoantonio/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by cmake)
+ make
make: *** No targets specified and no makefile found. Stop.
marcoantonio@ubuntu:~/OpenFOAM/OpenFOAM-1.6/applications/utilities/postProcessing/graphics/PV3FoamReader$
What am I doing wrong? Please have mercy if it's something trivial I forgot and I don't understand As I said, I'm new to Ubuntu.

Regards
marval
marval is offline   Reply With Quote

Old   March 11, 2010, 11:58
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings marval,

May I suggest following Mads cookbook? The thread is dedicated to it is this one. See his signature for the link to the cookbook scripts.
Additionally, you should take into account which architecture version of Ubuntu are you using? 32 or 64 bit? And are you building the 64 bit version of OpenFOAM? I say this, because you unpacked the 32 bit binaries, but are trying to build the 64 bit version of OpenFOAM!
To build the 32 bit version of OpenFOAM, you should edit the file "$HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc" and change WM_ARCH_OPTION from 64 to 32.

Either way, if you don't feel like following Mads cookbook, the missing commands after unpacking the ThirdParty-1.6.linuxGcc.gtgz file are (from post #282):
Code:
 echo "FIX up for Ubuntu 9.10"
cd ~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64
mv libstdc++.so.6 libstdc++.so.6.orig
ln -s `locate libstdc++.so.6.0 | grep "^/usr/lib" | head -n 1` libstdc++.so.6
mv libgcc_s.so.1 libgcc_s.so.1.orig
ln -s `locate libgcc_s.so. | grep "^/lib" | head -n 1` libgcc_s.so.1
cd ~/OpenFOAM
echo "Fix up done"
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 17, 2010, 09:33
Default
  #3
New Member
 
Join Date: Mar 2010
Posts: 14
Rep Power: 7
rahulrp is on a distinguished road
Hi
I am new in ubuntu 9.04 and I am trying to get paraView. I followed following procedure after sourcing the file OpenFOAM-1.6/etc/bashrc.


Compile ParaView. Ship into OpenFOAM/ThirdParty-1.6 and execute

sh makeParaView

Link OpenFOAM ParaView reader and ParaView.

:/$ cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
:/$ ./Allwclean
:/$ ./Allwmake





But now I am getting following error msg and I'm stucked in it...Pls help m in regard
Thankx..

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENGL_INCLUDE_DIR
used as include directory in directory /home/rahul/OpenFOAM/OpenFOAM-1.6/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader

-- Configuring incomplete, errors occurred!
+ make
make: *** No targets specified and no makefile found. Stop.
rahulrp is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Installing OF 1.6 Ubuntu 9.10 (64 bit) - How to use GCC 4.4.1 Future Science OpenFOAM Installation 43 November 10, 2011 08:17
Installing OpenFOAM 1.6 on ubuntu 9.10 nabeels OpenFOAM Installation 32 May 10, 2010 03:09
OpenFOAM 1.6 installation in Ubuntu 9.1 jsm OpenFOAM Installation 4 January 3, 2010 23:53
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 22:28.