Procmail and ImageMagick

I am trying to use procmail to send an email to a perl script. The perl script requires imageMagick. Whenever I run the program I receive this message:

Can’t load ‘/usr/lib/perl5/auto/Image/Magick/’ for module Image::Magick: cannot open shared object file: No such file or directory at /usr/lib/perl/5.6.1/ line 202

I know that the procmail recipie is working correctly. The error always occurs at the line use Image::Magick and it occurs in any script that I send the email to so the problem is most likely not with the script. Also, I can get perl to access Image::Magick from a normal .pl file with the same code so Image::Magick is working fine.
If anyone knows anything that might solve this problem please let me know. I’ve been trying to fix it for a week now and I havn’t made any improvement.