[mapserver-users] How to Check if MapScript is Enabled?

Andy Colson andy at squeakycode.net
Wed Aug 19 15:59:16 EDT 2009


Bill Thoen wrote:
> Andy Colson wrote:
>> The program mapserv is not required for mapscript.  To find out if its 
>> in php, view the php info, which is easiest with a page like:
>>
>> <?PHP
>>    echo phpinfo();
>> ?>
>>
>> To see if its in perl, at a command line, type:
>>
>> perl -Mmapscript -e ''
>>
>> if nothing happens, your golden, otherwise you'll get an error saying 
>> it cant locate mapscript.pm.
> When I tried php -r "echo phpinfo();" | grep -i mapscript on the command 
> line nothing came up, and when I tried perl -Mapscript -e '' I got 
> "can't find" errors, so I guess that means that mapscript is not on 
> board. Thanks for the help; I think I know where to go from here. (If 
> not, then I'll be back.)
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

There should be two M's in the perl command line, -M mean load module...

perl -Mmapscript

means module mapscript,

perl -Mapscript

means module apscript



-Andy


More information about the mapserver-users mailing list