March 10, 2010, 14:53
|
Installation of OpenFOAM-1.6 on Ubuntu 9.10
|
#1
|
Member
Join Date: Dec 2009
Posts: 39
Rep Power: 17
|
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: . 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
|
|
|