<div dir="ltr">Thanks Daniel. I'd like to also have php mapscript but with static linking i'm getting error below. Any suggestions for that?<br><br>Linking CXX shared module php_mapscript.so<br>/usr/bin/ld: ../../libmapserver_static.a(cgiutil.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC<br>../../libmapserver_static.a: error adding symbols: Bad value<br>collect2: error: ld returned 1 exit status<br>make[2]: *** [mapscript/php/php_mapscript.so] Error 1<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 17, 2015 at 7:48 PM, Daniel Morissette <span dir="ltr"><<a href="mailto:dmorissette@mapgears.com" target="_blank">dmorissette@mapgears.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2015-02-17 9:18 PM, Richard Greenwood wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'd like to play with the mapserv 7 beta on the same Ubuntu machine that<br>
I have mapserv 6.4 installed on. But both versions are using<br>
libmapserver.so so depending on what I have in my ldconfig path it's<br>
finding the 6.4 version lib or the 7beta ib. Is there an easier way to<br>
have both versions without changing ldconfig each time I switch between<br>
the two versions? Sorry, I know this is probably a pretty basic Linux<br>
question.<br>
<br>
</blockquote>
<br>
<br></span>
Hi Rich,<br>
<br>
Use<br>
<br>
cmake ... -DLINK_STATIC_LIBMAPSERVER=1 ...<br>
<br>
and libmapserver.a will be statically linked into your mapserv executable, and then you can simply copy the executable to your cgi-bin<br>
<br>
cp ./mapserv /usr/lib/cgi-bin/mapserv70<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
-- <br>
Daniel Morissette<br>
T: <a href="tel:%2B1%20418-696-5056%20%23201" value="+14186965056" target="_blank">+1 418-696-5056 #201</a><br>
<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
Provider of Professional MapServer Support since 2000<br>
______________________________<u></u>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Richard W. Greenwood, PLS<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div>
</div>