NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

library path is missing



Hello,

I have compiled oci8 success with linux emulation. But I can not restart apache with this module. Apache will crash.

I used ldd to check libraries it referred to and found that some library's path are missing. So that I set LD_LIBRARY_PATH environment variable and make sure that it can refer to correct libraries. As follows :

# ldd oci8.so
oci8.so:
        -lclntsh.10.1 => /usr/lib/oracle/10.2.0.5/client/lib/libclntsh.so.10.1
        -lnnz10 => not found
        -ldl.2 => not found
        -lm.6 => not found
        -lpthread.0 => not found
        -lnsl.1 => not found
        -lc.6 => not found
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
        -lc.12 => /usr/lib/libc.so.12
# export LD_LIBRARY_PATH="/emul/linux/lib64:/usr/lib/oracle/10.2.0.5/client/lib"
# ldd oci8.so
oci8.so:
        -lclntsh.10.1 => /usr/lib/oracle/10.2.0.5/client/lib/libclntsh.so.10.1
        -lnnz10 => /usr/lib/oracle/10.2.0.5/client/lib/libnnz10.so
        -lc.6 => /emul/linux/lib64/libc.so.6
        ld-linux-x86-64.so.2 => /emul/linux/lib64/ld-linux-x86-64.so.2
        -ldl.2 => /emul/linux/lib64/libdl.so.2
        -lm.6 => /emul/linux/lib64/libm.so.6
        -lpthread.0 => /emul/linux/lib64/libpthread.so.0
        -lnsl.1 => /emul/linux/lib64/libnsl.so.1
        -lgcc_s.1 => /emul/linux/lib64/libgcc_s.so.1
        -lc.12 => /usr/lib/libc.so.12

Everything seems correct and great. But Apache can not load this module. 

I remember that there is a tool called ldconfig in linux. After installing new library, I will use it to refresh system library's path. Should I install it to solve my problem in NetBSD?

Any advice will be greatly appreciated.


Regards,

Chingyuan



Home | Main Index | Thread Index | Old Index