[mapserver-users] multiple mapserv versions side by side
Daniel Morissette
dmorissette at mapgears.com
Tue Feb 17 18:48:16 PST 2015
On 2015-02-17 9:18 PM, Richard Greenwood wrote:
> I'd like to play with the mapserv 7 beta on the same Ubuntu machine that
> I have mapserv 6.4 installed on. But both versions are using
> libmapserver.so so depending on what I have in my ldconfig path it's
> finding the 6.4 version lib or the 7beta ib. Is there an easier way to
> have both versions without changing ldconfig each time I switch between
> the two versions? Sorry, I know this is probably a pretty basic Linux
> question.
>
Hi Rich,
Use
cmake ... -DLINK_STATIC_LIBMAPSERVER=1 ...
and libmapserver.a will be statically linked into your mapserv
executable, and then you can simply copy the executable to your cgi-bin
cp ./mapserv /usr/lib/cgi-bin/mapserv70
--
Daniel Morissette
T: +1 418-696-5056 #201
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
More information about the MapServer-users
mailing list