Thread: postmaster executable ... missing?

postmaster executable ... missing?

From
"Jan Goller"
Date:
Hi!
 
I try to run PostgreSQL on WinXP. Everything so far works. But when I type
 
cygrunsrv --install postmaster --path /usr/bin/postmaster --args "-D /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user postgres --shutdown
 
there is always that error message:
 
cygrunsrv: Given path doesn't point to a valid executable
 
I installed all packages as is said in the readme:
 
    crypt 1.0-1
    cygipc 1.13-2
    cygwin 1.3.16-1
    gcc 3.2-3
    libncurses6 5.2-8
    libreadline5 4.2a-1
    perl 5.8.0-1
    readline 4.2a-1
    zlib 1.1.3-6
    Sun JDK 1.3
    Ant 1.5
 
So, why is that file missing? And where do i get it?
 
Thx
Jan

Re: postmaster executable ... missing?

From
Justin Clift
Date:
Jan Goller wrote:
> Hi!
>
> I try to run PostgreSQL on WinXP. Everything so far works. But when I type
>
> /cygrunsrv --install postmaster --path /usr/bin/postmaster --args "-D
> /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user
> postgres --shutdown/
>
> there is always that error message:
>
> /cygrunsrv: Given path doesn't point to a valid executable/
<snip>

Hi Jan,

This happened here a while ago too.  Not sure what the cause nor reason
for it is, but the solution that worked for me was to (using the bash
shell):

1) Change to the /bin directory

cd /bin

2) Remove the existing "postmaster" symlink

rm postmaster

3) Create a new postmaster symlink

ln -s /bin/postgres.exe postmaster


After that, everything worked fine again.

Hope that helps.

Regards and best wishes,

Justin Clift


--
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi


Re: postmaster executable ... missing?

From
"joek hondius"
Date:
Hi

Copying a symlink under win messes it up.
Windows "sees" it as a Shortcut and rewrites it as one.
Cygwin does not recognize Shortcuts as sysmlinks.

Try it sometime,
-before copy
explorer: postmaster, Shortcut
cyg-bash: postmaster, Symlink
-after copy
explorer: postmaster, Shortcut
cyg-bash: postmaster.lnk, file

ms knows some special filename extentions: .lnk .url, that you dont get to
see even with show extentions ON.
bash does.

I am always gratefull for ms making special exceptions  ;)

JH


> -----Oorspronkelijk bericht-----
> Van: pgsql-cygwin-owner@postgresql.org
> [mailto:pgsql-cygwin-owner@postgresql.org]Namens Justin Clift
> Verzonden: woensdag 5 februari 2003 4:04
> Aan: Jan Goller
> CC: pgsql-cygwin@postgresql.org
> Onderwerp: Re: [CYGWIN] postmaster executable ... missing?
>
>
> Jan Goller wrote:
> > Hi!
> >
> > I try to run PostgreSQL on WinXP. Everything so far works. But
> when I type
> >
> > /cygrunsrv --install postmaster --path /usr/bin/postmaster --args "-D
> > /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user
> > postgres --shutdown/
> >
> > there is always that error message:
> >
> > /cygrunsrv: Given path doesn't point to a valid executable/
> <snip>
>
> Hi Jan,
>
> This happened here a while ago too.  Not sure what the cause nor reason
> for it is, but the solution that worked for me was to (using the bash
> shell):
>
> 1) Change to the /bin directory
>
> cd /bin
>
> 2) Remove the existing "postmaster" symlink
>
> rm postmaster
>
> 3) Create a new postmaster symlink
>
> ln -s /bin/postgres.exe postmaster
>
>
> After that, everything worked fine again.
>
> Hope that helps.
>
> Regards and best wishes,
>
> Justin Clift
>
>
> --
> "My grandfather once told me that there are two kinds of people: those
> who work and those who take the credit. He told me to try to be in the
> first group; there was less competition there."
> - Indira Gandhi
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


Re: postmaster executable ... missing?

From
Jason Tishler
Date:
Jan,

On Tue, Feb 04, 2003 at 08:49:54PM +0100, Jan Goller wrote:
> there is always that error message:
>
> cygrunsrv: Given path doesn't point to a valid executable

Execute the following and post the results to the list:

    $ ls -l /usr/bin/postmaster /usr/bin/postgres.exe
    -rwxr-xr-x    1 jt       Domain U  3062926 Feb  5 08:59 /usr/bin/postgres.exe
    lrwxrwxrwx    1 Administ Domain U       23 Jan 29 11:35 /usr/bin/postmaster -> postgres.exe

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6