<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 &quot;mapscript&quot;
<br>include Mapscript<br><br>map=MapObj.new(&quot;test.map&quot;)<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>&lt;?php<br>if(!extension_loaded(&quot;MapScript&quot;)) {<br>&nbsp;&nbsp; dl('php_mapscript.'.PHP_SHLIB_SUFFIX);<br>}<br><br>$map = ms_newMapObj(&quot;test.map&quot;);<br><br>

$image = $map-&gt;draw();<br>$image-&gt;saveImage('test.png');<br><br>?&gt; <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>