configure issues SUSE 9.1

Gerry Creager N5JXS gerry.creager at TAMU.EDU
Tue Feb 1 06:01:51 PST 2005


Make sure you have the php-devel package installed.  That's where the
headers (.h) reside.  The binary portion doesn't do that...

This assumes you installed using the RPMs and YaST.

If you installed from source, you should be pointing at the installation
path for php, where the libs and includes reside.

On some (but not all; go figure) redHat systems, I've had to copy some
of the PHP libs and .h's to /usr/local/[lib||include] to make things
happier.

gerry

Frank Barrett wrote:
> Hello all,
>
> I have a working version of mapserver running on my linux box.
> Unfortunately I didnt initially configure mapserver with PHP/Mapscript i.e.
> (--with-php).
> Now when I try the configure i.e.:
> ./configure --with gdal=/usr/local/bin/gdal-config --with
> ogr=/usr/local/bin/gdal-config --with-gd --with-proj --with-php=/usr/bin
>
> I get the following:
>
> configure: checking for PHP/Mapscript module options...
> checking for g++ -shared ... yes
>        using 'g++ -shared' for dynamic linking
> checking for locations of config.h or php_config.h... configure: error:
> !!! Could not fin config.h or php_config.h in /usr/bin.                !!!
> !!! Has PHP been configured yet?                                      !!!
>
> I have php 4.3.4 running on my machine which was installed sucessfully
> using the suse 9.1 distro. The config.h/php_config.h files do not appear to
> be on my system (i.e. I have no joy following a search)? I have given the
> path to the /usr/bin i.e. the path to the location of the php executable
> file. I see from the mapserver wiki site i.e. at
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat9AndMapserver40 that the
> user downloaded and installed a second version of php 4.3.4. Specifically
> for(?) mapserver. Is this really necessary? Or can any users suggest a
> workaround so something so I can get PHP/Mapscript up and working.
>
> Thanks in advance for you time.
>
> Frank.

--
Gerry Creager -- gerry.creager at tamu.edu
Texas Mesonet -- AATLT, Texas A&M University
Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578
Page: 979.228.0173
Office: 903A Eller Bldg, TAMU, College Station, TX 77843



More information about the MapServer-users mailing list