<div class="gmail_quote">---------- Message transféré ----------<br>De : &quot;thomas bonfort&quot; &lt;<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>&gt;<br>Date : 18 janv. 2012 19:09<br>Objet : Re: [mapserver-dev] Trunk problems - Apache2 crashing creating cgi-bin/.libs<br>
À : &quot;Smith, Michael ERDC-CRREL-NH&quot; &lt;<a href="mailto:Michael.Smith@usace.army.mil">Michael.Smith@usace.army.mil</a>&gt;<br><br type="attribution"><p>To clarify Mike &#39;s advice:<br>
- you configure with --prefix=/usr/local (or another location)<br>
- you run make install<br>
- you copy/symlink $prefix/bin/mapserv to your cgi-bin directory<br>
- the $prefix/bin/mapserv is not a wrapper script, the one in the source directory is (and therefore cannot be used by copying it directly to the cgi-bin dir)</p>
<div class="gmail_quote">Le 18 janv. 2012 18:45, &quot;Smith, Michael ERDC-CRREL-NH&quot; &lt;<a href="mailto:Michael.Smith@usace.army.mil" target="_blank">Michael.Smith@usace.army.mil</a>&gt; a écrit :<div class="elided-text">
<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Havard,<br>
<br>
This is due to the new build configuration that uses libtool. Now, you<br>
need to do a make install which will copy the binaries to you $PREFIX/bin<br>
directory and then you copy the mapserv file (which is now a wrapper) to<br>
your cgi-bin dir.<br>
<br>
Mike<br>
<br>
--<br>
Michael Smith<br>
<br>
US Army Corps<br>
Remote Sensing GIS/Center<br>
<br>
<br>
<br>
On 1/18/12 4:34 AM, &quot;Havard Tveite&quot; &lt;<a href="mailto:havard.tveite@umb.no" target="_blank">havard.tveite@umb.no</a>&gt; wrote:<br>
<br>
&gt;I recently updated to the latest version of trunk.<br>
&gt;configure and make went fine, and the binary seemed to<br>
&gt;work (mapserv -v).<br>
&gt;<br>
&gt;shp2img seems to be OK.<br>
&gt;<br>
&gt;However, when I tried to run it through Apache I get<br>
&gt;an internal server error with the following in the<br>
&gt;Apache error log:<br>
&gt;<br>
&gt;mkdir: cannot create directory `/usr/lib/cgi-bin/.libs&#39;: Permission denied<br>
&gt;/usr/bin/ld: cannot open output file<br>
&gt;/usr/lib/cgi-bin/.libs/2915-lt-mapserv: No such file or directory<br>
&gt;collect2: ld returned 1 exit statusn<br>
&gt;Premature end of script headers: mapserver-trunk<br>
&gt;<br>
&gt;I have tested with a few map files.<br>
&gt;<br>
&gt;I am using Apache2 on Debian Lenny, and everything was<br>
&gt;OK with my build from the end of November.<br>
&gt;<br>
&gt;I have noticed that the --with-httpd is gone from configure.<br>
&gt;I have not included --with-apache-module in configure.<br>
&gt;<br>
&gt;I am hesitant to file a bug, as I guess I have missed<br>
&gt;something.  Does anyone have an idea about what it can be?<br>
&gt;I have looked in the migration guide, but could not find<br>
&gt;anything there.<br>
&gt;<br>
&gt;mapserv -v<br>
&gt;MapServer version 6.1-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG<br>
&gt;  SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE<br>
&gt;  SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT<br>
&gt;  SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER<br>
&gt;  SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS<br>
&gt;  INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br>
&gt;<br>
&gt;I have built using:<br>
&gt;make clean<br>
&gt;./configure --prefix=/usr/local --enable-debug --with-freetype=/usr<br>
&gt;--with-zlib=/usr --with-png=/usr --with-libiconv=/usr/local<br>
&gt;--with-gd=/usr/local --with-proj=/usr/local<br>
&gt;--with-ogr=/usr/local/bin/gdal-config<br>
&gt;--with-gdal=/usr/local/bin/gdal-config<br>
&gt;--with-postgis=/usr/local/pgsql/835/bin/pg_config --with-wfs --with-wcs<br>
&gt;--with-wmsclient --with-wfsclient --with-php=/usr/bin/php-config<br>
&gt;--with-geos --with-fastcgi --with-threads --with-jpeg --with-cairo<br>
&gt;--with-apxs=/usr/bin/apxs2 --with-apr-config=/usr/bin/apr-config<br>
&gt;make<br>
&gt;<br>
&gt;<br>
&gt;Håvard<br>
&gt;<br>
&gt;--<br>
&gt;Håvard Tveite<br>
&gt;Department of Mathematical Sciences and Technology, UMB<br>
&gt;Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY<br>
&gt;Phone: <a href="tel:%2B47%2064965483" value="+4764965483" target="_blank">+47 64965483</a> Fax: <a href="tel:%2B47%2064965401" value="+4764965401" target="_blank">+47 64965401</a> <a href="http://www.umb.no/imt/" target="_blank">http://www.umb.no/imt/</a><br>


&gt;_______________________________________________<br>
&gt;mapserver-dev mailing list<br>
&gt;<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
&gt;<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
<br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</blockquote></div></div>
</div>