PHP/Mapscript linux compile problem
Gavin Simpson
gavin.simpson at UCL.AC.UK
Sat Sep 3 01:55:50 PDT 2005
On Fri, 2005-09-02 at 17:38 -0400, Ryan Boyles wrote:
> Hi all -
>
> I'm attempting to install PHP/Mapscript onto a RHEL4 distribution with
> the latest PHP and GD pre-installed.
>
> Mapserver compiles fine, but there are errors in PHP/Mapscript compile:
>
> php_mapscript.c: In function `php3_ms_img_pasteImage':
> php_mapscript.c:6267: warning: implicit declaration of function
> `php_gd_gdImageColorExact'
> php_mapscript.c:6271: warning: implicit declaration of function
> `php_gd_gdImageColorTransparent'
> php_mapscript.c:6274: warning: implicit declaration of function
> `php_gd_gdImageCopy'
> php_mapscript.c: In function `php3_ms_img_saveImage':
>
>
> Normally I ignore compile logs when there's just an error, but this
> seems to cause other problems, and the php_mapscript.so doesn't seem to
> work properly, either as DSO module in Apache or as CGI.
>
> In httpd error_log:
> PHP Warning: Unknown(): Unable to load dynamic library
> '/usr/lib64/php4/php_mapscript.so' - /usr/lib64/php4/php_mapscript.so:
> undefined symbol: php_gd_gdImageCopy in Unknown on line 0
> PHP Warning: Unknown(): Unable to load dynamic library
> '/usr/lib64/php4/php_mapscript.so' - /usr/lib64/php4/php_mapscript.so:
> undefined symbol: php_gd_gdImageCopy in Unknown on line 0
>
> I've configured Apache as suggested for other preloaded distros, but
> after 8 hours worth of digging, I'm stuck.
>
Hi Ryan,
Have you installed the php-gd package? This looks similar to an error I
had the other day when setting up a Fedora Core 4 box and I was missing
php-gd.
I'd install that, restart apache and try again. I'm fairly sure that's
the problem.
If that doesn't work, perhaps my instructions for installing mapserver
and php_mapscript on a FC4 box may be useful:
http://ecrc3.geog.ucl.ac.uk/dokuwiki/sysadmin/compile_mapserver
All the best,
G
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gavin Simpson [T] +44 (0)20 7679 5522
ENSIS Research Fellow [F] +44 (0)20 7679 7565
ENSIS Ltd. & ECRC [E] gavin.simpsonATNOSPAMucl.ac.uk
UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/
26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/
London. WC1H 0AP.
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the MapServer-users
mailing list