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/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,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/