CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFOAM install on Ubuntu Natty 11.04 (http://www.cfd-online.com/Forums/openfoam/88411-openfoam-install-ubuntu-natty-11-04-a.html)

bkubicek May 17, 2011 04:47

OpenFOAM install on Ubuntu Natty 11.04
 
Hello!
Has anybody managed to get OpenFOAM to work on Ubuntu Natty Narwhale 11.04 64 bit?
I tried to manually infuse the maverick packages, and e.g. snappyhexmesh does not start as some libraries are not binary compatible.

Also compilation failed, once because of Paraview, seemingly also because some original OpenFOAM code did not compile.

If anybody succeeded, could he please give a walkthrough?

very nice greetings,
Bernhard

schweb May 17, 2011 05:55

big problem
 
Hi,
I've the same problem!! :mad:
There're anybody to resolve this?

bye :)

bkubicek May 17, 2011 05:58

more specifically
 
after installing the lucid version of ubuntu 1.7.1, i get errors while trying to source the /opt/openfoam171/etc/bashrc:
Code:

root@node65:~# . /opt/openfoam171/etc/bashrc
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 20 has invalid symbol index 21
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 20 has invalid symbol index 21
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
root@node65:~#


olivierG May 17, 2011 06:27

hello,
I don't know for the maverick package, but the 1.7.x from git compile without any problem with ubuntu 11.04 64bit

olivier

bkubicek May 17, 2011 07:10

it is compiling right now
 
it is compiling right now.
what I had to do to reach this state, IIRC:
Code:

cd ~
mkdir OpenFOAM
cd OpenFOAM
git clone http://github.com/OpenCFD/OpenFOAM-1.7.x.git
cd OpenFoam-1.7.x
./Allwmake


adhiraj May 17, 2011 12:51

OpenFOAM 1.7.1, Natty
 
I had this a problem installing it on the 32 bit version of Natty. May be unrelated, but you can look at this link:
http://http://www.idurun.com/?p=544
Scroll down and look under Issues. This helped me fix the problem.

schweb May 18, 2011 02:54

big problem
 
I wrote to OpenFOAM technical support and they told me that had not yet released deb-pack of OpenFOAM for Ubuntu 11.04 which is very new!!but I will do so with the next release of OpenFOAM...............

They say: " In the meantime you can
either run OpenFOAM on Ubuntu 10.10 or build the source-pack on Ubuntu 11.04."

I know C, C++ languages but I don't know how to adapt a software to a new OS version...... anybody could help me?

Thank you bye Riccardo from Italy :D:cool::mad:

bkubicek May 18, 2011 06:52

I just uploaded my 1.7.x compiled binaries to my German server:
http://kariert.org/openfoam_unoffici...u_11.04.tar.gz


it should be unpacked, so that you have get a directory structure like this:

~/OpenFOAM/OpenFOAM-1.7.x/

hope this works for some people, I have no clue about dependencies.

adhiraj May 18, 2011 09:58

OpenFOAM on Natty
 
I am currently running OpenFOAM 1.7.1 on Natty 32 bit. In my experience, the different OS did not matter too much, and the only thing I needed to do was to edit the 'wmake/rules/linux***/general' file (Insert your own compiler in place of linux****, for example linux64Gcc for 64 bit, linuxGcc for 32 bit and so on) and add the following:
Code:

PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl $(FOAM_MPI_LIBBIN)/libPstream.so
Then make sure you have the dependencies installed, issue ./Allwmake at the foam directory, sit back and enjoy.
Or maybe you can go and catch up on your favorite movie while it builds OpenFOAM.
Good luck.

PS.
The edit is due to Laurence R. McGlashan, on the site http://www.idurun.com/?p=544

opencfd May 21, 2011 07:51

Use the maverick packs with Ubuntu 11.04
 
Our tests indicate that the OpenFOAM packs for maverick work on Ubuntu 11.04 (natty). See the additional instructions:
http://www.openfoam.com/download/ubuntu.php

If any problems are encountered, please report a bug at:
http://www.openfoam.com/bugs/

OpenCFD.

basilwatson May 21, 2011 09:25

I can say that I upgraded my computer Using CAELinux 10.04 to 11.04 natty and openFOAM runs just fine , but Salome crashes

if thats any help to anyone

Stephen

TomS May 25, 2011 13:14

Natty and paraview
 
Hi,

I am trying to install a dev version of OpenFOAM 1.7.x source pack with Natty 11.04 64-bit on a Sony VAIO Z-series laptop. OpenFOAM compiles and runs fine but paraview begins to compile then has the following error abut 1/2 way through compilation:

I have tried all of the above suggestions in this thread to no avail.

Any advice would be much appreciated.

Tom-S

