On Mon, Dec 08, 2003 at 10:43:31AM -0800, Stas Bekman wrote:
> Randy Kobes wrote:
> [...]
> >>This produce white image without any text and /tmp/testlog contain:
> >>libgd was not built with FreeType font support
> >>
> >>Where the problem can be? What should I do? help me...
> >>
> >>Some more information what can be useful:
> >># ldd /usr/lib/libgd.so
> >>       libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4003b000)
> >>       libfreetype.so.6 => /usr/X11R6/lib/libfreetype.so.6 (0x4005a000)
> >>       libpng.so.3 => /usr/lib/libpng.so.3 (0x4009b000)
> >>       libz.so.1 => /usr/lib/libz.so.1 (0x400c6000)
> >>       libm.so.6 => /lib/libm.so.6 (0x400d5000)
> >>       libc.so.6 => /lib/libc.so.6 (0x400f8000)
> >>       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> >
> >
> >It might be that mod_perl isn't seeing the location of the
> >freetype library. Try passing in /usr/X11R6/lib as the
> >value of the LD_LIBRARY_PATH environment variable into your
> >script.
> 
> Or add /usr/X11R6/lib to /etc/ld.so.conf and run ldconfig to update the 
> run-time environment. My /etc/ld.so.conf on linux includes that dir.

Problem wasn't there. I already had /usr/X11R6/lib in my /etc/ld.so.conf
and LD_LIBRARY_PATH changed nothing.

I recompiled freetype library and gd library and have result:
# ldd /usr/lib/libgd.so
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4003b000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4005a000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0x400a4000)
        libz.so.1 => /usr/lib/libz.so.1 (0x400cf000)
        libm.so.6 => /lib/libm.so.6 (0x400de000)
        libc.so.6 => /lib/libc.so.6 (0x40101000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Still no results.

Problem was php. PHP was compiled with gd and I don't know when and how.
Anyway... I did it again (--with-gd=/usr) and it worked.

Quite instructional case for me.

Thank you for you help anyway.

--
Kaiko Kaur

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to