|
[Sponsors] |
May 17, 2011, 05:47 |
OpenFOAM install on Ubuntu Natty 11.04
|
#1 |
New Member
Bernhard Kubicek
Join Date: May 2011
Posts: 5
Rep Power: 15 |
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 |
|
May 17, 2011, 06:55 |
big problem
|
#2 |
New Member
|
Hi,
I've the same problem!! There're anybody to resolve this? bye |
|
May 17, 2011, 06:58 |
more specifically
|
#3 |
New Member
Bernhard Kubicek
Join Date: May 2011
Posts: 5
Rep Power: 15 |
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:~# |
|
May 17, 2011, 07:27 |
|
#4 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
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 |
|
May 17, 2011, 08:10 |
it is compiling right now
|
#5 |
New Member
Bernhard Kubicek
Join Date: May 2011
Posts: 5
Rep Power: 15 |
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 |
|
May 17, 2011, 13:51 |
OpenFOAM 1.7.1, Natty
|
#6 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16 |
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. |
|
May 18, 2011, 03:54 |
big problem
|
#7 |
New Member
|
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 |
|
May 18, 2011, 07:52 |
|
#8 |
New Member
Bernhard Kubicek
Join Date: May 2011
Posts: 5
Rep Power: 15 |
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. |
|
May 18, 2011, 10:58 |
OpenFOAM on Natty
|
#9 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16 |
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 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 |
|
May 21, 2011, 08:51 |
Use the maverick packs with Ubuntu 11.04
|
#10 |
Member
OpenCFD
Join Date: Mar 2009
Posts: 68
Rep Power: 19 |
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. |
|
May 21, 2011, 10:25 |
|
#11 |
Member
Stephen
Join Date: Mar 2009
Posts: 48
Rep Power: 17 |
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 |
|
May 25, 2011, 14:14 |
Natty and paraview
|
#12 |
New Member
Join Date: Oct 2010
Posts: 21
Rep Power: 16 |
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$ |
|
May 26, 2011, 04:04 |
|
#13 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
hello,
On Natty 11.04, you will need to install libxt-dev to get rid of the "Intrinsic.h" error olivier |
|
May 26, 2011, 06:48 |
Natty and paraview
|
#14 |
New Member
Join Date: Oct 2010
Posts: 21
Rep Power: 16 |
Merci Olivier,
However, I already have libxt-dev installed. Tom |
|
Tags |
ubuntu natty 11.04 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
unable to install openfoam 1.7 using apt-get | maazhmd | OpenFOAM Installation | 7 | July 24, 2011 12:18 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 15:43 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |