How to solve the error about with OCC 6.1 on Fedora Core 6


When I tried to use an application which was based on OpenCASCADE 6.1, in Fedora Core 6, there is an error as following:
error while loading shared libraries: 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


Fernando Ghedin's picture

Hello John,

It seems that the location where you installed your OpenCASCADE wad not added to the environment variable LD_LIBRARY_PATH.

Take look at the scripts, env.ksh or env.csh. They will set all the necessary variables for you - maybe more things are missing.

Anyway, you could also try the following:

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/occ/lin/lib

(where, obviously "path/to/occ" should be replaced by the real path to its root directory)

Good luck!

Best regards,