Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Oracle Apache Server + HTMLDB libdb.so.2 issues [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
stephen_in_nz
n00b
n00b


Joined: 06 May 2005
Posts: 26

PostPosted: Sat Feb 25, 2006 8:12 pm    Post subject: Oracle Apache Server + HTMLDB libdb.so.2 issues [SOLVED] Reply with quote

Folks
I've managed to get 10gR2 spinning on my laptop and was looking to add HTMLDB - which requires the Application server aka Apache. However I can't get it to find libdb.so.2 no ,atter where I link it to - and even after I've copied across a libdb.so.3 from a Suse 9 box and soft linking to that.

Anyone got any tips / solutions ?

Code:

amd64 lib32 # ldd /opt/oracle/product/htmldb/Apache/Apache/bin/httpd
        linux-gate.so.1 =>  (0xffffe000)
        libdms2.so => /opt/oracle/product/htmldb/lib/libdms2.so (0x5556d000)
        libpthread.so.0 => /lib32/libpthread.so.0 (0x5559c000)
        libnsl.so.1 => /lib32/libnsl.so.1 (0x555ee000)
        libm.so.6 => /lib32/libm.so.6 (0x55603000)
        libcrypt.so.1 => /lib32/libcrypt.so.1 (0x55626000)
        libdl.so.2 => /lib32/libdl.so.2 (0x55654000)
        libdb.so.2 => not found
        libc.so.6 => /lib32/libc.so.6 (0x55659000)
        /lib/ld-linux.so.2 (0x55555000)

amd64 lib32 # locate libdb.so.2
/usr/lib64/libdb.so.2



Last edited by stephen_in_nz on Sun Feb 26, 2006 5:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
stephen_in_nz
n00b
n00b


Joined: 06 May 2005
Posts: 26

PostPosted: Sun Feb 26, 2006 5:55 pm    Post subject: Reply with quote

After much wailing and gnashing of teeth I got smart and pointed strace at it to see the o/p.
Code:

open("/opt/oracle/product/htmldb/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib32/libdl.so.2", O_RDONLY)     = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\v\0"..., 512) = 512
fstat64(0x3, 0xffffac04)                = 0
mmap2(NULL, 12392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x55654000
mmap2(0x55656000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x55656000
close(3)                                = 0
open("/opt/oracle/product/htmldb/lib/libdb.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)

Now why would you only look in there ? Retrospectively its understandable but I'm not sure I understand why not elsewhere in the LD_LIBRARY_PATH.

EDIT: OK oraenv resets LD_LIBRARY_PATH - and the env.d/(99)oracle file stomps all over it at boot. Doesn't explain why we see :

open("/lib32/libdl.so.2", O_RDONLY) = 3

Still a fix is a fix.

Once I got that sorted I `opmnctl startall` with much delight.

One other nuance - I had to link libc_nonshared.a from /usr/lib32 to /usr/lib as the linker was failing when I installed Apache - not quite sure hat effect this will have on other apps but I'll keep an eye on it.

Just another anguished weekend dealing with Oracle querks !

Stephen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum