MapTools.org

[maplab-users] Error: MapScript Not Found - configuration problem?

Paul Spencer pgs@magma.ca
Thu, 18 Jul 2002 09:34:13 -0400
Vincent,

I just tried the following with cvs:

cvs update -r rel-3-6-2
make
sudo cp mapscript/php3/php_mapscript.so `php-config --extension-dir`

and my phpinfo gives me

MapScript Version ($Revision: 1.104.2.4 $ $Date: 2002/07/08 20:04:58 $)
MapServer version 3.6.2-dev .....

then I did the same with:

cvs update -r rel-3-6-0-beta1
make
sudo cp mapscript/php3/php_mapscript.so `php-config --extension-dir`

and my phpinfo gives me the same thing

MapScript Version ($Revision: 1.104.2.4 $ $Date: 2002/07/08 20:04:58 $)
MapServer version 3.6.2-dev

before both I did a cvs update -A to release sticky tags and make sure 
that I got the right version.  The rel-3-6-2 tag is at the head of the 
rel-3-6-0-beta1 branch currently, you should get the same mapscript 
using either (but the rel-3-6-2 will stick but the rel-3-6-0-beta1 will 
get you the latest code in the branch)

You may also have done a 'make install'.  Don't use the install target. 
 If you did, you will have to find and remove libmap.a (probably 
/usr/local/lib/libmap.a) and map.h (probably /usr/local/include/map.h) 
then reconfigure and make mapserver

Cheers,

Paul

Vincent Schut wrote:

