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: Win32 error 126 under cron, but not under shell


On Wed, 26 Mar 2003, Steve Kelem wrote:

> When I run a perl script under tcsh, I don't get a Win32 error 126, but
> when run under cron, I do get the error.
>
> The top of my perl script looks like:
>
> #! /usr/bin/perl
>
> # $Id: generate_graphs.perl,v 1.3 2003/02/24 07:08:25 kelem Exp $
>
> use strict;
> use diagnostics;
>
> use Time::Local;
> require "ctime.pl";
>
> use GD::Graph::linespoints;
>
>
> The errors are:
> Uncaught exception from user code:
>     Can't load
> '/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/GD/GD.dll' for
> module GD: dlopen: Win32 error 126 at
> /usr/lib/perl5/5.8.0/cygwin-multi-64int/DynaLoader.pm line 229.
>  at /usr/lib/perl5/site_perl/5.8.0/GD/Graph.pm line 38
> Compilation failed in require at
> /usr/lib/perl5/site_perl/5.8.0/GD/Graph.pm line 38.
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.8.0/GD/Graph.pm line 38.
> Compilation failed in require at
> /usr/lib/perl5/site_perl/5.8.0/GD/Graph/axestype.pm line 18.
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.8.0/GD/Graph/axestype.pm line 18.
> Compilation failed in require at
> /usr/lib/perl5/site_perl/5.8.0/GD/Graph/linespoints.pm line 18.
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.8.0/GD/Graph/linespoints.pm line 18.
> Compilation failed in require at ./stats/bin/generate_graphs.perl line 11.
> BEGIN failed--compilation aborted at ./stats/bin/generate_graphs.perl
> line 11.
>
> Any idea what's wrong?  Is this a rebase issue?  Do I need to rebase
> GD.dll?  Do I need to rebase all the dll's user /usr/lib/perl5?
>
> Thanks,
> Steve Kelem

Steve,

> net helpmsg 126
The specified module could not be found.

Looks like a simple permission problem.  Does your cron run under
LocalSystem?  Is the above DLL readable/executable by LocalSystem?  I'm
assuming it's not in a mounted directory, or if it is, the mount is seen
by LocalSystem as well.
	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!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


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


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