from /home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkGraphicsFactory.cxx:66:
/usr/include/X11/Intrinsic.h:280:5: error: ‘KeySym’ has not been declared
/usr/include/X11/Intrinsic.h:285:5: error: ‘KeySym’ has not been declared
/usr/include/X11/Intrinsic.h:286:5: error: ‘KeySym’ has not been declared
/usr/include/X11/Intrinsic.h:287:5: error: ‘KeySym’ has not been declared
/usr/include/X11/Intrinsic.h:605:8: error: ‘KeySym’ does not name a type
/usr/include/X11/Intrinsic.h:613:5: error: ‘KeySym’ has not been declared
/usr/include/X11/Intrinsic.h:776:8: error: ‘KeySym’ does not name a type
/usr/include/X11/Intrinsic.h:792:5: error: ‘KeySym’ has not been declared
/usr/include/X11/Intrinsic.h:800:5: error: ‘KeySym’ has not been declared
/usr/include/X11/Intrinsic.h:811:5: error: ‘KeySym’ has not been declared
/usr/include/X11/Intrinsic.h:812:5: error: ‘KeySym’ has not been declared
/usr/include/X11/Intrinsic.h:817:5: error: ‘KeySym’ has not been declared
/usr/include/X11/Intrinsic.h:818:5: error: ‘KeySym’ has not been declared
/usr/include/X11/Intrinsic.h:819:5: error: ‘KeySym’ has not been declared
/usr/include/X11/Intrinsic.h:1139:5: error: ‘Window’ has not been declared
/usr/include/X11/Intrinsic.h:1206:8: error: ‘Window’ does not name a type
/usr/include/X11/Intrinsic.h:1210:8: error: ‘Window’ does not name a type
/usr/include/X11/Intrinsic.h:2151:5: error: ‘Window’ has not been declared
/usr/include/X11/Intrinsic.h:2152:5: error: ‘Cursor’ has not been declared
/usr/include/X11/Intrinsic.h:2167:5: error: ‘Window’ has not been declared
/usr/include/X11/Intrinsic.h:2168:5: error: ‘Cursor’ has not been declared
/usr/include/X11/Intrinsic.h:2185:5: error: ‘Drawable’ has not been declared
/usr/include/X11/Intrinsic.h:2191:5: error: ‘Drawable’ has not been declared
In file included from /home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkGraphicsFactory.cxx:66:0:
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXRenderWindowInteractor.h:172:3: error: ‘Window’ does not name a type
In file included from /home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkGraphicsFactory.cxx:67:0:
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:83:11: error: ‘Colormap’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:160:3: error: ‘Window’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:164:24: error: ‘Window’ has not been declared
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:169:3: error: ‘Window’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:173:24: error: ‘Window’ has not been declared
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:178:28: error: ‘Window’ has not been declared
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:236:3: error: ‘Window’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:237:3: error: ‘Window’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:238:3: error: ‘Window’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:240:3: error: ‘Colormap’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:250:3: error: ‘Cursor’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:251:3: error: ‘Cursor’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:252:3: error: ‘Cursor’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:253:3: error: ‘Cursor’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:254:3: error: ‘Cursor’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:255:3: error: ‘Cursor’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:256:3: error: ‘Cursor’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:257:3: error: ‘Cursor’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:258:3: error: ‘Cursor’ does not name a type
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h: In member function ‘virtual void* vtkXOpenGLRenderWindow::GetGenericParentId()’:
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:131:45: error: ‘class vtkXOpenGLRenderWindow’ has no member named ‘ParentId’
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h: In member function ‘virtual void* vtkXOpenGLRenderWindow::GetGenericDrawable()’:
/home/tom/OpenFOAM/ThirdParty-dev/paraview-3.9.0/VTK/Rendering/vtkXOpenGLRenderWindow.h:137:45: error: ‘class vtkXOpenGLRenderWindow’ has no member named ‘WindowId’
make[2]: *** [VTK/Rendering/CMakeFiles/vtkRendering.dir/vtkGraphicsFactory.cxx.o] Error 1
make[1]: *** [VTK/Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
make: *** [all] Error 2
---
Installation complete for paraview-3.9.0
Set environment variables:

export ParaView_DIR=/home/tom/OpenFOAM/ThirdParty-dev/platforms/linux64Gcc/paraview-3.9.0
export PATH=$ParaView_DIR/bin:$PATH
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.9
---

Done
tom@tom:~/OpenFOAM/ThirdParty-dev$

olivierG May 26, 2011 03:04

hello,

On Natty 11.04, you will need to install libxt-dev to get rid of the "Intrinsic.h" error

olivier

TomS May 26, 2011 05:48

Natty and paraview
 
Merci Olivier,

However, I already have libxt-dev installed.

Tom


All times are GMT -4. The time now is 18:24.