in reply to Strange things with MP2 and GD

I have had no problems using MP2 (ModPerl::Registry) and GD (well, Graph::Template, which uses GD::Graph which uses GD). I have a production site using it right now.

What sort of debugging have you done? Have you correctly set the content-type? That kind of stuff (if I remember correctly) changed slightly between MP1 and MP2 (well, Apache1 and Apache2, but same difference).

------
We are the carpenters and bricklayers of the Information Age.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Strange things with MP2 and GD
by Anonymous Monk on Jan 21, 2004 at 07:29 UTC
    I have solved my problem by recompiling Apache without PHP and GD works now without trouble. So I think, it's effectivly a library path problem with the original gd library used by GD and an another one added by PHP install process (with gd support). Why does GD works correctly sometimes still a great mystery for me ... What kind of debugging could I try ? I have only checked Apache logs. Thanks all for your help (and for Graph::Template that I will try soon !)
      To end with that, the problem is effectively a lib one. PHP module has is own libgd version which is used when configure is invoked with '--with-gd'. So, when a CGI Perl invokes GD, some strange things occures.

      To avoid that without suppress PHP or PHP gd support, it's necessary to pass to configure '--with-gd=<path>' where <path> points to system directory where is the gd include directory and the libgd file. For me, I've used '--with-gd=/usr'.

      And no more strange things !

      Thanks again

      --

      poum