Re: Regarding parallel running of 9.1 and 9.2beta2

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
Cc: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, pgsql-general(at)postgresql(dot)org
Subject: Re: Regarding parallel running of 9.1 and 9.2beta2
Date: 2012-06-29 13:31:30
Message-ID: CAHyXU0yjFX5CfgfRckCse_RSW6_TriKxDEqus+wDZ0ZwXyiy2g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jun 29, 2012 at 6:57 AM, Atri Sharma <atri(dot)jiit(at)gmail(dot)com> wrote:
> On Fri, Jun 29, 2012 at 5:12 PM, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> wrote:
>> Atri Sharma wrote:
>>> I am running PostgreSQL 9.1 currently and I want to run 9.2beta2
>>> simultaneously with it.Is it possible?
>>>
>>> I downloaded the 9.2beta2 sources,untared them and ran
>>> ./configure,make and make install without uninstalling 9.1.
>>>
>>> Now,when I am running pg_ctl start,I am getting the following error:
>>>
>>>  pg_ctl start
>>> server starting
>>> gitc(at)ubuntu:~/Downloads$ FATAL:  database files are incompatible with
>> server
>>> DETAIL:  The data directory was initialized by PostgreSQL version 9.1,
>>> which is not compatible with this version 9.2beta2.
>>>
>>> Please help me.What should I be doing to recover from this error and
>>> get back to 9.1?
>>
>> Did you overwrite your 9.1 installation (i.e. --prefix was the same
>> for both installations)?
>>
>> If yes, then rebuild and reinstall 9.1, and everything should work.
>>
>> If you did not overwrite 9.1, simply use the 9.1 binaries to start
>> the server.
>>
>> Yours,
>> Laurenz Albe
>
> Hi Laurenz,
>
> Actually,I did not specify --prefix option at all in either case.
>
> I rebuilt and reinstalled 9.1,but now,as mentioned earlier,my project
> is not running successfully on it(I need the -ljvm flag in gcc for
> compilation.I am using PGXN and I added EXPORT CXXFLAG=$CXXFLAG
> "-ljvm" and EXPORT CFLAG=$CFLAG "-ljvm" to the makefile of my
> project.This was working till today morning,when I stupidly installed
> 9.2beta2 without specifying a new --prefix.)
>
> What should I do?

when in doubt, look at the other contrib projects. they use
SHLIB_LINK. This was in your old makefile at some point but it was
reverted out.

merlin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Atri Sharma 2012-06-29 13:35:44 Re: Regarding parallel running of 9.1 and 9.2beta2
Previous Message Atri Sharma 2012-06-29 11:57:16 Re: Regarding parallel running of 9.1 and 9.2beta2