[vtkusers] VTK Problem Upon Python 2.5 Upgrade
Shari Rolnick
shari at loralee.net
Mon Aug 20 07:09:00 EDT 2007
The output from running vtkpython is:
[shari at localhost testing]$ vtkpython
vtkpython: error while loading shared libraries: libvtksys.so.5.0: cannot
open shared object file: No such file or directory
[shari at localhost testing]$
My PYTHONPATH is:
[shari at localhost vtk-5.0]$ echo $PYTHONPATH
/usr/local/src/vtk/VTK/bin:/usr/local/src/vtk/VTK/Wrapping/Python:/usr/local
/lib:/usr/lib/python2.5/site-packages/wx-2.8-gtk2-ansi
[shari at localhost vtk-5.0]$
And my .bash_profile contains:
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
When I try to echo the value in the shell, though, it does not seem to be
getting set unless I "source .bash_profile". (I thought logging out and
back in should force it to read the .bash_profile?)
Thanks!
Shari
> -----Original Message-----
> From: vtkusers-bounces+shari=loralee.net at vtk.org [mailto:vtkusers-
> bounces+shari=loralee.net at vtk.org] On Behalf Of Dominik Szczerba
> Sent: Monday, August 20, 2007 4:12 AM
> To: vtkusers
> Subject: Re: [vtkusers] VTK Problem Upon Python 2.5 Upgrade
>
> Check if your PYTHONPATH or maybe LD_LIBRARY_PATH points to the right
> place, it might need to be /whatever/lib/vtk5.0something and not just
> /whatever/lib
>
> And in any case try to invoke your script with vtkpython first.
>
> -Dominik
>
> fred wrote:
> > Shari Rolnick a écrit :
> >> Okay. I set LD_LIBRARY_PATH in my .bash_profile file, but it still
> >> doesn't
> >> work. Here's the output:
> >>
> >> [shari at localhost ~]$ source .bash_profile [shari at localhost ~]$ echo
> >> $LD_LIBRARY_PATH
> >> /usr/local/lib:
> >>
> > Hmm, what shell do you use ??
> > If you use (t)csh shell, you have to set your environment variable in
> > csh file,
> > not a (ba)sh one.
> > If you use (ba)sh shell, you do not have to source it (source is not a
> > bash builtin shell, but tcsh).
> >>> BTW, your python seems to looking for in /usr/local/src, looks
> >>> weird to me...
> >>>
> >>
> >> I think that was just my inept installation. I put the source code
> >> for VTK
> >> there, but when I built it, I think I just built it in place rather
> than
> >> giving it a different directory. Will that hurt anything?
> >>
> > So what should be the meaning of the LD_LIBRARY_PATH ??
> > python has to look for libs in /usr/local/lib, not in /usr/local/src !
> >
> > Where are your VTK libs installed ?
> >
>
> --
> Dominik Szczerba, Ph.D.
> Computer Vision Lab CH-8092 Zurich
> http://www.vision.ee.ethz.ch/~domi
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> __________________________________________________________________________
> __
> This email has been scanned at loralee.net and is believed to be virus
> free.
____________________________________________________________________________
This email has been scanned at loralee.net and is believed to be virus free.
More information about the vtkusers
mailing list