Oracle 10g on AMD64 - libclntsh.so.10.1 in lib32 not build
Hello,
I tried to install the AMD64 build of Oracle 10g on my gentoo system without success. There were several warnings at the linking stage and it seems that none of the client tools are working. dbca gives me this:
UnsatisfiedLinkError exception loading native library: njni10
Exception in thread "main" java.lang.UnsatisfiedLinkError: get
at oracle.net.common.NetGetEnv.get(Native Method)
at oracle.net.config.Config.getNetDir(Unknown Source)
at oracle.net.config.Config.initConfig(Unknown Source)
at oracle.net.config.Config.<init>(Unknown Source)
I assume that the supplied java is a 32bit product, so I checked the dependencies of libnjni10:
oracle@gentoo ~/OraHome_1/lib32 $ ldd libnjni10.so
ldd: warning: you do not have execution permission for `./libnjni10.so'
linux-gate.so.1 => (0xffffe000)
libclntsh.so.10.1 => not found
libnnz10.so => ./libnnz10.so (0x55589000)
libdl.so.2 => /lib32/libdl.so.2 (0x55718000)
libm.so.6 => /lib32/libm.so.6 (0x5571b000)
libpthread.so.0 => /lib32/libpthread.so.0 (0x5573e000)
libnsl.so.1 => /lib32/libnsl.so.1 (0x55791000)
libc.so.6 => /lib32/libc.so.6 (0x557a5000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x56555000)
In fact there is an empty .so file:
oracle@gentoo ~/OraHome_1/lib32 $ ll libclnts*
-rw-r--r-- 1 oracle oinstall 0 Jan 30 01:24 libclntsh.so
-rw-r--r-- 1 oracle oinstall 20491452 Jan 30 02:44 libclntst10.a
The same .so exists in the lib directory, so I assume that I also need the 32bit version in the lib32 directory. When I try "relink client_sharedlib" I get those error messages:
racle@gentoo ~/OraHome_1/lib32 $ relink client_sharedlib
/home/oracle/OraHome_1/bin/genclntsh
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc_nonshared.a when searching for /usr/lib/libc_nonshared.a
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find /usr/lib/libc_nonshared.a
collect2: ld returned 1 exit status
cp: cannot stat `/DISCARD/': No such file or directory
ar: creating /home/oracle/OraHome_1/lib/libclntst10.a
Created /home/oracle/OraHome_1/lib/libclntst10.a
ar: creating /home/oracle/OraHome_1/lib32/libclntst10.a
Created /home/oracle/OraHome_1/lib32/libclntst10.a
/home/oracle/OraHome_1/bin/genagtsh /home/oracle/OraHome_1/lib/libagtsh.so 1.0
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc_nonshared.a when searching for /usr/lib/libc_nonshared.a
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find /usr/lib/libc_nonshared.a
collect2: ld returned 1 exit status
Did anyone have similar problems and was able to solve them?
Thanks,
Rainer