delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/14/10:25:00

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 14 Apr 2003 10:24:41 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Dmitry Melekhov <dm AT belkam DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Exim, .forward and DBD::Oracle
In-Reply-To: <3E9A2CEF.7040601@belkam.com>
Message-ID: <Pine.GSO.4.44.0304141021480.26381-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Mon, 14 Apr 2003, Dmitry Melekhov wrote:

> 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.dll' 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 ;-)

Ah.  This is starting to look familiar...  It's a Windows problem -- on
Windows, a DLL needs to be executable by the current user to be loaded.
Does Oracle.dll have the right permissions?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019