Can't locate Graphics/Magick.pm in @INC

Asked by Dwaipayan

Can't locate Graphics/Magick.pm in @INC (you may need to install the Graphics::Magick module)
This kind problem i am facing whenever i am trying to run a graphicsmagick program.
My code was very simple:
  1 use warnings;
  2 use Graphics::Magick;
  3
  4 $image=Graphics::Magick->new(size=>'300x300');
  5 $image->Read('xc:white');
  6 $image->Write('black.png');

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu graphicsmagick Edit question
Assignee:
No assignee Edit question
Solved by:
Dwaipayan
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Do you have the package libgraphics-magick-perl installed?

Revision history for this message
Dwaipayan (dwai+ubuntu) said :
#2

Thanks you Manfred Hampl. It works properly right now.