php mapscript error
Aaron Racicot
aaronr at Z-PULLEY.COM
Fri Nov 3 15:34:19 PST 2006
Well... did you build GDAL with OGR support? Do the following:
[aaronr at pearl ~]$ /usr/local/bin/gdal-config --ogr-enabled
yes
[aaronr at pearl ~]$
Does gdal-config say that OGR is enabled? If not you need to go back one
more step and look at how you built GDAL/OGR. Did you use the ogr-all
target when building? Here is an example:
./configure
make ogr-all
make install
Don't give up yet... you are close!
A
+----------------------------------------+
| Aaron Racicot | aaronr at ecotrust.org |
| GIS Programmer | 360.221.2441 |
+----------------------------------------+
| e c o t r u s t |
| Jean Vollum Natural Capital Center |
| 721 NW Ninth Avenue |
| Suite 200 |
| Portland, OR 97209 |
| www.ecotrust.org |
+----------------------------------------+
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Kipp Jones
Sent: Friday, November 03, 2006 3:27 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] php mapscript error
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