From the PostGIS manual about Compiling and Install from source I get the general procedure to be ...
- Install postgres
- get a couple of libraries PostGIS depends on
- download and extract the PostGIS sources
- run the
configure
shell script - run
make
that should build PostGIS against (and only working with) the current installed postgres version.
now my questions
- will you get something out of the build process that you can move to other machines with the same postgres version (and the required libraries) and use it there as well, or
- build PostGIS into the running postgres installation and be able to use it on that exact machine in that exact combination?
- if you want to upgrade PostGIS ... do you have to remove the old version after the migration? if so, how do you do that exactly?