On Wed, Jan 11, 2006 at 10:06:57PM -0000, Andy Hassall wrote:
> Unable to read /u01/app/oracle/product/10.2.0/db_1/rdbms/demo/demo_xe.mk: No
> such file or directory at Makefile.PL line 1264.
> I think the following change made in r2377 is the culprit:
>
> # default to using XE .mk file if one exists
> -if (-s "$OH/rdbms/demo/demo_xe.mk" && !$::opt_m) {
> - $::opt_m = "$OH/rdbms/demo/demo_xe.mk";
> - warn "Looks like an Oracle XE, so we'll use $::opt_m\n";
> -}
> +$::opt_m ||= "$OH/rdbms/demo/demo_xe.mk";
> Should the change above be reverted?
I had meant it to revert it to an earlier version that looked like
$::opt_m ||= "$OH/rdbms/demo/demo_xe.mk" if -s "$OH/rdbms/demo/demo_xe.mk";
but only did a half-baked job and didn't retest with my own XE.
Thanks.
> Or might it be better to call find_mkfile() earlier instead, to give
> $::opt_m a value (since the XE makefile is now in the list searched in
> find_mkfile)?
>
> Reverting the changed lines above works for me, but I don't have XE
> installed on Linux at the moment; I've only got that installed on Windows. I
> suspect if I install XE on Linux then it'll cause problems as it'll pick up
> the XE makefile, but use a non-XE home?
I remember adding demo_xe.mk to find_mkfile() but then deciding to go
with the $opt_m approach. It only looks for demo_xe.mk in ORACLE_HOME
and (I believe) demo_xe.mk doesn't exist in non-XE distributions.
But I'll take another look and the logic anyway.
> I'm trying to install XE on Linux now, but have run into some complications.
> If I can get it installed I'll post back with some results on how it
> interacts with the code above.
>
>
>
> The good news is that 24implicit_utf8 appears to be passing where previously
> it failed, i.e. with:
>
> Database 10.2.0.1.0 CHAR set is WE8ISO8859P15 (Non-Unicode), NCHAR set is
> AL16UTF16 (Unicode)
> Client 10.2.0.1 NLS_LANG is '.UTF8', NLS_NCHAR is '<unset>'
>
> ... at least from Linux 10gR2/full client (after fixing the Makefile.PL to
> get it to build). I'll run the other combinations again when I get a chance.
Thanks Andy. Those test runs are a great help.
Tim.