Building PHP Mapscript
Daniel Morissette
dmorissette at MAPGEARS.COM
Tue Jul 17 05:45:39 PDT 2007
Gregor Mosheh wrote:
>
> It wants the PHP source code. What I usually do is grab a copy of the
> source and extract it, then ./configure it the same as my existing
> installation. Ta-da, a usable source with the same configuration and all.
>
> Use phpinfo() to find out what ./configure arguments were used
> originally, and trim out those annoying ' characters. Easy. :)
>
R. P. wrote:
> Not sure about this, but ir your are using yum, the php default install
> may not include the header files. Instead, you need to install the
> development version of php. Something like php-devel(??) and that will
> give you the header files. I think this holds true for other yum installs
> as well.
> Rob
Bill,
Gregor and Rob are both right. You can point --with-php=DIR either to
the original source tree that was used to compile PHP or to the install
directory where the PHP header files are installed by the php-devel
package or equivalent (e.g. /usr).
Basically what MapServer's configure script needs is the location of the
PHP header files that were used to compile your PHP installation.
Daniel
--
Daniel Morissette
http://www.mapgears.com/
More information about the MapServer-users
mailing list