Frequently Asked Questions (FAQ)
- Todo:
- Write a FAQ based on alpha-tester questions.
-#
Shared library (e.g., liboski.so) not found: I compiled
Example 1 but got the following error when I tried to run my program:
./example1: error while loading shared libraries: liboski-1.so: cannot open shared object file: No such file or directory
What do I do?
Answer: The run-time linker can't find the OSKI libraries. You can set the run-time environment variable LD_LIBRARY_PATH to include the path to these libraries. For example, if ${OSKIDIR} is the path to your BeBOP-OSKI installation directory (INSTALL, Step 3):
$ LD_LIBRARY_PATH=${OSKIDIR}/lib/oski:${LD_LIBRARY_PATH-.}
$ export LD_LIBRARY_PATH
if you are using a Bourne-compatible shell, or the following for C-shell:
% setenv LD_LIBRARY_PATH "${OSKIDIR}/lib/oski:${LD_LIBRARY_PATH}"