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

Asked by Dwaipayan on 2018-03-02

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:
2018-03-02
Last query:
2018-03-02
Last reply:
2018-03-02
Manfred Hampl (m-hampl) said : #1

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

Dwaipayan (dwai+ubuntu) said : #2

Thanks you Manfred Hampl. It works properly right now.