Antw: Re: [Mapserver-users] MapScript Installation Problem

Thomas Lynen Thomas.Lynen at regioit-aachen.de
Tue Feb 10 10:09:17 EST 2004


Thanks for the fast help, but i have still the same problem

i have load the mapscript_4.0.1.dll with "dependency walker" ( btw : very good tool )
MPR.dll -> Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

But i think it's not the problem.
If i try to load the php_GD2.dll with "dependency walker" the same warning is displayed and the dl(php_GD2.dll) works fine.

My php.ini Settings
extension_dir = "c:\php\extensions\"
enable_dl = On
;extension=php_mapscript_4.0.1.dll <- only a comment

<HTML>
<BODY>
<?php 
      dl("php_mapscript_4.0.1.dll");
//     dl ("php_gd2.dll");
      phpinfo();
 ?>
</BODY>
</HTML>

result :
Unable to load dynamic library 'C:/php/extensions/php_mapscript_4.0.1.dll' 

the php_mapscript_4.0.1.dll and the php_GD2.dll are in the same directory
how can php found the php_GD2.dll and not the php_mapscript_4.0.1.dll when the both are in the same directory ?
i guess its a version conflict with php
Use anyone MapServer/MapScript with a WA(M)P configuration an can tell me which version of Apache/Php/Mapscript he use.

according to the homepage mapscript 4.0 is compatible with PHP 4.1.2 and up (PHP 4.3.2 or more recent recommended)
source : http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html#example

regards

Thomas Lynen

>>> pagameba at magma.ca 10.2.2004 12:31:31 >>>
try setting extension_dir="c:\php\extensions"

if you set extension=php_mapscript_4.0.1.dll you may not need to set 
enable_dl=On.  enable_dl is enabling dynamic loading.  If you leave the 
extension out of php.ini and enable_dl=On then you can use dl( 
'php_mapscript_4.0.1.dll' ); in your scripts to load mapscript.  If you 
add extension=php_mapscript_4.0.1.dll then you do not need to use dl in 
your script and in fact it will cause an error.

the next thing to try is to get the dependency walker from 
www.dependencywalker.com and run it on php_mapscript_4.0.1.dll, it will 
tell you if all the dll dependencies can be found.  Windows will 
sometimes give you misleading error messages, like the extension can't 
be found ... often this means that a dll the extension relies on can't 
be found.

Cheers,

Paul

Thomas Lynen wrote:

> Hi all,
> yesterday i try to install the MapServer and MapScript.
> I install the Apache ( apache_1.3.28-win32-x86-no_src.exe ), PHP as CGI ( php-4.3.3-installer.exe ) and extract the MapServer Zip File ( mapserver-4.0.1-win32-php4.3.3.zip )
> I follow the instructions in the README.txt ( which was in the mapserver-4.0.1-win32-php4.3.3.zip ).
> 
> I copy all dlls in the Windows/System32 directory ( pdflib.dll, libpq.dll, libcurl.dll, xerces-c_1_6_0.dll, gdal11.dll and all dlls from ECW_DLL.zip )
> 
> Now, the readme say i must add the php_mapscript_4.0.1.dll as a php extension.
> i change the php.ini
> extension_dir = "./extensions" ( i also try "./", "./extensions/" and "c:/php/" )
> ...
> extension=php_mapscript_4.0.1.dll
> 
> enable_dl = On ( can't be wrong )
> 
> Of course i copy the MapScript Dll ( together with the php_proj.dll ) in the correct directory.
> 
> I copy the php_mapscript_4.0.1.dll to c:\php\extensions\ but if a start a php file like http://localhost/index.php a error orrcure because they don't found the dll.
> Message  : Unkown(): Unable to load dynamic library './extensions\php_mapscript_4.0.1.dll' - Das angegebene Modul wurde nicht gefunden.
> 
> I also test it with php_mapscript_36.dll
> Whe i add a other dll ( php_gd2.dll ), this dll could be found.
> I don't compiled any files, i use the precompiled files.
> 
> I have additionally read the http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html#example but i t was not realy helpful.
> 
> I use Windows 2K with SP 3 and Windows XP  with SP 1
> 
> I hope someone could help me.
> 
> regards
> 
> Thomas Lynen






More information about the mapserver-users mailing list