This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Calling perl script from shell script: Win32 error 126


On Mon, 28 Apr 2003, Greg McCrory wrote:

> At 4/28/2003 10:54 PM -0400, you wrote:
> > > >>>
> > > Can't load
> > > '/usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/Image/Magick/Magick.dll'
> > > for module Image::Magick: dlopen: Win32 error 126 at
> > > /usr/lib/perl5/5.6.1/cygwin-multi/DynaLoader.pm line 206.
> > > <<<
> >
> >Greg,
> >
> >Does the above DLL exist?  Is it readable and executable by the current
> >user?  Do you set the PATH in your shell to include the above directory?
> >If so, do you export it?  Do you set it in the script?
> >     Igor
>
>
> The dll definitely exists and is readable by everyone.  I do not set the
> PATH in the shell or shell script, I hadn't thought it was necessary.  That
> path comes from the perl @INC array and since the error shows the complete
> path to the file, it is clear that the path is known by the perl script.
> GMc

Greg,

No, it's not necessary to set the PATH, I was just trying to guess why
there was a difference between a shell script and the command line...
Just out of curiousity, is the PATH the same in the shell script and in
the shell?

Also, are you executing Cygwin perl in both cases?  Try "type -a perl"
from the shell (bash?)...  How are you invoking the script (i.e., by
calling it directly, or through "perl scriptname")?  If directly, what
does the shebang ("#!") line at the top of the script say?
	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
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]