in reply to Re^2: GD-2.56 installation without root.
in thread GD-2.56 installation without root.

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.

Replies are listed 'Best First'.
Re^4: GD-2.56 installation without root.
by genome (Novice) on Jul 09, 2015 at 17:30 UTC
    I simply install libgd-gd-2.1.1 by extrat it. ./confugure --prefix=same directory where I extarctit, make and make install I never used these things like ldconfig. libgd.so.3 is in the libgd-gd-2.1.1/lib/libgd.so.3 as a simlink (libgd.so.3 -> libgd.so.3.0.0) What I HAVE TO DO NOW ??
      What I HAVE TO DO NOW ??

      First off, please don't shout. This is a monastery - a place for quiet contemplation and devout learning. And you might wake up some of the more belligerent brethren.

      I suggest that you set the environment variable LD_LIBRARY_PATH to be the full path to wherever you installed libgd.so.3. eg. (assuming a Bourne-like shell):

      export LD_LIBRARY_PATH=/some/path/to/libgd-gd-2.1.1/lib

      Then run ./Build test again and see if that makes any difference.

      In future I would very strongly advise you not to install software into the same directory where its source resides - this will likely cause you trouble. If you can do it now, re-install libgd somewhere else, eg $HOME/lib if you have no rights to any of the usual locations.

        ok. I understand your concern.

        Well, It changes now, but again with fail test.

        Now, Its like:-

        t/GD.t ........ 1/11 # Testing using gd2 support. # Failed test 'image comparison test 7' # at t/GD.t line 249. # Looks like you failed 1 test of 11. t/GD.t ........ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/11 subtests t/Polyline.t .. ok Test Summary Report ------------------- t/GD.t (Wstat: 256 Tests: 11 Failed: 1) <p> Failed test: 9 Non-zero exit status: 1 Files=2, Tests=12, 0 wallclock secs ( 0.02 usr 0.03 sys + 0.14 cusr + 0.08 csys = 0.27 CPU) Result: FAIL Failed 1/2 test programs. 1/12 subtests failed.