pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
initdb fail to execute
2+ messages / 2 participants
[nested] [flat]

* initdb fail to execute
@ 2013-05-04 19:45 Jinu K J <jinu.mail@gmail.com>
  2013-05-07 06:30 ` Re: initdb fail to execute Hari Babu <haribabu.kommi@huawei.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Jinu K J @ 2013-05-04 19:45 UTC (permalink / raw)
  To: pgsql-bugs

Hi,
We are trying install postgresql 9.2.3 version for windows xp.
Below issue happen only for this particular PC.
Other windows XP installations are ok.

Here initdb command failed mentioning that , it is able to find postgres ,
but version mismatched.
Below code print this.
--->
postgresql-9.2.3\src\bin\initdb\initdb.c
line 2884 :
    if ((ret = find_other_exec(argv[0], "postgres", PG_BACKEND_VERSIONSTR,
                               backend_exec)) < 0)
    {
        char        full_path[MAXPGPATH];

        if (find_my_exec(argv[0], full_path) < 0)
            strlcpy(full_path, progname, sizeof(full_path));

        if (ret == -1)
            fprintf(stderr,
                    _("The program \"postgres\" is needed by %s "
                      "but was not found in the\n"
                      "same directory as \"%s\".\n"
                      "Check your installation.\n"),
                    progname, full_path);
        else
*            fprintf(stderr,
                    _("The program \"postgres\" was found by \"%s\"\n"
                      "but was not the same version as %s.\n"
                      "Check your installation.\n"),
                    full_path, progname);*
        exit(1);
    }
----->

We compared the versions of both initdb.exe and postgres.exe using -V
option.
Both print 9.2.3.

Also data folder is not created.
Please let me know whether it is due to some issue with user permissions ??

Please let me know what can be the reason for this issue.

Thanks,
Jinu

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: initdb fail to execute
  2013-05-04 19:45 initdb fail to execute Jinu K J <jinu.mail@gmail.com>
@ 2013-05-07 06:30 ` Hari Babu <haribabu.kommi@huawei.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Hari Babu @ 2013-05-07 06:30 UTC (permalink / raw)
  To: 'Jinu K J' <jinu.mail@gmail.com>; +Cc: pgsql-bugs

On Sunday, May 05, 2013 1:15 AM Jinu K J wrote:

>Hi,

>We are trying install postgresql 9.2.3 version for windows xp.

>Below issue happen only for this particular PC.

>Other windows XP installations are ok.

>Here initdb command failed mentioning that , it is able to find postgres ,
but version mismatched.

 

Can you please check is there any other version of postgres present in the
machine?

 

Regards,

Hari babu.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2013-05-07 06:30 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-05-04 19:45 initdb fail to execute Jinu K J <jinu.mail@gmail.com>
2013-05-07 06:30 ` Hari Babu <haribabu.kommi@huawei.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox