<div dir="ltr">Hi,<div><br></div><div>I would suggest you to check/update your shared libraries after compiling MapCache...</div><div>You will find more info there : </div><div><a href="http://unix.stackexchange.com/questions/67781/use-shared-libraries-in-usr-local-lib">http://unix.stackexchange.com/questions/67781/use-shared-libraries-in-usr-local-lib</a><br></div><div><br></div><div>Cheers,</div><div>Mathieu</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 2:12 AM, 刘小二 <span dir="ltr"><<a href="mailto:liuxiaoer@live.cn" target="_blank">liuxiaoer@live.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi, list:<br><div><div dir="ltr"><br>I had succeeded in  compiling and installing the mapcache according to the <a href="http://mapserver.org/mapcache/install.html" target="_blank">guide</a>, but there was something wrong with integrating mod_mapcache.so to apache httpd. The following is my logs about compiling and installing and httpd conf file.<br><div><div dir="ltr"><br><div style="display:inline-block">    <span> </span>    <div style="display:inline-block"><br></div>    <span> </span></div><br><div style="display:inline-block">    <span> </span>    <div style="display:inline-block"><br></div>    <span> </span></div><span></span><br><div style="display:inline-block">    <span> </span>    <div style="display:inline-block">mapcache.conf<br><br><IfModule !mapcache_module><br>  LoadModule mapcache_module modules/mod_apreq2.so<br></IfModule><br>#<Directory /var/www/mapcache><br>#  Require all granted<br>#</Directory><br>#MapCacheAlias /mapcache "/var/www/mapcache/mapcache.xml"<br></div>     <span><br></span></div><div style="display:inline-block">    <span> </span>    <div style="display:inline-block"><br></div>    <span> </span></div><br><div style="display:inline-block">    <span> </span>    <div style="display:inline-block"><br></div>    <span> </span></div><br><div style="display:inline-block">    <span> </span>    <div style="display:inline-block">[root@localhost build]# systemctl status httpd.service -l<br>httpd.service - The Apache HTTP Server<br>   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)<br>   Active: failed (Result: exit-code) since 三 2015-01-14 08:19:05 CST; 7s ago<br>  Process: 29697 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)<br>  Process: 29695 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)<br> Main PID: 29695 (code=exited, status=1/FAILURE)<br>   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"<br><br>1月 14 08:19:05 localhost.localdomain httpd[29695]: httpd: <font color="#D24726">Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.modules.d/10-mp-.conf: Cannot load modules/mod_mapcache.so into server: libmapcache.so.1: cannot open shared object file: No such file or directory</font><br>1月 14 08:19:05 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE<br>1月 14 08:19:05 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.<br>1月 14 08:19:05 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.<br></div><span> </span><br></div><br>                                    <div>                          <div>                <span><img src="https://bay179.mail.live.com/ol/clear.gif"></span><span><img src="https://bay179.mail.live.com/ol/clear.gif"></span><span><img src="https://bay179.mail.live.com/ol/clear.gif"></span><span><img src="https://bay179.mail.live.com/ol/clear.gif"></span>                </div>  Any advice will be appreciated. <br></div><pre> <br>Regards,</pre>liuxiaoer<br>                                       </div></div>                                        </div></div>                                        </div></div>
<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote></div><br></div>