[mapserver-users] How to Check if MapScript is Enabled?
Bill Thoen
bthoen at gisnet.com
Wed Aug 19 13:24:42 PDT 2009
Andy Colson wrote:
> 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.)
>
> 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
Aha! That's better (sort of). Now I get a "Can't locate mapscript.pm in
@INC " error, which is more specific than the jumble of errors you get
if you leave off the second 'm'. Thanks, Andy!
More information about the MapServer-users
mailing list