php mapscript error

Kipp Jones kippster at YAHOO.COM
Fri Nov 3 18:27:08 EST 2006


Thanks William & Aaron...great to have such quick response.

I did end up building it on my own -- and boy was that fun :-)  I was  
following the information (thanks btw!) on http://www.kyngchaos.com/ 
macosx/install/mapserv   -- but grabbed the 4.10.0 version instead of  
the 4.6.0 version...

Here is the configure comman I used:

./configure --mandir=/usr/local/share/man --with-proj=/usr/local -- 
with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal- 
config --with-gd=/usr/local --with-xpm=/usr/X11R6 --with-php=/usr/ 
local --with-geos=/usr/local/bin/geos-config --with-wfs --with-wcs -- 
with-wfsclient --with-wmsclient --with-freetype=/usr/:qX11R6/bin/ 
freetype-config

I swear I tried to use a package install earlier on in the process,  
but perhaps I should drop back and try that again...

Thanks again,

Kipp


On Nov 3, 2006, at 5:43 PM, William Kyngesburye wrote:

> Did you build MapServer and GDAL yourself?  A Aaron pointed out,  
> you might have missed the --with-ogr option in mapserver, it's not  
> automatic when you enable gdal support.
>
> Alternatively, have you looked at my MapServer package for OSX?  If  
> there is something missing that you need, let me know.
>
> On Nov 3, 2006, at 3:55 PM, Kipp Jones wrote:
>
>> This may be a configuration error, but I'm stumped.  I'm getting  
>> an error when trying to use ogr to connect to mysql via  
>> phpmapscript.  The error:
>>
>> PHP Warning:  [MapServer Error]: msOGRLayerOpen(): OGR support is  
>> not available.
>>
>> I'm running on Mac OS X 10.4.8.
>>
>> Things seem to be happy, gmap is working just fine.
>>
>> My output from phpinfo shows:
>>
>> MapServer Version
>> MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG  
>> OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE  
>> SUPPORTS=WMS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=GDAL  
>> INPUT=SHAPEFILE DEBUG=MSDEBUG
>> PHP MapScript Version
>> ($Revision: 1.260 $ $Date: 2006/09/06 16:42:36 $)
>>
>
> -----
> William Kyngesburye <kyngchaos at kyngchaos.com>
> http://www.kyngchaos.com/
>
> Earth: "Mostly harmless"
>
> - revised entry in the HitchHiker's Guide to the Galaxy



More information about the mapserver-users mailing list