[DB-SIG] Compiling DCOracle2 on HPUX

Harri Pasanen harri.pasanen@trema.com
Tue, 8 Oct 2002 09:25:09 +0200


On Monday 07 October 2002 23:06, Matthew T. Kromer wrote:
> plusk@radford.edu wrote:
> >I've been advocating the use of python here (Radford University).
> >I've demonstrated some programs that my bosses found interesting, usin=
g
> >DCOracle2 and mx.DateTime on Win2K. My bosses worry about the costs of
> > deploy program on all our users' machine and would prefer that I get
> > things to work on our HPUX box. I have a sympathetic admin helping me=
,
> > and he was able to install mx.DateTime.
> >the DCOracle2 package did not install because it could not find a
> >lib it needed.
> >
> >sys.platform is hp-ux11
> >
> >oracle is 64 bit 9.2.0.1.0
> >
> ># make
> >         (cd src; \
> >         ./testora python)
> >-n Checking ORACLE_HOME...
> >passed.
> >-n Checking for Oracle version...
> >failed.
> >/u01/app/oracle/product/9.2.0.1/lib/libclntsh.so not readable; unable =
to
> >determine your oracle version.
> >*** Error exit code 2
> >
> >Stop.
> >
> >Any help would be appreciated.
> >
> >Paul
>
> I dont konw much about hp-ux -- What the test program is trying to do i=
s
> do a "nm" on that shared object looking for various symbols.  Can you
> verify that
>
> u01/app/oracle/product/9.2.0.1/lib/libclntsh.so
>
>
> exists, and is readable?  If it doesn't exist, look for libclntsh* type
> names in that directory.  You may have to adjust names somewhat in the
> scripts to get them to recognize HPUX shared libraries.
>

On HP-UX the shared library extension is .sl, so the lib is probably call=
ed=20
/u01/app/oracle/product/9.2.0.1/lib/libclntsh.sl

-Harri


> All it is trying to do is create a makefile with the right defines set
> up.  You can try running
>
>     python setup.py build
>
> instead, as distutils might have more of a clue about hpux than I do.
>  You may have to tweak the CFLAGS and LFLAGS variables in setup as well=
,
> since they're set up for gcc.