Oracle DBD/DBI on HP-UX: can't load Oracle.sl 
Author Message
 Oracle DBD/DBI on HP-UX: can't load Oracle.sl

Hi all. I have successfully compiled and ran perl 5.005_03,
DBD-Oracle-1.12 and DBI-1.20 on a development box using gcc. This was
all done under my home directory since I do not have root access.

moved the files over to a production machine in the exact same
directory structure (my home directory since I don't have root access
there either) and now I get the following error when I try to run my
test program:

dbeardsl>mysqltest.pl
install_driver(Oracle) failed: Can't load
'/home/dbeardsl/perl5.real/lib/site_perl/5.005/PA-RISC2.0-thread/auto/DBD/Oracle/Oracle.sl'
for module DBD::Oracle: No such file or directory at
/home/dbeardsl/perl5.real/lib/5.00503/PA-RISC2.0-thread/DynaLoader.pm
line 169.

 at (eval 1) line 3
Perhaps a required shared library or dll isn't installed where
expected
 at mysqltest.pl line 5

I know a similar problem was encounter by someone on a Solaris box and
the fix was to add $ORACLE_HOME/lib to their LD_LIBRARY_PATH. In my
case, $ORACLE_HOME/lib is already included in SBLIB_PATH.

Any ideas/help???

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC2.0-thread
    uname='hp-ux cortstp b.11.00 e 9000800 659379353 8-user license '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.95.3 20010315 (release)
    cppflags='-D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE'
    ccflags ='-D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
    libs=-lcl -lpthread -lnsl -lnm -lndbm -lmalloc -ldld -lm -lc
-lndir -lcrypt
    libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred '
    cccdlflags='-fpic', lddlflags='-b -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Built under hpux
  Compiled at Jan  2 2002 20:46:22
  %ENV:
    PERL5LIB="/home/dbeardsl/perl/lib/site_perl/5.005"

    /home/dbeardsl/perl/lib/site_perl/5.005
    /home/dbeardsl/perl5.real/lib/5.00503/PA-RISC2.0-thread
    /home/dbeardsl/perl5.real/lib/5.00503
    /home/dbeardsl/perl5.real/lib/site_perl/5.005/PA-RISC2.0-thread
    /home/dbeardsl/perl5.real/lib/site_perl/5.005



Mon, 28 Jun 2004 08:42:16 GMT  
 Oracle DBD/DBI on HP-UX: can't load Oracle.sl
Well, I found a way around this. You can use a command called chatr to
see/change the internal attributes of a program. I used the +s option
to enable the SHLIB_PATH lookup and voila, works.
Quote:

> Hi all. I have successfully compiled and ran perl 5.005_03,
> DBD-Oracle-1.12 and DBI-1.20 on a development box using gcc. This was
> all done under my home directory since I do not have root access.

> moved the files over to a production machine in the exact same
> directory structure (my home directory since I don't have root access
> there either) and now I get the following error when I try to run my
> test program:

> dbeardsl>mysqltest.pl
> install_driver(Oracle) failed: Can't load
> '/home/dbeardsl/perl5.real/lib/site_perl/5.005/PA-RISC2.0-thread/auto/DBD/Oracle/Oracle.sl'
> for module DBD::Oracle: No such file or directory at
> /home/dbeardsl/perl5.real/lib/5.00503/PA-RISC2.0-thread/DynaLoader.pm
> line 169.

>  at (eval 1) line 3
> Perhaps a required shared library or dll isn't installed where
> expected
>  at mysqltest.pl line 5

> I know a similar problem was encounter by someone on a Solaris box and
> the fix was to add $ORACLE_HOME/lib to their LD_LIBRARY_PATH. In my
> case, $ORACLE_HOME/lib is already included in SBLIB_PATH.

> Any ideas/help???

> Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
>   Platform:
>     osname=hpux, osvers=11.00, archname=PA-RISC2.0-thread
>     uname='hp-ux cortstp b.11.00 e 9000800 659379353 8-user license '
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=define useperlio=undef d_sfio=undef
>   Compiler:
>     cc='gcc', optimize='-O', gccversion=2.95.3 20010315 (release)
>     cppflags='-D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE'
>     ccflags ='-D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE'
>     stdchar='unsigned char', d_stdstdio=define, usevfork=false
>     intsize=4, longsize=4, ptrsize=4, doublesize=8
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
>     alignbytes=8, usemymalloc=n, prototype=define
>   Linker and Libraries:
>     ld='ld', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
>     libs=-lcl -lpthread -lnsl -lnm -lndbm -lmalloc -ldld -lm -lc
> -lndir -lcrypt
>     libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
>   Dynamic Linking:
>     dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
> -Wl,-B,deferred '
>     cccdlflags='-fpic', lddlflags='-b -L/usr/local/lib'

> Characteristics of this binary (from libperl):
>   Built under hpux
>   Compiled at Jan  2 2002 20:46:22
>   %ENV:
>     PERL5LIB="/home/dbeardsl/perl/lib/site_perl/5.005"

>     /home/dbeardsl/perl/lib/site_perl/5.005
>     /home/dbeardsl/perl5.real/lib/5.00503/PA-RISC2.0-thread
>     /home/dbeardsl/perl5.real/lib/5.00503
>     /home/dbeardsl/perl5.real/lib/site_perl/5.005/PA-RISC2.0-thread
>     /home/dbeardsl/perl5.real/lib/site_perl/5.005



Tue, 29 Jun 2004 07:13:02 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Success: DBD-Oracle-1.03 on HP-UX 11.0 (64Bit Version) and Oracle 8.1.6

2. building DBI/DBD::Oracle on HP-UX 11 dynamically

3. building DBI/DBD::Oracle on HP-UX 11 dynamically

4. make test of DBD::Oracle 1.12 fails with HP/UX 11.00

5. Oracle DBD / HP-UX

6. DBD::Oracle HP-UX hell

7. DBD::Oracle on HP-UX 11

8. Problems installing DBD-Oracle-1.06 on HP-UX 11

9. DBD::Oracle 1.06, HP-UX 11.0, perl 5.00503 compile time errors

10. DBD-Oracle-1.06 make error under HP-UX 10.20

11. How to build DBD::Oracle under HP-UX 11.0

12. Problems builduing DBD-Oracle-0.50 under HP-UX 10.20

 

 
Powered by phpBB® Forum Software