I'm new to perl and I try to run a script that uses Cairo package. When I run it, I get the following error:
Can't locate Cairo.pm in @INC
So, I tried to install it and it appears to already be installed:
?> sudo yum install cairo-devel
Package cairo-devel-1.8.8-3.fc12.x86_64 already installed and latest version
Nothing to do
I tried to find the file Cairo.pm
manualy (using find -name Cairo.pm
) but couldn't find it.
Finally, I've tried to find it using rpm -ql cairo-devel
and also couldn't find it.
Any suggestions?
Some confusion about RPMs here.
cairo
cairo-dev
In order to use Cairo from Perl you will need to install the CPAN module Cairo.pm. That may be pre-packaged for your distribution in an RPM called perl-Cairo
. But you may need to install it using cpan
(or, better if you have it, cpanm
).