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

OpenFOAM install on Ubuntu Natty 11.04

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

Like Tree1Likes
  • 1 Post By olivierG

Reply
 
LinkBack Thread Tools Display Modes
Old   May 17, 2011, 04:47
Default OpenFOAM install on Ubuntu Natty 11.04
  #1
New Member
 
Bernhard Kubicek
Join Date: May 2011
Posts: 5
Rep Power: 6
bkubicek is on a distinguished road
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
bkubicek is offline   Reply With Quote

Old   May 17, 2011, 05:55
Thumbs up big problem
  #2
New Member
 
schweb's Avatar
 
Riki
Join Date: May 2011
Location: Italy
Posts: 2
Rep Power: 0
schweb is on a distinguished road
Send a message via MSN to schweb Send a message via Skype™ to schweb
Hi,
I've the same problem!!
There're anybody to resolve this?

bye
schweb is offline   Reply With Quote

Old   May 17, 2011, 05:58
Default more specifically
  #3
New Member
 
Bernhard Kubicek
Join Date: May 2011
Posts: 5
Rep Power: 6
bkubicek is on a distinguished road
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:~#
bkubicek is offline   Reply With Quote

Old   May 17, 2011, 06:27
Default
  #4
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 237
Rep Power: 9
olivierG is on a distinguished road
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 likes this.
olivierG is offline   Reply With Quote

Old   May 17, 2011, 07:10
Default it is compiling right now
  #5
New Member
 
Bernhard Kubicek
Join Date: May 2011
Posts: 5
Rep Power: 6
bkubicek is on a distinguished road
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
bkubicek is offline   Reply With Quote

Old   May 17, 2011, 12:51
Default OpenFOAM 1.7.1, Natty
  #6
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 101
Rep Power: 6
adhiraj is on a distinguished road
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.
adhiraj is offline   Reply With Quote

Old   May 18, 2011, 02:54
Default big problem
  #7
New Member
 
schweb's Avatar
 
Riki
Join Date: May 2011
Location: Italy
Posts: 2
Rep Power: 0
schweb is on a distinguished road
Send a message via MSN to schweb Send a message via Skype™ to schweb
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
schweb is offline   Reply With Quote

Old   May 18, 2011, 06:52
Default
  #8
New Member
 
Bernhard Kubicek
Join Date: May 2011
Posts: 5
Rep Power: 6
bkubicek is on a distinguished road
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.
bkubicek is offline   Reply With Quote

Old   May 18, 2011, 09:58
Default OpenFOAM on Natty
  #9
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 101
Rep Power: 6
adhiraj is on a distinguished road
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
adhiraj is offline   Reply With Quote

Old   May 21, 2011, 07:51
Default Use the maverick packs with Ubuntu 11.04
  #10
Member
 
OpenCFD
Join Date: Mar 2009
Posts: 42
Rep Power: 8
opencfd is on a distinguished road
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.
opencfd is offline   Reply With Quote

Old   May 21, 2011, 09:25
Default
  #11
Member
 
Stephen
Join Date: Mar 2009
Posts: 40
Rep Power: 8
basilwatson is on a distinguished road
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
basilwatson is offline   Reply With Quote

Old   May 25, 2011, 13:14
Default Natty and paraview
  #12
New Member
 
Join Date: Oct 2010
Posts: 5
Rep Power: 6
TomS is on a distinguished road
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$
TomS is offline   Reply With Quote

Old   May 26, 2011, 03:04
Default
  #13
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 237
Rep Power: 9
olivierG is on a distinguished road
hello,

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

olivier
olivierG is offline   Reply With Quote

Old   May 26, 2011, 05:48
Default Natty and paraview
  #14
New Member
 
Join Date: Oct 2010
Posts: 5
Rep Power: 6
TomS is on a distinguished road
Merci Olivier,

However, I already have libxt-dev installed.

Tom
TomS is offline   Reply With Quote

Reply

Tags
ubuntu natty 11.04

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
unable to install openfoam 1.7 using apt-get maazhmd OpenFOAM Installation 7 July 24, 2011 11: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 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 04:02.