genome has asked for the wisdom of the Perl Monks concerning the following question:

I tried to install GD-2.56 locally, but failed.

Please help me.

I did perl ./Build.PL .......it was fine

then, ./Build

then ./Build test

it fails ........

t/GD.t ........ 1/11 # Failed test 'use GD;' # at t/GD.t line 14. # Tried to use 'GD'. # Error: Can't load '/nv/vol80/hlilab/shailesh/benchmarking/modu +les/GD-2.56/t/../blib/arch/auto/GD/GD.so' for module GD: libgd.so.3: +cannot open shared object file: No such file or directory at /usr/lib +64/perl5/DynaLoader.pm line 200. # at (eval 17) line 2 # Compilation failed in require at (eval 17) line 2. # BEGIN failed--compilation aborted at (eval 17) line 2. # Failed test 'use GD::Simple;' # at t/GD.t line 15. # Tried to use 'GD::Simple'. # Error: Attempt to reload GD.pm aborted. # Compilation failed in require at /nv/vol80/hlilab/shailesh/benchmark +ing/modules/GD-2.56/t/../blib/lib/GD/Simple.pm line 160. # BEGIN failed--compilation aborted at /nv/vol80/hlilab/shailesh/bench +marking/modules/GD-2.56/t/../blib/lib/GD/Simple.pm line 160. # Compilation failed in require at (eval 18) line 2. # BEGIN failed--compilation aborted at (eval 18) line 2. # Testing using gd2 support. # Failed test 'unable to generate comparison image for test 1: Can't + locate object method "_new" via package "GD::Image" at /nv/vol80/hli +lab/shailesh/benchmarking/modules/GD-2.56/t/../blib/lib/GD/Image.pm l +ine 83. # ' # at t/GD.t line 246. # Failed test 'unable to generate comparison image for test 2: Can't + locate object method "_new" via package "GD::Image" at /nv/vol80/hli +lab/shailesh/benchmarking/modules/GD-2.56/t/../blib/lib/GD/Image.pm l +ine 83. # ' # at t/GD.t line 246. # Failed test 'unable to generate comparison image for test 3: Can't + locate object method "_new" via package "GD::Image" at /nv/vol80/hli +lab/shailesh/benchmarking/modules/GD-2.56/t/../blib/lib/GD/Image.pm l +ine 83. # ' # at t/GD.t line 246. # Failed test 'unable to generate comparison image for test 4: Can't + locate object method "_new" via package "GD::Image" at /nv/vol80/hli +lab/shailesh/benchmarking/modules/GD-2.56/t/../blib/lib/GD/Image.pm l +ine 83. # ' # at t/GD.t line 246. # Failed test 'unable to generate comparison image for test 5: Can't + locate object method "_new" via package "GD::Image" at /nv/vol80/hli +lab/shailesh/benchmarking/modules/GD-2.56/t/../blib/lib/GD/Image.pm l +ine 83. # ' # at t/GD.t line 246. # Failed test 'unable to generate comparison image for test 6: Can't + locate object method "_new" via package "GD::Image" at /nv/vol80/hli +lab/shailesh/benchmarking/modules/GD-2.56/t/../blib/lib/GD/Image.pm l +ine 83. # ' # at t/GD.t line 246. # Failed test 'unable to generate comparison image for test 7: Can't + locate object method "_new" via package "GD::Image" at /nv/vol80/hli +lab/shailesh/benchmarking/modules/GD-2.56/t/../blib/lib/GD/Image.pm l +ine 83. # ' # at t/GD.t line 246. Can't locate object method "_new" via package "GD::Image" at /nv/vol80 +/hlilab/shailesh/benchmarking/modules/GD-2.56/t/../blib/lib/GD/Image. +pm line 83. # Looks like you planned 11 tests but ran 9. # Looks like you failed 9 tests of 9 run. # Looks like your test exited with 255 just after 9. t/GD.t ........ Dubious, test returned 255 (wstat 65280, 0xff00) Failed 11/11 subtests t/Polyline.t .. Can't load <p>'/nv/vol80/hlilab/shailesh/benchmarking +/modules/GD-2.56/blib/arch/auto/GD/GD.so' for module GD: libgd.so.3: +cannot open shared object file: No such file or directory at /usr/lib +64/perl5/DynaLoader.pm line 200. <p> at /nv/vol80/hlilab/shailesh/benchmarking/modules/GD-2.56/blib/lib/GD +/Polyline.pm line 45 Compilation failed in require at /nv/vol80/hlilab/shailesh/benchmarkin +g/modules/GD-2.56/blib/lib/GD/Polyline.pm line 45. BEGIN failed--compilation aborted at /nv/vol80/hlilab/shailesh/benchma +rking/modules/GD-2.56/blib/lib/GD/Polyline.pm line 45. Compilation failed in require at t/Polyline.t line 10. BEGIN failed--compilation aborted at t/Polyline.t line 10. t/Polyline.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 1/1 subtests Test Summary Report ------------------- t/GD.t (Wstat: 65280 Tests: 9 Failed: 9) Failed tests: 1-9 Non-zero exit status: 255 Parse errors: Bad plan. You planned 11 tests but ran 9. t/Polyline.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 1 tests but ran 0. Files=2, Tests=9, 0 wallclock secs ( 0.03 usr 0.03 sys + 0.13 cusr + 0.09 csys = 0.28 CPU) Result: FAIL Failed 2/2 test programs. 9/9 subtests failed.
PLease solve this for the error.

Replies are listed 'Best First'.
Re: GD-2.56 installation without root.
by hippo (Archbishop) on Jul 09, 2015 at 15:55 UTC
    libgd.so.3: cannot open shared object file: No such file or directory

    There's your problem. Either you don't have libgd installed or it isn't installed in the right place.

      But I have correctly installed the libgd-gd-2.1.1 and give the path of directory in .bashrc.

      Should i give the path (in .bashrc) where libgd.so.3 is located I could not understand. PLease explains little.

        Did you use ldconfig when you installed libgd? Where is libgd.so.3? How (precisely) did you install libgd? What is the value of $LD_LIBRARY_PATH?

        Some or all of these could have a bearing on whether the test script can find the library. This is not really a perl-specific issue - it's a question of being able to correctly install and use third-party libraries.