Hello Monks,
I tried to install GD via CPAN sheel and got an error? then I made force install. Results near.
After installing when I use in script lib GD I got an error:
Can't locate GD/Graph/lines.pm in @INC (@INC contains: /usr/lib/perl5/ +site_perl/5.12.3/i486-linux-thread-multi /usr/lib/perl5/site_perl/5.1 +2.3 /usr/lib/perl5/vendor_perl/5.12.3/i486-linux-thread-multi /usr/li +b/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/i486-linux-thread-mu +lti /usr/lib/perl5/5.12.3 /usr/lib/perl5/site_perl /usr/lib/perl5/ven +dor_perl .) at /var/www/on-livetv.ru/caststats/graph2.pl line 13. BEGIN failed--compilation aborted at /var/www/on-livetv.ru/caststats/g +raph2.pl line 13. <br><br> What's the reason of problem?<br> <br> The output of installing process:<br> cpan[6]> force install GD Running install for module 'GD' Running make for L/LD/LDS/GD-2.50.tar.gz Checksum for /root/.cpan/sources/authors/id/L/LD/LDS/GD-2.50.tar.gz ok Scanning cache /root/.cpan/build for sizes ...................................................................... +......DONE CPAN.pm: Going to build L/LD/LDS/GD-2.50.tar.gz Notice: Type perl Makefile.PL -h for command-line option summary. Configuring for libgd version 2.0.35. Checking for stray libgd header files... ** WARNING: found gd.h header file in /usr/X11R6/includegd.h, but it i +s expected at /usr/include/gd.h. This may cause compile errors! ** ** Possible problems found ** Included Features: GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE G +D_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_UNCLOSEDPOLY GD_ANIMGIF GD_ +FTCIRCLE VERSION_33 GD library used from: /usr Checking if your kit is complete... Looks good Writing Makefile for GD /usr/bin/perl5.12.3 GD/Image.pm.PLS GD/Image.pm Extracting Image.pm (with variable substitutions) cp GD/Polyline.pm blib/lib/GD/Polyline.pm cp qd.pl blib/lib/qd.pl cp GD/Image.pm blib/lib/GD/Image.pm cp GD.pm blib/lib/GD.pm AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD) cp GD/Simple.pm blib/lib/GD/Simple.pm cp GD/Polygon.pm blib/lib/GD/Polygon.pm cp GD/Group.pm blib/lib/GD/Group.pm /usr/bin/perl5.12.3 /usr/lib/perl5/5.12.3/ExtUtils/xsubpp -typemap /u +sr/lib/perl5/5.12.3/ExtUtils/typemap -typemap typemap GD.xs > GD.xsc + && mv GD.xsc GD.c cc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing +-pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_F +ILE_OFFSET_BITS=64 -Wformat=0 -O2 -march=i486 -mtune=i686 -DVERSION +=\"2.50\" -DXS_VERSION=\"2.50\" -fPIC "-I/usr/lib/perl5/5.12.3/i486-l +inux-thread-multi/CORE" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF +-DHAVE_PNG -DHAVE_ANIMGIF -DVERSION_33 -DHAVE_UNCLOSEDPOLY -DHAVE_FON +TCONFIG -DHAVE_FTCIRCLE GD.c Running Mkbootstrap for GD () chmod 644 GD.bs rm -f blib/arch/auto/GD/GD.so LD_RUN_PATH="/usr/lib" cc -shared -O2 -march=i486 -mtune=i686 -L/usr/ +local/lib -fstack-protector GD.o -o blib/arch/auto/GD/GD.so \ -L/usr/lib -L/usr/lib -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -l +png14 -lz -lm -lgd \ chmod 755 blib/arch/auto/GD/GD.so cp GD.bs blib/arch/auto/GD/GD.bs chmod 644 blib/arch/auto/GD/GD.bs /usr/bin/perl5.12.3 "-Iblib/arch" "-Iblib/lib" bdf_scripts/bdf2gdfont. +PLS bdf_scripts/bdf2gdfont.pl Extracting bdf2gdfont.pl (with variable substitutions) cp bdf_scripts/bdf2gdfont.pl blib/script/bdf2gdfont.pl /usr/bin/perl5.12.3 -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/scrip +t/bdf2gdfont.pl Manifying blib/man1/bdf2gdfont.pl.1 Manifying blib/man3/GD::Polyline.3 Manifying blib/man3/GD::Image.3 Manifying blib/man3/GD::Simple.3 Manifying blib/man3/GD.3 Manifying blib/man3/GD::Polygon.3 LDS/GD-2.50.tar.gz /usr/bin/make -- OK 'YAML' not installed, will not store persistent state Running make test PERL_DL_NONLAZY=1 /usr/bin/perl5.12.3 "-MExtUtils::Command::MM" "-e" " +test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/GD.t ........ 1/12 Testing using png support. t/GD.t ........ Failed 1/12 subtests (less 1 skipped subtest: 10 okay) t/Polyline.t .. ok Test Summary Report ------------------- t/GD.t (Wstat: 0 Tests: 12 Failed: 1) Failed test: 10 Files=2, Tests=13, 1 wallclock secs ( 0.04 usr 0.01 sys + 0.21 cusr + 0.02 csys = 0.28 CPU) Result: FAIL Failed 1/2 test programs. 1/13 subtests failed. make: *** [test_dynamic] Error 255 LDS/GD-2.50.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports LDS/GD-2.50.tar.gz Running make install Manifying blib/man1/bdf2gdfont.pl.1 Files found in blib/arch: installing files in blib/lib into architectu +re dependent library tree Installing /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi/aut +o/GD/GD.bs Installing /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi/aut +o/GD/GD.so Installing /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi/qd. +pl Installing /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi/GD. +pm Installing /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi/GD/ +Polyline.pm Installing /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi/GD/ +Image.pm Installing /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi/GD/ +Simple.pm Installing /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi/GD/ +Polygon.pm Installing /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi/GD/ +Group.pm Installing /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi/aut +o/GD/autosplit.ix Installing /usr/share/man/man1/bdf2gdfont.pl.1 Installing /usr/share/man/man3/GD::Polyline.3 Installing /usr/share/man/man3/GD::Image.3 Installing /usr/share/man/man3/GD::Simple.3 Installing /usr/share/man/man3/GD.3 Installing /usr/share/man/man3/GD::Polygon.3 Installing /usr/bin/bdf2gdfont.pl Appending installation info to /usr/lib/perl5/5.12.3/i486-linux-thread +-multi/perllocal.pod LDS/GD-2.50.tar.gz /usr/bin/make install -- OK Failed during this command: LDS/GD-2.50.tar.gz : make_test FAILED but f +ailure ignored because 'force' in effect

In reply to Can't install GD module by HankHill

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.