[Mapserver-users] unable to load dynamic library

frauke.trurnit at gmx.de frauke.trurnit at gmx.de
Fri Jan 10 08:47:33 EST 2003


Hi list,
I configured mapscript/php and copied php_mapscript.so to
"/usr/local/lib/php/extensions/". The extension_dir in php.ini is set to
"/usr/local/lib/php/extensions/" and the phpinfo() works.

But when I call this php-file:

<?php
dl('php_mapscript.so');
$map_path="/www/projects/bundestagswahlkreise/";
$map=ms_newMapObj($map_path."bundestag.map");
$image=$map->draw();
$image_url=$image->saveWebImage(MS_PNG,1,1,0);
?>
<HTML>
<HEAD>
<TITLE>Map 1</TITLE>
</HEAD>
<BODY>
<center>
<TABLE>
<TR><td>
<INPUT TYPE=IMaGe name=mapa src=<?php echo $image_url?>>
</td></TR>
</TABLE>
<center>
</BODY>
</HMTL>

I get the following error message:

Unable to load dynamic library
'/usr/local/lib/php/extensions/php_mapscript.so' - /usr/local/lib/php/extensions/php_mapscript.so: undefined symbol:
GDALGetRasterXSize in /usr/local/httpd/htdocs/releases/bundestag.php4 on line 2
Fatal error: Call to undefined function: ms_newmapobj() in
/usr/local/httpd/htdocs/releases/bundestag.php4 on line 4

Can someone help me?
Frauke

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!




More information about the mapserver-users mailing list