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).
In reply to Cron can't find a module in OSX by true
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |