I had tried and given up on install the GD 2.46 Perl module on a "Red Hat Enterprise Linux Server release 6.1 (Santiago)" 64bit. And this is what happens ...
Looks like I will have to https://bitbucket.org/pierrejoye/gd-libgd/downloads and attempt to build my own RPM's from source. bleh!
$ perl Makefile.PL... but I have libgd installed ...
Notice: Type perl Makefile.PL -h for command-line option summary.
**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.
If you want to try to compile anyway, please rerun this script with the option --ignore_missing_gd.
$ rpm -q gd... so when I do as the error message suggest ...
gd-2.0.35-10.el6.x86_64
$ perl Makefile.PL --ignore_missing_gd... I answered 'n' to all questions to give Makeperl.PL a good chance to execute without error. So now I can run make right ...
Where is libgd installed? [/usr/lib]
Please choose the features that match how libgd was built:
Build JPEG support? [y] n
Build PNG support? [y] n
Build FreeType support? [y] n
Build GIF support? [y] n
Build XPM support? [y] n
If you experience compile problems, please check the @INC, @LIBPATH and @LIBS
arrays defined in Makefile.PL and manually adjust, if necessary.
Writing Makefile for GD
Writing MYMETA.yml
.... perl-5.14.1/bin/perl GD/Image.pm.PLS GD/Image.pm... I guess I need to gd-devel but I haven't got that in my yum repo :(
Extracting Image.pm (with variable substitutions)
Skip blib/lib/GD/Polyline.pm (unchanged)
Skip blib/lib/qd.pl (unchanged)
Skip blib/lib/GD/Image.pm (unchanged)
Skip blib/lib/GD.pm (unchanged)
Skip blib/lib/GD/Simple.pm (unchanged)
Skip blib/lib/GD/Polygon.pm (unchanged)
Skip blib/lib/GD/Group.pm (unchanged)
gcc -c -I/usr/include -I/usr/include/gd -Wformat=0 -O2 -DVERSION=\"2.46\" -DXS_VERSION=\"2.46\" -fPIC "-I/apps/RED/red-perl-5.14.1/lib/5.14.1/x86_64-linux-thread-multi/CORE" GD.c
GD.xs:7:16: error: gd.h: No such file or directory
GD.xs:8:21: error: gdfontg.h: No such file or directory
GD.xs:9:21: error: gdfontl.h: No such file or directory
GD.xs:10:22: error: gdfontmb.h: No such file or directory
GD.xs:11:21: error: gdfonts.h: No such file or directory
GD.xs:12:21: error: gdfontt.h: No such file or directory
GD.xs:342: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âGD__Imageâ
GD.xs:343: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âGD__Fontâ
GD.xs:385: error: expected specifier-qualifier-list before âgdIOCtxâ
GD.xs:393: error: expected â)â before âctxâ
GD.xs:400: error: expected â)â before âctxâ
GD.xs:416: error: expected â)â before âctxâ
GD.xs:424: error: expected â)â before âctxâ
GD.xs:429: error: expected â)â before âctxâ
GD.xs:433: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
GD.xs:454: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âgd_cloneDimâ
GD.xs:478: error: expected â)â before âsrcâ
GD.xs:507: error: expected â)â before âimageâ
GD.c: In function âXS_GD__Image__newâ:
GD.c:682: error: âGD__Imageâ undeclared (first use in this function)
GD.c:682: error: (Each undeclared identifier is reported only once
GD.c:682: error: for each function it appears in.)
Looks like I will have to https://bitbucket.org/pierrejoye/gd-libgd/downloads and attempt to build my own RPM's from source. bleh!
Good news! The code I downloaded from bitbucket.org works great!
ReplyDelete