On Fri, Apr 09, 2004, Dean, David P wrote:

> I'm trying to build perl-dbi with oracle but can't get it to run. If anyone
> could help out this newbie I'd be greatful! I'm using openpkg 2.0 under
> solaris 8 and trying to build perl-dbi-5.8.3-2.2.0.src.rpm. Here are my
> questions:

First, you should use
ftp://ftp.openpkg.org/release/2.0/UPD/perl-dbi-5.8.3-2.0.1.src.rpm
instead, because we fixed some built issues related to ORACLE there last
days.

> 1. perl-dbi.spec requires a packace ORACLE or something here:
>
> %if "%{with_dbd_oracle}" == "yes"
> BuildPreReq:  ORACLE
> PreReq:       ORACLE
> %endif
>
> Is there an openpkg package called ORACLE? Or is this a setting? I tried
> just taking this out of the spec...

All packages with a name in all caps are virtual packages.
In this case ORACLE is provided by the "oracle" package.

> 2. This section:
>
>       ORACLE_HOME=""
>       export ORACLE_HOME
>
> seems to look for an env variable "oracle_home" but doesn't see ORACLE_HOME.
> But even if I do set an exported var oracle_home in my shell before running,
> the perl config of DBD-Oracle fails because it says ORACLE_HOME is not set.
> (And it also fails if I hardcode ORACLE_HOME in the .spec file!) So somehow
> this env setting is not getting passed down properly when DBD::Oracle is
> configured.

That's the issue we fixed the above RPM.

> 3. If I cd to RPM/TMP/perl-dbi-5.8.3/DBD-Oracle-1.15 and configure and build
> the module (with the openpkg perl!) it runs configures, builds, installs and
> works just fine! So I think the only thing missing in the build is the
> ORACLE_HOME setting.

Just use
ftp://ftp.openpkg.org/release/2.0/UPD/perl-dbi-5.8.3-2.0.1.src.rpm
and install the "oracle" package from OpenPKG-CURRENT (see
ftp://ftp.openpkg.org/current/SRC/oracle-0-20040401.src.rpm) before.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to