I ran make install in my 9.1 directory again,and this time,the server started but is giving errors in running the code which was running earlier.Could you tell me a way in which I could remove both 9.1 and 9.2beta2 and build both from scratch and install them independently this time?
cd <PostgreSQL 9.1/PostgreSQL 9.2beta2 source directory>
./configure
make distclean
Remove "pgsql" directory from /usr/local
and then you can build both from scratch and install them independently