[Chameleon] Installing Chameleon on Linux

Jason Fournier jfournier at dmsolutions.ca
Wed Feb 9 11:03:01 EST 2005


Robin,

Others with greater Linux experience may have a better idea of what's 
going on but I dug around a little bit and it seems that there are two 
files in the common directory that load php_dbase.dll exclusively (ie, 
no check for .so):

htdocs/common/mlt/create_dbf.php
htdocs/common/phpwms/manage_servers.php

I suspect the first one would be more evident in all the sample apps as 
it's associated with translation.  You could try placing the following 
code at the top of that file:

     if (!extension_loaded("dbase"))
     {
         if (PHP_OS == "WINNT" || PHP_OS == "WIN32")
         {
             dl("php_dbase.dll");
         }
         else
         {
             dl("php_dbase.so");
         }
     }

in place of:

if (!extension_loaded("dbase")) dl("php_dbase.dll");

This is untested since I am a Windows person.  If this solves the issue 
then please file a bug (or let the list know and I'll file a bug).

BTW, does phpinfo() reveal that dbase is available to you?

Thanks,
Jason


Robin Brown wrote:
> Hello all,
> 
> We are trying to install Chameleon version 1.99 beta 2 on a linux server and are having
> trouble getting the samples to work.
> 
> 
>>It appears when I try to run any of the chameleon samples that it is
>>looking for:
>>
>>  /usr/local/lib/php/extensions/php_dbase.dll
>>
>>but the only object in the directory is the php_mapscript.so shared
>>object.  If the .dll extension means what I think it does, then the
>>chameleon sample is looking for a windows type object, a dll rather
>>than a shared object (.so) file.  
> 
> 
> does anyone know how to fix this problem?
> 
> Is there anything special we need to do to get Chameleon working on Linux?  As far as I
> know, all the instructions available for installation have been followed.  Any help
> would be appreciated.
> 
> Thanks
> 
> Robin
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
________________________
Jason Fournier

DM Solutions Group Inc.
jfournier at dmsolutions.ca
www.dmsolutions.ca
613.565.5056 x18



More information about the Chameleon mailing list