Page 1 of 1

Posted: 2006-11-22T20:47:16-07:00
by anthony
@INC is the perl module search path, meaning perl can't resolve the "use ImageMagick" line pf the perl script. This can be resolve by either setting an environment variable PERL5LIB, before running the perl script, OR, adding a line...

Code: Select all

   use lib "/path/to/imagemagick/perl/module/directory";
I have used both in various projects.
For example in another (non-IM) project I use...

Code: Select all

use lib (getpwnam('duty'))[7] . '/acctdb/perl-lib';
use strict;
use AcctDB        qw( db_user db_uid db_gid bin_dir dist_dir pgp_dir );
and it works well.

Posted: 2006-11-23T20:02:18-07:00
by anthony
In a normal install the PerlMagic is in the perl module library folder, and the binaries are in the system directories. However you indicated that this was not the case, and does not have to be the case either, with appropriate setup.