>Hmmm
>
>Rebuilding didn't help much... Still getting the same error.
>
>btw, is this 3-6-2 branch *really* a 3.6.2 branch? In my phpinfo the mapscript 
>
>sections says the following:
>
>
>
>MapScript Version ($Revision: 1.104.2.4 $ $Date: 2002/07/08 20:04:58 $)
>
>MapServer version 3.6.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ 
>
>SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=GDAL 
>
>INPUT=SHAPEFILE
>
>
>
>Note the mapserver version number... Hasn't this been updated or has something 
>
>gone wrong with (my) cvs updates?
>
>
>
>Paul, If you could send me a tarball of the 3.6.2 version, that would be most 
>
>helpfull.
>
>
>
>Cheers,
>
>Vincent.
>
>
>
>
>
>On Thursday 18 July 2002 13:16, Venkatesh Raghavan wrote:
>
>  
>
>>Hi all,
>>    
>>
>
>  
>
>
>  
>
>>Having exactly the same problem which Vincent described earlier.
>>    
>>
>
>  
>
>>Also using Mardrake 8.2. Tried using the mapserver3.6.2 made available
>>    
>>
>
>  
>
>>at http://www2.dmsolutions.ca/webtools/dl/ but am still getting the
>>    
>>
>
>  
>
>
>  
>
>> "undefined symbol: msTokenizeMap" error when running mapedit
>>    
>>
>
>  
>
>
>  
>
>>Paul, is your mapserver3.6.2 different from the one at
>>    
>>
>
>  
>
>>DMSolutions and does it fix the mapedit problem too? If so could
>>    
>>
>
>  
>
>>you please send me the tarball
>>    
>>
>
>  
>
>
>  
>
>>Thanks
>>    
>>
>
>  
>
>
>  
>
>>Raghavan
>>    
>>
>
>  
>
>
>  
>
>>Paul Spencer wrote:
>>    
>>
>
>  
>
>>>Vincent, you need a newer version of mapserver.  If you are getting it
>>>      
>>>
>
>  
>
>>>from cvs, then try
>>>      
>>>
>
>  
>
>
>  
>
>>>cvs update -A
>>>      
>>>
>
>  
>
>>>cvs update -r rel-3-6-0-beta1
>>>      
>>>
>
>  
>
>
>  
>
>>>rel-3-6-0-beta1 is really a branch for the 3-6 release.
>>>      
>>>
>
>  
>
>
>  
>
>>>A 3-6-2 was released but hasn't made it onto the web site.  it's cvs tag
>>>      
>>>
>
>  
>
>>>is rel-3-6-2 :)
>>>      
>>>
>
>  
>
>
>  
>
>>>If  you are using a tarball, email me and I will make you one.
>>>      
>>>
>
>  
>
>
>  
>
>>>Cheers,
>>>      
>>>
>
>  
>
>
>  
>
>>>Paul
>>>      
>>>
>
>  
>
>
>  
>
>>>Vincent Schut wrote:
>>>      
>>>
>
>  
>
>>>>Paul,
>>>>        
>>>>
>
>  
>
>
>  
>
>
>  
>
>
>  
>
>>>>I fixed it the other way around. Added a else statement after the if
>>>>        
>>>>
>
>  
>
>>>>that
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>checks wether ms has been loaded, which sets the boolean var on true
>>>>        
>>>>
>
>  
>
>>>>when the
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>if fails. This works.
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>Now I can get maplab running, and mapedit. However, the next issue comes
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>peeping around the corner...:
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>I can start a new mapfile, but when I try to open an existing mapfile
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>(tutorial, or mapfiless I created with maplab, I get an error.
>>>>        
>>>>
>
>  
>
>>>>('Internal
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>Server Error'). The apache logs say:
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>php: relocation error: /usr/lib/php/extensions/php_mapscript.so:
>>>>        
>>>>
>
>  
>
>>>>undefined
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>symbol: msTokenizeMap
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>[Thu Jul 18 10:06:04 2002] [error] [client 127.0.0.1] Premature end of
>>>>        
>>>>
>
>  
>
>>>>script
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>headers: /var/www/cgi-bin/php
>>>>        
>>>>
>
>  
>
>
>  
>
>
>  
>
>
>  
>
>>>>So there seems to be a call to an undefined procedure (msTokenizeMap)
>>>>        
>>>>
>
>  
>
>>>>and
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>after that the php cgi crashes (that seems logic to me).
>>>>        
>>>>
>
>  
>
>
>  
>
>
>  
>
>
>  
>
>>>>Is this a bug in the (linux) maplab code?
>>>>        
>>>>
>
>  
>
>
>  
>
>
>  
>
>
>  
>
>>>>System:
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>Mandrake linux 8.2
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>apache 1.3.26 (mandrake rpm)
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>php 4.2.1 (config: --enable-force-cgi-redirect' '--with-gd'
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>'--enable-gd-native-ttf' '--with-ttf' '--with-regex=system'
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>'--with-mysql=/usr' '--with-config-file-path=/etc' '--enable-dbase'
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>'--disable-xml' '--with-expat-dir=/usr/lib' '--with-dom' '--with-zlib')
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>mapserver: cvs of july 12
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>maplab: 2.0RC2
>>>>        
>>>>
>
>  
>
>
>  
>
>
>  
>
>
>  
>
>>>>btw There seems to be something wrong with this list in combination with
>>>>        
>>>>
>
>  
>
>>>>my
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>email... I do not receive list mails anymore, I answer you because i did
>>>>        
>>>>
>
>  
>
>>>>get
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>suspicious about that after some days and checked the list archives.
>>>>        
>>>>
>
>  
>
>>>>Please
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>send your answer also to my email and not only to the list.
>>>>        
>>>>
>
>  
>
>
>  
>
>
>  
>
>
>  
>
>>>>Thanks,
>>>>        
>>>>
>
>  
>
>
>  
>
>>>>Vincent.
>>>>        
>>>>
>
>  
>
>
>  
>
>
>  
>
>>>>---
>>>>        
>>>>
>
>  
>
>>>>Stichting BOS kleurt de wereld GROEN!
>>>>        
>>>>
>
>  
>
>>>>Kleur mee op http://www.stichtingbos.nl/
>>>>        
>>>>
>
>  
>
>
>  
>
>>>_______________________________________________
>>>      
>>>
>
>  
>
>>>Maplab-users mailing list
>>>      
>>>
>
>  
>
>>>Maplab-users@dmsolutions.ca
>>>      
>>>
>
>  
>
>>>http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
>>>      
>>>
>
>
>
>
>---
>Stichting BOS kleurt de wereld GROEN! 
>Kleur mee op http://www.stichtingbos.nl/
>  
>





This archive was generated by Pipermail.