How to solve the error about libTKernel.so with OCC 6.1 In Fedora Core 6

Hi,

When I tried to use an application which was developed on OpenCASCADE 6.1, in Fedora Core 6, there is an error as following:
error while loading shared libraries: libTKernel.so: cannot open shared object file: No such file or directory.

I have already installed Open CASCADE 6.1 in Fedora Core 6 successfully. I have spent many time to solve the problem, but failed.

Could you do me a favor to give me some advices to solve the problem?

Thank you very much

Js.Hs

Bearloga's picture

Hi John,
Such error can arise if one of shared objects used by libTKernel.so cannot be found by the system. I don't remember what tool is available on Linux, but on Windows in MSVC there is the utility depends.exe that allows to see what DLLs are needed to load a given file. May nm will help you.
Good luck,
Bearloga

Jan Brüninghaus's picture

On Linux you can use ldd to see what libraries are needed.

A possible solution for your problem is to set the environment variable LD_LIBRARY_PATH properly, so that it points to the directory where libTKernel.so resides on your system.

jshs's picture

Hi, Bearloga, Jan Brüninghaus,
Thank you very much for your helps.
This is the first time for me to use an application on Linux. After I installed OPenCASCADE 6.1 in /opt/occ6.1.0 on Fedora Core 6, I really did not know how to configure my Linux system environment. According to the getting started information from the following homepage http://www.opencascade.org/org/gettingstarted/install/lunix/, I only define the local environment by command as # . /opt/occ6.1.0/ros/env.csh, because I do not know where and how to add the contents of occ6.1.0/ros/env.csh or env.ksh file to my shell rc file. Then in my application path, I tried to run its sh file and get this problem. It must be incorrect to do like these?
Please do me a favor, teach me how to configure my Linux system and solve this problem?
Thank you very much for your great helps in advance!
Js. Hs

Bearloga's picture

try to insert in your application sh file the line:
. /opt/occ6.1.0/ros/env.ksh