Can't locate Image ExifTool.pm in @INC

Started by Archive, May 12, 2010, 08:54:26 AM

Previous topic - Next topic

Archive

[Originally posted by makeithappen on 2008-10-10 19:16:51-07]

Hi Phil,

After playing with the ExifTool command line instructions I'm trying to understand how the perl library module works ( note: I don't know a thing about perl ). From what I gathered from the ExifTool manual and forum here's what I've got:

file: testing20.pl

Code:
#!/usr/bin/perl
use Image::ExifTool;
my $exifTool = new Image::ExifTool;
$exifTool->SetNewValue(Author => 'The Author');
$exifTool->WriteInfo('testing20.pdf');
$errorMessage = $exifTool->GetValue('Error');
$warningMessage = $exifTool->GetValue('Warning');

perl testing20.pl

Code:
Can't locate Image/ExifTool.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at testing20.pl line 2.
BEGIN failed--compilation aborted at testing20.pl line 2.

I searched google for this error but couldn't find something which I understood.

What's missing please ?

Thanks,
Jean

Archive

[Originally posted by exiftool on 2008-10-10 19:49:18-07]

Hi Jean,

You either have to install the ExifTool libraries in the
standard location (ie. somewhere in the @INC directories
listed in your post), or add the location to the include path,
something like this:

Code:
#!/usr/bin/perl
BEGIN { unshift @INC, "PATH_TO_DIRECTORY_CONTAINING_LIBRARIES" }
use Image::ExifTool;

You should be able to add "Image/ExifTool.pm" to the path you add
to find the ExifTool module.

- Phil