I've hit a roadblock installing GD with CPAN on a new server. The relevant error line is
Can't load '/usr/local/lib/perl5/auto/GD/GD.so' for module GD: /usr/local/lib/perl5/auto/GD/GD.so: undefined symbol: gdImageCreateFromGd2Ptr at /usr/lib/perl5/DynaLoader.pm line 200.
While installing submodule GD::Graph
As far as I can tell, prerequisites libraries are all installed and up to date.
Why bother with CPAN
. You are using yum
. Make your life easy. This is a quick test I did on my RHEL 6.4 machine:
# uname -a
Linux ip-10-227-20-6 2.6.32-358.14.1.el6.x86_64 #1 SMP Mon Jun 17 15:54:20 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
# yum install perl-GDGraph.noarch
# perl -e 'use GD::Graph'
#
the yum install perl-GDGraph.noarch
command will install below dependency packages:
(1/5): gd-2.0.35-11.el6.x86_64.rpm
(2/5): libXpm-3.5.10-2.el6.x86_64.rpm
(3/5): perl-GD-2.44-3.el6.x86_64.rpm
(4/5): perl-GDGraph-1.44-7.el6.noarch.rpm
(5/5): perl-GDTextUtil-0.86-15.el6.noarch.rpm
And it will install GD::Graph
too :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.