Обсуждение: newbie compile question. please help
Dear Folks, Could someone please tell me what I am doing wrong here? I made some minor changes to main.c then make then make install when I want to start the postmaster I get ************************************************** The program "postmaster" was found by "/home/gevik/postgres/build2/bin/pg_ctl" but was not the same version as pg_ctl. Check your installation. ************************************************* What am I doing wrong here? Regards, Gevik
gevik@xs4all.nl writes:
> I made some minor changes to
> main.c then
> make then
> make install
> when I want to start the postmaster I get
> The program "postmaster" was found by
> "/home/gevik/postgres/build2/bin/pg_ctl"
> but was not the same version as pg_ctl.
Maybe you did something that broke recognition of the "-V" command-line option?
What happens when you do "postmaster -V"?
regards, tom lane
Check the path of pg_ctl and postmaster, you must have two versions on the machine somewhere. Dave gevik@xs4all.nl wrote: >Dear Folks, > >Could someone please tell me what I am doing wrong here? > >I made some minor changes to >main.c then >make then >make install > >when I want to start the postmaster I get > >************************************************** >The program "postmaster" was found by >"/home/gevik/postgres/build2/bin/pg_ctl" >but was not the same version as pg_ctl. >Check your installation. >************************************************* > >What am I doing wrong here? > >Regards, > >Gevik > > >---------------------------(end of broadcast)--------------------------- >TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > > > > -- Dave Cramer http://www.postgresintl.com 519 939 0336 ICQ#14675561
Problem solved. I added some printf statements in order do print some debug information. The tools like pg_ctl always run postmaster -V in order to get the version number. The printf statements that I added, printed extra info which pg_ctl could not "understand". Therefore I got the error. Regards, Gevik -----Original Message----- From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Dave Cramer Sent: Friday, November 12, 2004 1:01 AM To: gevik@xs4all.nl Cc: pgsql-hackers@postgresql.org Subject: Re: [HACKERS] newbie compile question. please help Check the path of pg_ctl and postmaster, you must have two versions on the machine somewhere. Dave gevik@xs4all.nl wrote: >Dear Folks, > >Could someone please tell me what I am doing wrong here? > >I made some minor changes to >main.c then >make then >make install > >when I want to start the postmaster I get > >************************************************** >The program "postmaster" was found by >"/home/gevik/postgres/build2/bin/pg_ctl" >but was not the same version as pg_ctl. >Check your installation. >************************************************* > >What am I doing wrong here? > >Regards, > >Gevik > > >---------------------------(end of broadcast)--------------------------- >TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > > > > -- Dave Cramer http://www.postgresintl.com 519 939 0336 ICQ#14675561 ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org