true has asked for the wisdom of the Perl Monks concerning the following question:
To find out where it is installed i shell "perldoc -l Image::Magick"
and get this "/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/"
so at the top of my perl script i add this...
use lib "/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/"
Still no luck.
Error is below
Can't load '/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level//auto/I +mage/Magick/Magick.bundle' for module Image::Magick: dlopen(/opt/loca +l/lib/perl5/site_perl/5.8.9/darwin-2level//auto/Image/Magick/Magick.b +undle, 1): Symbol not found: _PL_curpad Referenced from: /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/ +/auto/Image/Magick/Magick.bundle Expected in: dynamic lookup at /Users/jtrue/wallpaper/cal.pl line 15 Compilation failed in require at /Users/jtrue/wallpaper/cal.pl line 15 +. BEGIN failed--compilation aborted at /Users/jtrue/wallpaper/cal.pl lin +e 15. &Image::Magick::constant not defined. The required ImageMagick librari +es are not installed or not installed properly. END failed--call queue aborted at /Users/jtrue/wallpaper/cal.pl line 1 +5.
Finally, i copied all of my @INC paths when run from shell and added each path manually (with a seperate use lib "PATH/HERE"; statement and it still fails.
Anyone have any ideas or suggestions?
P.S. My cron job is not run as root (i'd rather not do this).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cron can't find a module in OSX
by Your Mother (Archbishop) on Sep 17, 2010 at 17:01 UTC | |
by Anonymous Monk on Sep 17, 2010 at 17:26 UTC | |
|
Re: Cron can't find a module in OSX
by Anonymous Monk on Nov 03, 2010 at 20:46 UTC |