PHP/Mapscript linux compile problem
Ryan Boyles
ryan_boyles at NCSU.EDU
Sun Sep 4 14:11:50 PDT 2005
Gavin,
Thanks for the advice - I do have php-gd installed (php-gd-4.3.9-3.8)
Moreover, I've tried building PHP/Mapscript both against the standard
distribution libs as well as my own custom gd build. I see the same
problems with either.
I appreciate the updated directions you compiled for FC4 - I had
orginally referred to Blanton's guidance on the MapServer wiki pages.
Unfortunately, they don't solve my problems.
I'm afraid I may need a custom build of the latest PHP, which I
desperately want to avoid since update for PHP are more frequent and its
so much easier to use the update features in Red Hat Enterprise 4.
My gd and gd-devel are version gd-2.0.28-4. My php and php-gd are
version php-4.3.9-3.8. I know php-5 is standard now, but not yet
supported on RHEL. I may wait for the next RHEL update, which will
likely have an updated PHP.
Any other guidance?
Cheers,
Ryan
Gavin Simpson wrote:
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ryan_boyles.vcf
Type: text/x-vcard
Size: 377 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050904/d32bbb07/attachment.vcf>
More information about the MapServer-users
mailing list