[vtkusers] Loading Shared Libraries

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Tue Sep 23 03:58:55 EDT 2003


Todd Schneider wrote:
> Hey everyone, I am having a problem with my program loading the shared
> VTK libraries after compilation. I am running redhat 9. My code compiles
> fine, and works perfectly under windows, but when after I compile and
> run "a.out" in Linux I get the error
> 
> error while loading shared libraries: libvtkCommon.so: cannot open
> shared object file: No such file or directory
> 
> I have put all the VTK.so files into the same directory as the
> executable, as well as in /usr/local/bin, but still no luck- any help on
> getting this resolved would be great! Thanks again,
> 

Shouldn't lib be in /use/local/lib makes more sense :))

Make sure also that this path is in either :
- /etc/ld.so.conf
- LD_LIBRARY_PATH

you can also run :
$/sbin/ldconfig -v -n /usr/local/lib

HTH
mathieu




More information about the vtkusers mailing list