除了使用安装程序setup.exe外,我还使用了 https:/ms4w.com你也可以手动安装MS4W,使用那里的.zip文件;你可以使用下面的步骤来验证你的安装。
C:/
ms4w
Apache
apps
...
cd c:/ms4w
setenv.bat
GDAL, mapserv, Python, PHP, and commandline MS4W tools path set
apache-install.bat
Installing the 'Apache MS4W Web Server' service
The 'Apache MS4W Web Server' service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
The Apache MS4W Web Server service is starting.
The Apache MS4W Web Server service was started successfully.
C:/ms4w/Apache/logs
mapserv -v
MapServer version 7.6.0-dev (MS4W 4.0.3) OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=POINT_Z_M SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
gdalinfo --formats
或 shp2img
等(基本上你现在可以调用任何工具,那住在 C:/ms4w/tools
,而不必改变那里的目录)127.0.0.1 <enter>