Annonce
Pour sa 21ème année, l’association GeoRezo a toujours besoin de vous !
10€ = 1 mois de frais bancaires ; 15€ = 12 mois de nom de domaine ; 30€ = 1 semaine de location des serveurs …
Retrouver nos membres bienfaiteurs
#1 Mon 22 January 2007 16:13
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
[Mapserver]Pb d'installation
Bonjour à tous,
J'ai installé mapserver-4.8.1 sous Debian. Quand je fais phpinfo(), j'obtiens :
MapScript
MapServer Version MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE
PHP MapScript Version ($Revision: 1.242.2.1 $ $Date: 2006/01/18 00:37:47 $)
Quand j'exécute mon programme, j'ai ce message d'erreurs suivant :
Warning: [MapServer Error]: loadProjection(): Projection support is not available. in /var/www/portailmel/recherchegraphique.php on line 110
Warning: Failed to open map file portailmel.map in /var/www/portailmel/recherchegraphique.php on line 110
Fatal error: Call to a member function on a non-object in /var/www/portailmel/recherchegraphique.php on line 111
Je ne comprends d'où ça peut venir. Quand je cherche sur les forums, c'est un problème avec PROJ.4
Pourtant il est installé.
Avez-vous une solution?
Merci d'avance
Hors ligne
#2 Mon 22 January 2007 16:29
Re: [Mapserver]Pb d'installation
Bonjour,
Avez-vous compilé vous mapserver ? Si c'est le cas, vous devez le recompiler en ajoutant --with-proj=répertoire/vers/proj4
Dans tout les cas, votre version de mapserver ne gère par la reprojection, vous devez obtenir quelque chose comme ca :
Code:
./mapserv -v MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG [b]SUPPORTS=PROJ [/b]SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
Y.
Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !! - GeoRezo vous aide ? Aidez GeoRezo !
Hors ligne
#3 Mon 22 January 2007 16:34
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
J'ai fait la compilation avec l'option --with-proj mais ça n'a pas l'air de fonctionner
Je mets ce que me met la compil :
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for exp in -lm... yes
checking for __gxx_personality_v0 in -lstdc++... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strlcat... no
checking for vsnprintf... yes
MapServer Version from map.h: '4.8.1'
configure: checking where FreeType 2.x is installed...
checking for FT_Init_FreeType in -lfreetype... yes
using libfreetype -lfreetype from system libs.
configure: checking where Zlib is installed...
checking for zlibVersion in -lz... yes
using libz from system libs (-DUSE_ZLIB).
configure: checking where PNG is installed...
checking for png_init_io in -lpng... yes
using libpng from system libs.
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
using libjpeg from system libs.
configure: checking where libXpm is installed...
checking for XpmFreeXpmImage in -lXpm... no
XPM (libXpm) library cannot be found, possibly needed for GD
configure: checking where libiconv is installed...
checking for iconv_open in -lc... yes
checking for libiconv_open in -liconv... no
using libiconv from system libs.
libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.16 or higher...
checking for gdFontCacheSetup in -lgd... yes
checking for gdFontCacheSetup in -lgd... (cached) yes
using libgd 2.0.16 (or higher) from system libs (-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageGifPtr in -lgd... no
checking for gdFontGetTiny in -lgd... no
using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from system libs.
configure: checking whether we should include PDF support...
checking for PDF_setlinewidth in -lpdf... no
checking for PDF_setrgbcolor in -lpdf... no
checking for PDF_moveto in -lpdf... no
checking for PDF_curveto in -lpdf... no
checking for PDF_show_xy in -lpdf... no
libpdf not found... PDF support not included.
configure: checking whether we should include EPPL7 support...
including EPPL7 support.
configure: checking whether we should include PROJ.4 support...
checking for pj_transform in -lproj... yes
using PROJ.4 from /root/proj-4.4.9/.
configure: checking whether we should include thread safe support...
thread safe support disabled.
configure: checking whether we should include ESRI SDE support...
ESRI SDE support not requested.
configure: checking whether we should compile in MPATROL support...
MPATROL support not requested.
checking if GEOS support requested... no
configure: checking whether we should include OGR support...
OGR support not requested.
checking if GDAL support requested... no
checking checking ms JPEG output... yes, GDAL is not available but libjpeg is.
configure: checking whether we should include TIFF support...
checking for TIFFOpen in -ltiff... yes
using libtiff from system libs.
checking if PostGIS support requested... no
checking if MyGIS support requested... no
checking if OracleSpatial support requested... no
checking if MING/Flash support requested... no
configure: checking whether we should include WMS Server support...
OGC WMS compatibility enabled (-DUSE_WMS_SVR).
configure: checking whether we should include WFS Server support...
OGC WFS Server support not requested.
configure: checking whether we should include WCS Server support...
OGC WCS Server support not requested.
configure: checking whether we should include WMS Client Connections support...
configure: checking whether we should include WFS Client Connections support...
OGC WFS Client Connections not enabled (PROJ.4, libcurl and OGR required).
configure: checking for curl-config...
configure: checking whether FastCGI support should be enabled...
FastCGI support not enabled.
configure: checking HTTPD server (Apache) version...
checking for httpd... no
'httpd' not found, skipping Apache version detection. You may want to use --with-httpd=/path/to/httpd
Compiling with -DIGNORE_MISSING_DATA.
checking compiler warnings... basic
configure: checking whether we should enable debug features...
configure: checking for PHP/MapScript module options...
PHP/MapScript module not configured.
checking if --enable-runpath requested... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/java/Makefile
Hors ligne
#4 Mon 22 January 2007 16:54
Re: [Mapserver]Pb d'installation
Bonjour,
Il semble qu'au contraire proj4 soit installé, il n'y a pas de message d'erreur à ce propos dans la compilation. Par contre, quelle couche essayez vous de charger à partir de votre mapfile ?
Y.
Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !! - GeoRezo vous aide ? Aidez GeoRezo !
Hors ligne
#5 Mon 22 January 2007 16:57
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
Voici mon mapfile :
Code:
MAP NAME "Portail MEL" STATUS ON EXTENT -1 40 10 53 SIZE 500 500 SHAPEPATH "data" SYMBOLSET "symbols/symbols.sym" FONTSET "fonts/fonts.list" UNITS DD IMAGECOLOR 207 218 235 IMAGETYPE png # Format de sortie OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END # Affichage de la carte WEB #le chemin IMAGEPATH doit être saisi en dur... IMAGEPATH "/var/www/portailmel/mapserver/output/" IMAGEURL "mapserver/output/" MINSCALE 250 END # Affichage de la carte de référence REFERENCE STATUS ON EXTENT -4 40 13 52 SIZE 170 159 COLOR -1 -1 -1 OUTLINECOLOR 0 255 0 MAXBOXSIZE 48 IMAGE "/var/www/portailmel/mapserver/data/images/france.png" END # Affichage de la légende LEGEND STATUS EMBED IMAGECOLOR 255 243 211 KEYSIZE 15 15 KEYSPACING 5 5 POSITION UR LABEL TYPE TRUETYPE FONT "arial" SIZE 8 COLOR 0 0 0 PARTIALS TRUE END END # Affichage de l'échelle SCALEBAR STATUS EMBED COLOR 0 0 0 TRANSPARENT OFF UNITS KILOMETERS INTERVALS 2 SIZE 120 2 STYLE 1 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 COLOR 0 0 0 PARTIALS FALSE END END # Affichage de la couche Europe LAYER NAME "Europe" CONNECTIONTYPE OGR CONNECTION "/var/www/portailmel/mapserver/data/Pays Europe.TAB" STATUS DEFAULT TYPE POLYGON CLASS NAME "Europe" STYLE COLOR 217 214 105 END STYLE SYMBOL "circle" OUTLINECOLOR 100 100 100 SIZE 2 END END #PROJECTION # "proj=latlong" # "ellps=WGS84" # "datum=WGS84" # "pm=paris" #END PROJECTION "init=epsg:4326" END END # Affichage de la couche France LAYER NAME "France" CONNECTIONTYPE OGR CONNECTION "/var/www/portailmel/mapserver/data/Departements France.TAB" STATUS DEFAULT TYPE POLYGON CLASS NAME "France" STYLE COLOR 217 180 74 END STYLE SYMBOL "circle" OUTLINECOLOR 100 100 100 SIZE 2 END LABEL TYPE TRUETYPE FONT "arial-bold" SIZE 10 POSITION AUTO COLOR 255 48 0 ANTIALIAS TRUE PARTIALS FALSE OUTLINECOLOR 255 255 255 END END #PROJECTION # "proj=latlong" #"ellps=WGS84" #"datum=WGS84" #"pm=paris" #END PROJECTION "init=epsg:27582" END END END # Map File
Hors ligne
#6 Mon 22 January 2007 17:02
Re: [Mapserver]Pb d'installation
Bjr
Pour completer, j'ai eu comme probleme sou sdebian qq chose de similaire du à une trop vielle version de ESPS (dans /usr/local/share/proj/)
Donc essayez de faire une copie du votre et de copier une veriosn plus recente issu de http://proj.maptools.org/ a la place.
Cela reste une piste pas une certitude...
Cdt
gb
Hors ligne
#7 Mon 22 January 2007 17:20
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
J'ai installé proj-4.5.0 mais ça ne change malheureusement rien
Qd je lance "ldd mapserv" voici ce qui est retourné :
libgd.so.2 => /usr/local/lib/libgd.so.2 (0xa7f34000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xa7f15000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xa7ea8000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xa7e83000)
libz.so.1 => /usr/lib/libz.so.1 (0xa7e71000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xa7d3c000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xa7d1a000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xa7c5f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xa7f75000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xa7c56000)
Je pense que les librairies de proj devraient être visibles non?
Je ne comprends vraiment pas. J'ai aucun message d'erreurs dans ma compil.
Dernière modification par duckaurore (Mon 22 January 2007 17:22)
Hors ligne
#8 Mon 22 January 2007 17:29
Re: [Mapserver]Pb d'installation
Bonjour,
Ton problème vient du faite que tu n'a pas paramètre la compilation de mapserver pour gérer GDAL et OGR :
configure: checking whether we should include OGR support...
OGR support not requested.
checking if GDAL support requested... no
LAYER
NAME "Europe"
CONNECTIONTYPE OGR
CONNECTION "/var/www/portailmel/mapserver/data/Pays Europe.TAB"
STATUS DEFAULT
TYPE POLYGON
il faut ajouter les paramètres --with-gdal=repertoire/vers/gdal-config --with-ogr=repertoire/vers/gdal-config
Y.
Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !! - GeoRezo vous aide ? Aidez GeoRezo !
Hors ligne
#9 Mon 22 January 2007 19:49
Re: [Mapserver]Pb d'installation
Re
Le probleme semble venir d'OGR que tu indiques dans ton mapfile
"configure: checking whether we should include OGR support...
OGR support not requested. "
gb
Hors ligne
#10 Tue 23 January 2007 10:32
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
J'ai compilé avec ogr :
./configure --with-ogr=/usr/bin/gdal-config --with-proj=/home/aurore/proj-4.5.0
Voilà le résultat de la compilation
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for exp in -lm... yes
checking for __gxx_personality_v0 in -lstdc++... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strlcat... no
checking for vsnprintf... yes
MapServer Version from map.h: '4.8.1'
configure: checking where FreeType 2.x is installed...
checking for FT_Init_FreeType in -lfreetype... yes
using libfreetype -lfreetype from system libs.
configure: checking where Zlib is installed...
checking for zlibVersion in -lz... yes
using libz from system libs (-DUSE_ZLIB).
configure: checking where PNG is installed...
checking for png_init_io in -lpng... yes
using libpng from system libs.
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
using libjpeg from system libs.
configure: checking where libXpm is installed...
checking for XpmFreeXpmImage in -lXpm... no
XPM (libXpm) library cannot be found, possibly needed for GD
configure: checking where libiconv is installed...
checking for iconv_open in -lc... yes
checking for libiconv_open in -liconv... no
using libiconv from system libs.
libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.16 or higher...
checking for gdFontCacheSetup in -lgd... yes
checking for gdFontCacheSetup in -lgd... (cached) yes
using libgd 2.0.16 (or higher) from system libs (-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageGifPtr in -lgd... no
checking for gdFontGetTiny in -lgd... no
using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from system libs.
configure: checking whether we should include PDF support...
checking for PDF_setlinewidth in -lpdf... no
checking for PDF_setrgbcolor in -lpdf... no
checking for PDF_moveto in -lpdf... no
checking for PDF_curveto in -lpdf... no
checking for PDF_show_xy in -lpdf... no
libpdf not found... PDF support not included.
configure: checking whether we should include EPPL7 support...
including EPPL7 support.
configure: checking whether we should include PROJ.4 support...
checking for pj_transform in -lproj... yes
using PROJ.4 from /home/aurore/proj-4.5.0.
configure: checking whether we should include thread safe support...
thread safe support disabled.
configure: checking whether we should include ESRI SDE support...
ESRI SDE support not requested.
configure: checking whether we should compile in MPATROL support...
MPATROL support not requested.
checking if GEOS support requested... no
configure: checking whether we should include OGR support...
OGR enabled (-DUSE_OGR).
checking if GDAL support requested... no
checking checking ms JPEG output... yes, GDAL is not available but libjpeg is.
configure: checking whether we should include TIFF support...
checking for TIFFOpen in -ltiff... yes
using libtiff from system libs.
checking if PostGIS support requested... no
checking if MyGIS support requested... no
checking if OracleSpatial support requested... no
checking if MING/Flash support requested... no
configure: checking whether we should include WMS Server support...
OGC WMS compatibility enabled (-DUSE_WMS_SVR).
configure: checking whether we should include WFS Server support...
OGC WFS Server support not requested.
configure: checking whether we should include WCS Server support...
OGC WCS Server support not requested.
configure: checking whether we should include WMS Client Connections support...
configure: checking whether we should include WFS Client Connections support...
configure: checking for curl-config...
configure: checking whether FastCGI support should be enabled...
FastCGI support not enabled.
configure: checking HTTPD server (Apache) version...
checking for httpd... no
'httpd' not found, skipping Apache version detection. You may want to use --with-httpd=/path/to/httpd
Compiling with -DIGNORE_MISSING_DATA.
checking compiler warnings... basic
configure: checking whether we should enable debug features...
configure: checking for PHP/MapScript module options...
PHP/MapScript module not configured.
checking if --enable-runpath requested... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/java/Makefile
Toujours la même erreur à l'exécution de mon code
Code:
./mapserv -v MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE
Hors ligne
#11 Tue 23 January 2007 10:51
Re: [Mapserver]Pb d'installation
Bonjour,
Le script mapserv que vous utilisez pour tester la configuration est situé où ? Votre répertoire où vous compilez est situé où ?
Y.
Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !! - GeoRezo vous aide ? Aidez GeoRezo !
Hors ligne
#12 Tue 23 January 2007 10:56
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
Le répertoire est /root/mapserver-4.8.1
Le script est /usr/lib/cgi-bin/
Hors ligne
#13 Tue 23 January 2007 11:17
Re: [Mapserver]Pb d'installation
Bonjour,
Le répertoire est /root/mapserver-4.8.1
Le script est /usr/lib/cgi-bin/
Le script qui est dans /usr/lib/cgi-bin/ est l'ancien. Vous devez tester celui qui est dans /root/mapserver-4.8.1
Que donne /root/mapserver-4.8.1/mapserv -v ?
Dans le cas où il indique le support de proj4 et de OGR, copiez coller le script mapserv dans /usr/lib/cgi-bin/
Y.
Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !! - GeoRezo vous aide ? Aidez GeoRezo !
Hors ligne
#14 Tue 23 January 2007 11:22
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
En fait les 2 indiquent la même chose
Hors ligne
#15 Tue 23 January 2007 13:20
Re: [Mapserver]Pb d'installation
Bonjour,
J'ai un doute, vous lancez bien make après le ./configure ?
Y.
Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !! - GeoRezo vous aide ? Aidez GeoRezo !
Hors ligne
#16 Tue 23 January 2007 13:55
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
oui oui
Hors ligne
#17 Tue 23 January 2007 14:23
Re: [Mapserver]Pb d'installation
Avec un petit "make clean" avant le make pour nettoyer tout ca ?
Y.
Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !! - GeoRezo vous aide ? Aidez GeoRezo !
Hors ligne
#18 Tue 23 January 2007 17:30
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
Ok j'ai désinstallé et réinstallé
Maintenant j'ai :
./mapserv -v
MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE
C'est mieux déjà.
Dans mon phpinfo() c'est toujours pas ça mais j'y travaille
Merci
Hors ligne
#19 Tue 23 January 2007 18:53
Re: [Mapserver]Pb d'installation
Ok j'ai désinstallé et réinstallé
Maintenant j'ai :./mapserv -v
MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE
C'est mieux déjà.
Dans mon phpinfo() c'est toujours pas ça mais j'y travaille
Merci
Bonjour,
Ok, pour php, il faut copier le ficheir php_mapscript.so dans le répertoire des extensions de PHP.
Y.
Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !! - GeoRezo vous aide ? Aidez GeoRezo !
Hors ligne
#20 Wed 24 January 2007 09:58
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
ça ne modifie pas mon phpinfo().
J'obtiens toujours :
MapScript
MapServer Version MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE
PHP MapScript Version ($Revision: 1.242.2.1 $ $Date: 2006/01/18 00:37:47 $)
Hors ligne
#21 Wed 24 January 2007 10:11
Re: [Mapserver]Pb d'installation
Bonjour,
Voius avez relancé apache ? Sinon il garde la dernière version en mémoire !
Y.
Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !! - GeoRezo vous aide ? Aidez GeoRezo !
Hors ligne
#22 Wed 24 January 2007 10:32
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
Ok c'est bon. Merci beaucoup. J'avais copié php_mapscript.so dans le mauvais répertoire.
Merci beaucoup de votre aide.
Hors ligne
#23 Mon 12 February 2007 15:55
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
Bonjour,
J'ai un autre problème lié à l'installation de mapserver.
J'ai un message d'erreur quand je crée une couche liée à Postgis :
Warning: [MapServer Error]: msPOSTGISLayerOpen(): msPOSTGISLayerOpen called but unimplemented! (mapserver not compiled with postgis support)
Pourtant je compile mapserver avec postgis
--with-postgis=/usr/local/pgsql/bin/pg_config
Mais j'ai l'impression que ça ne me le prend pas en compte puisque quand je fais mapserv -v, j'obtiens :
MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE
Merci de votre aide
Hors ligne
#24 Mon 12 February 2007 16:10
Re: [Mapserver]Pb d'installation
Bonjour,
Aprés avoir compilé, vous déplacez bien les scripts CGI au bon endroit ? Ca arrive parfois d'oublier de les déplacer ^^ (hum hum, vive l'expérience
Y.
Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !! - GeoRezo vous aide ? Aidez GeoRezo !
Hors ligne
#25 Mon 12 February 2007 16:22
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
Il y a juste le mapserv à déplacer c'est ça?
Si c'est le cas oui je le fais et je redémarre apache aussi
Hors ligne
#26 Mon 12 February 2007 16:40
Re: [Mapserver]Pb d'installation
Bonjour,
Pour tester mapserver oui, sinon, il y a aussi legend, shp2img, shptree, ....
Et si vous utilisez mapserver en CGI, vous n'avez pas besoin de redémarrer Apache.
Pour revenir à votre problème, êtes vous sur de ne pas avoir de problème lors de la compilation (./configure ET make) ?
Y.
Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !! - GeoRezo vous aide ? Aidez GeoRezo !
Hors ligne
#27 Mon 12 February 2007 17:02
- duckaurore
- Participant occasionnel
- Date d'inscription: 5 Sep 2005
- Messages: 20
Re: [Mapserver]Pb d'installation
je vous mets le résultat de la compil :
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for exp in -lm... yes
checking for __gxx_personality_v0 in -lstdc++... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strlcat... no
checking for vsnprintf... yes
MapServer Version from map.h: '4.10.0'
configure: checking where FreeType 2.x is installed...
checking for FT_Init_FreeType in -lfreetype... yes
using libfreetype -lfreetype from system libs.
configure: checking where Zlib is installed...
checking for zlibVersion in -lz... yes
using libz from system libs (-DUSE_ZLIB).
configure: checking where PNG is installed...
checking for png_init_io in -lpng... yes
using libpng from system libs.
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
using libjpeg from system libs.
configure: checking where libXpm is installed...
checking for XpmFreeXpmImage in -lXpm... no
XPM (libXpm) library cannot be found, possibly needed for GD
configure: checking where libiconv is installed...
checking for iconv_open in -lc... yes
checking for libiconv_open in -liconv... no
using libiconv from system libs.
libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.16 or higher...
checking for gdFontCacheSetup in -lgd... yes
checking for gdFontCacheSetup in -lgd... (cached) yes
using libgd 2.0.16 (or higher) from system libs (-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageOpenPolygon in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... yes
using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system libs.
configure: checking whether we should include PDF support...
checking for PDF_setlinewidth in -lpdf... no
checking for PDF_setrgbcolor in -lpdf... no
checking for PDF_moveto in -lpdf... no
checking for PDF_curveto in -lpdf... no
checking for PDF_show_xy in -lpdf... no
libpdf not found... PDF support not included.
configure: checking whether we should include EPPL7 support...
including EPPL7 support.
configure: checking whether we should include PROJ.4 support...
PROJ.4 support not requested.
configure: checking whether we should include thread safe support...
thread safe support disabled.
configure: checking whether we should include ESRI SDE support...
ESRI SDE support not requested.
checking if GEOS support requested... no
configure: checking whether we should include OGR support...
OGR support not requested.
checking if GDAL support requested... no
checking checking ms JPEG output... yes, GDAL is not available but libjpeg is.
configure: checking whether we should include TIFF support...
checking for TIFFOpen in -ltiff... yes
using libtiff from system libs.
checking if PostGIS support requested... yes, user supplied pg_config
checking if MyGIS support requested... no
checking if OracleSpatial support requested... no
checking if MING/Flash support requested... no
configure: checking whether we should include WMS Server support...
OGC WMS Compatibility not enabled (PROJ.4 is required for WMS).
configure: checking whether we should include WFS Server support...
OGC WFS Server support not requested.
configure: checking whether we should include WCS Server support...
OGC WCS Server support not requested.
configure: checking whether we should include WMS Client Connections support...
OGC WMS Client Connections not enabled (PROJ.4 and libcurl required).
configure: checking whether we should include WFS Client Connections support...
OGC WFS Client Connections not enabled (PROJ.4, libcurl and OGR required).
configure: checking whether we should include OGC SOS Server support...
OGC SOS Support not enabled (PROJ.4 and libxml2 required).
configure: checking for curl-config...
configure: checking for xml2-config...
configure: checking whether FastCGI support should be enabled...
FastCGI support not enabled.
configure: checking HTTPD server (Apache) version...
checking for httpd... no
'httpd' not found, skipping Apache version detection. You may want to use --with-httpd=/path/to/httpd
Compiling with fast MS_NINT
checking compiler warnings... basic
configure: checking whether we should enable debug features...
configure: checking for PHP/MapScript module options...
PHP/MapScript module not configured.
checking for g++ -shared ... yes
checking if --enable-runpath requested... no
checking if --with-java-include-os-name specified... no, autodetected linux
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/java/Makefile
config.status: creating mapscript/csharp/Makefile
Je n'ai pas d'erreurs sur le make.
Hors ligne