Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3E9A2CEF.7040601@belkam.com>
Date: Mon, 14 Apr 2003 08:37:19 +0500
From: Dmitry Melekhov <dm@belkam.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314
X-Accept-Language: ru, en-us
MIME-Version: 1.0
To: Greg Matheson <lang@ms.chinmin.edu.tw>
CC: cygwin@cygwin.com
Subject: Re: Exim, .forward and DBD::Oracle
References: <321323244855.20030410222844@familiehaase.de><3E9538B8.5010107@belkam.com><321323244855.20030410222844@familiehaase.de><3.0.5.32.20030410233114.007fcc30@incoming.verizon.net><3E963AF7.6060101@belkam.com> <3E96CA54.35118EA3@ieee.org><009201c30048$8cf1ad80$141ea8c0@dm> <3E96E558.9D8E5729@ieee.org><00d501c3004e$ee6a5160$141ea8c0@dm> <uadewvv0g.fsf@myself.com><014d01c30109$221a7ac0$141ea8c0@dm> <un0ivvbaf.fsf@myself.com> <007601c301c3$053adca0$141ea8c0@dm> <Law10-OE17W2hSsKAfH000015c6@hotmail.com> <00f601c301e2$a104f840$141ea8c0@dm> <20030414065754.A13221@ms>
In-Reply-To: <20030414065754.A13221@ms>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Greg Matheson wrote:
> On Sun, 13 Apr 2003, Dmitry Melekhov wrote:
> 
> 
>>Another problem is with perl in cygwin.
>>On Linux I can set
>>$ENV{PATH} and $ENV{ORACLE_HOME} inside
>>perl script, but in cygwin I had to write shell script to call perl script:
> 
> 
> Does it work in Linux if you DON'T set $ENV{PATH} and
> $ENV{ORACLE_HOME} inside your program? Are you sure they are
> not set elsewhere in your environment?
> 
> 
>>#!/bin/sh
>>PATH=/cygdrive/c/oracle/ora81/bin ORACLE_HOME='c:\oracle\ora81'
>>/home/tabel/test.pl
> 
> 
>>or I received following error:
> 
> 
>>install_driver(Oracle) failed: Can't load
>>'/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/DBD/Oracle/Oracle.dl
>>l' for module DBD::Oracle: dlopen: Win32 error 126 at
>>/usr/lib/perl5/5.8.0/cygwin-multi-64int/DynaLoader.pm line 232
> 
> 
>>if I try to call perl script from .forward.
> 
> 
>>This is thing I still don't understand. :-(
> 
> 
> Does it work in cygwin if you set them in a BEGIN { } block at
> the top of the script. Quoting perlmod,
> 
>     A "BEGIN" subroutine is executed as soon as possible, that is, the
>     moment it is completely defined, even before the rest of the containing
>     file is parsed. ... Because a "BEGIN" block executes
>     immediately, it can pull in definitions of subroutines and such from
>     other files in time to be visible to the rest of the file. 
> 
No. This doesn't work.

I unsetted ORACLE_HOME and PATH in shell.
Looks ORACLE_HOME can be initialized in perl script, but PATH- not!
Unfortunately, I can't test it on Linux- DBD::Oracle on Linux simply 
doesn't need ORACLE_HOME/bin in PATH.
So, I still don't know is this perl or cygwin problem ;-)



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

