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

Paraview installation troubles

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 4, 2008, 10:45
Default Hello, I am new to OpenFOAM an
  #1
New Member
 
Jeremiah Hall
Join Date: Mar 2009
Location: Denver, Co, USA
Posts: 10
Rep Power: 8
jjhall is on a distinguished road
Hello, I am new to OpenFOAM and I am having difficulty getting paraview to work. I have managed to get the OpenFoam binaries installed by following the installation directions, but paraview does not work.

Background on my machine/OS:

> uname -a
Linux xxxxxxx 2.6.22-14-generic #1 SMP Tue Feb 12 02:46:46 UTC 2008 x86_64 GNU/Linux

OS: Ubuntu 7.10 64-bit
Processor: AMD Athlon64 3500

First, I intalled the paraview binary according to the instructions. When I ran paraview, I got:

/home/jjhall/OpenFOAM/linux64/paraview-2.4.4/lib/paraview-2.4/paraview-real: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory

I tried "ldd paraview" and got

libc.so.6 => /lib/libc.so.6 (0x00002b4cfbaac000)
/lib64/ld-linux-x86-64.so.2 (0x00002b4cfb88e000)

Now, I'm not 100% clear on the meaning of this, but I thought that if ldd returned no errors or missing files, then you were OK. Anyway, I started looking for a way to fix it, so I decided to install a new version of paraview. I went to the paraview website and downloaded the newest binary (3.2.1). This runs fine, but there seems to be no reader for OpenFOAM, and I've read in other threads that paraFoam needs paraview 2.4.x to run. So, I found a post by Philippose Rajan where he gave a link to downloads of 2.4.4. I downloaded the binary paraview-2.4.4.bin.tgz and unpacked it, and the executable runs but gives an error:

ERROR: In /home/hjasak/OpenFOAM/linuxSrc/paraview-2.4.4/Utilities/VTKClientServer/vtkClien tServerInterpreter.cxx, line 886
vtkClientServerInterpreter (0x80662a8): /home/jjhall/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libPVFoamReader.so: wrong ELF class: ELFCLASS64


ERROR: In /home/hjasak/OpenFOAM/linuxSrc/paraview-2.4.4/GUI/Client/vtkPVXMLPackageParser.c xx, line 678
vtkPVXMLPackageParser (0x899ebc8): Error loading Library component PVFoamReader



ErrorMessage end


I figured this meant that I would need to recompile, so I downloaded paraview-2.4.4.tar.gz and tried to compile with cmake. However, it asks for the location of OPENGL_INCLUDE_DIR and OPENGL_gl_LIBRARY and gives an error.

Does anybody have any suggestions for a method to get paraFoam/paraview working? I am not new to Linux, but my experience is mostly as a user, and I always seem to run into these type of problems whenever I try to install something. However, I'd really like to get OpenFOAM going.

Thanks for any help you can give.

Jeremiah
jjhall is offline   Reply With Quote

Old   March 4, 2008, 16:10
Default You need to install tcl/tk lib
  #2
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 698
Rep Power: 12
msrinath80 is on a distinguished road
You need to install tcl/tk libs. That's all.
msrinath80 is offline   Reply With Quote

Old   March 4, 2008, 21:58
Default Thanks for the reply. I intal
  #3
New Member
 
Jeremiah Hall
Join Date: Mar 2009
Location: Denver, Co, USA
Posts: 10
Rep Power: 8
jjhall is on a distinguished road
Thanks for the reply. I intalled the libs via the Synaptic Package Manager in Ubuntu. This put the files libtcl8.4.so.0 and libtk8.4.so.0 in /usr/lib64/. However, paraview still didn't work, and I realized that if I ran

> ldd /home/jjhall/OpenFOAM/linux64/paraview-2.4.4/lib/paraview-2.4/paraview-real

I got a long list of libs that weren't found, including ones that were in the same directory as paraview-real. So first I added /usr/lib64 to the environment variable LD_LIBRARY_PATH, and then I created links from libtcl8.4.so to libtcl8.4.so.0, and also for libtk8.4.so. Next I edited the $WM_PROJECT_DIR/.OpenFOAM-1.4.1/apps/paraview/cshrc file so that ${ParaView_INST_DIR}/lib/paraview-2.4 was also in $LD_LIBRARY_PATH. Now when I run ldd, it finds everything, and paraview runs! paraFoam runs too!

I will need to check it further to make sure everything is working, but I think this problem is fixed.
jjhall is offline   Reply With Quote

Old   April 17, 2008, 12:59
Default Thanks for your post Jeremiah.
  #4
New Member
 
Steven Zalek
Join Date: Mar 2009
Location: Ann Arbor, Michigan, USA
Posts: 5
Rep Power: 8
zaleksf is on a distinguished road
Thanks for your post Jeremiah. I have a virtually identical set-up (machine/OS) and issues with paraview. I do have the tcl8.4 files installed, so no problem there. I am also a relative newbie to Ubuntu/Linux. Would you be able to articulate the details of how you performed your fixes? Specifically how you:

1) So first I added /usr/lib64 to the environment variable LD_LIBRARY_PATH,
2) and then I created links from libtcl8.4.so to libtcl8.4.so.0, and also for libtk8.4.so.
3) Next I edited the $WM_PROJECT_DIR/.OpenFOAM-1.4.1/apps/paraview/cshrc file so that ${ParaView_INST_DIR}/lib/paraview-2.4 was also in $LD_LIBRARY_PATH.

Many thanks.
zaleksf 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
Paraview installation problem mcjicpm2 OpenFOAM Paraview & paraFoam 0 March 9, 2009 08:15
Paraview installation problem please help mcjicpm2 OpenFOAM Installation 0 March 9, 2009 07:55
Installation problems about Paraview and PV3foamreader clark_liang OpenFOAM Installation 1 January 12, 2009 07:05
Ubuntu AMD64 Installation Troubles mkw87 OpenFOAM Installation 31 April 27, 2008 13:59
Paraview installation problem please help bender OpenFOAM Installation 2 February 27, 2006 06:00


All times are GMT -4. The time now is 11:51.