<span class="gmail_quote"></span>I'm happy to give settings/sample files etc but maybe someone has some idea what my problem is -- I'm guessing it has to do with the installation.<br><br>The following script:<br><br>#!/usr/bin/env ruby
<br><br>require "mapscript"
<br>include Mapscript<br><br>map=MapObj.new("test.map")<br>image = map.draw<br>image.save('test.png')<br><br>fails:<br><br>in `draw': msEvalExpresssion: Expression parser error. Failed to parse expression;msyyparse(): Expression parser error. syntax error;msEvalExpression: Expression parser error. Failed to parse expression;msyyparse():
<br>...<br><br>etc.<br><br>whereas the php script<br><br><?php<br>if(!extension_loaded("MapScript")) {<br> dl('php_mapscript.'.PHP_SHLIB_SUFFIX);<br>}<br><br>$map = ms_newMapObj("test.map");<br><br>
$image = $map->draw();<br>$image->saveImage('test.png');<br><br>?> <br><br>works fine.<br><br>map.drawLegend<br>and<br>map.drawScalebar <br>work fine.<br><br>Anyone have thoughts or what information would people need to diagnose?
<br><br>