delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/19/00:27:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 19 Jul 2004 00:26:58 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Carlo Florendo y Flora <list-subscriber AT hq DOT astra DOT ph>
cc: Manuel Tejada <mantemu AT yahoo DOT com DOT mx>, cygwin AT cygwin DOT com
Subject: Re: I can't inicializate PostgreSQL
In-Reply-To: <40FB40BA.7040703@hq.astra.ph>
Message-ID: <Pine.GSO.4.58.0407190004110.19508@slinky.cs.nyu.edu>
References: <20040718215906 DOT 70178 DOT qmail AT web53706 DOT mail DOT yahoo DOT com> <40FB40BA DOT 7040703 AT hq DOT astra DOT ph>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Mon, 19 Jul 2004, Carlo Florendo y Flora wrote:

> Manuel Tejada wrote:
>
> >I am using PostgreSQL for Cygwin on Windows ME from
> >April 2003
> >[snip]
> >
> >After reading some answer to various post in the mailing list archive
> >with similar problem and the
> >/usr/share/doc/Cygwin/postgres-7.4.3.README file, I decided to follow
> >the procedure using Cygserver instead ipc-daemon2:
> >- Set the CYGWIN variable enviroment to "server"
> >- Install and configure cygserver
> >- Run cygserver
> >- Initialize PostgreSQL
> >
> >But now the cygserver failled to run because the
> >System says the command is no found, as you can see in
> >the ouptput I show you bellow:
> >-------------------------------
> >
> >admin AT alejo ~
> >$ CYGWIN=server
> >
> >admin AT alejo ~
> >$ export CYGWIN
> >
> >admin AT alejo ~
> >$ cygserver-config
> >
> >Generating /etc/cygserver.conf file
> >chown: `system.544': invalid user
>
> Check whether  you have correct entries on your /etc/passwd and
> /etc/group files.
> `system.544' means `SYSTEM:root'.    The user `SYSTEM' should appear on
> your /etc/passwd file.
> The group `root' should be on your /etc/group file.  You should  notice
> that the group `root' has a GID (Group ID) of 544.
> If you get the above error message, there could be something wrong with
> your /etc/passwd or /etc/group file.
> Btw, my /etc/passwd and /etc/group files were automatically generated by
> cygwin.

The point is moot since this is on WinME, and I don't think chown works on
that system.  The fact that it's invoked is probably a bug in the script,
and the above message is harmless (on Win9x/ME).

> >Further configuration options are available by editing the
> >configuration file /etc/cygserver.conf.  Please read the inline
> >information in that file carefully. The best option for the start is to
> >just leave it alone.
> >
> >Please keep in mind, that a client application which wants to use the
> >services provided by cygserver *must* have the environment variable
> >CYGWIN set so that it contains the word "server".  So, if you don't
> >need any other special CYGWIN setting, just set it to "server".
> >
> >It is advisable to add this setting to the Windows system environment.
> >
> >Basic Cygserver configuration finished. Have fun!
> >
> >admin AT alejo ~
> >$ cygserver &
> >[1]118735
> >$bash: cygserver: command not found
> > [1]+ Exit 127    cygserver
>
> cygserver is in /usr/sbin/.

Yep.  Granted, the cygserver.README should have stated this fact, and
included the full path to use to invoke cygserver.

FWIW, it's still on my backburner to get cygrunsrv working on Win9x/ME
enough to make the setup similar to that of the WinNT-based systems
(unless I upgrade my home machine to XP first :-}).

> My cygwin installation didn't add /usr/sbin/ in the PATH environment
> variable.  I don't know whether this is the default behaviou or not.

It is.  This is by design.  See below.

> However, you may want to invoke cygserver by specifying is fully
> qualified path name:
>
> /us/sbin/cygserver
     ^r

> Else, you might want to ad /usr/sbin on your path variable although I
> don't know whether this would post some issues. AFAICS, there's none.
> However, there might be a reason why /usr/sbin/ was not included by
> default.  I don't know since I'm not a cygwin expert but if you ask
> someone on the mailing list, he could probably tell you why.

There is a reason, and the reason is that cygserver, like most of the
other stuff in /usr/sbin, was intended to run as a service (or be invoked
from a service).  On Unices, things in /sbin (for which /usr/sbin is the
equivalent in Cygwin) are those that shouldn't be accidentally invoked
from the command line, and should mostly be run as root.  Very few of the
Unices I know add /sbin to a normal user's PATH (they do add them to
root's PATH).  It is not a good idea to do this (though, perhaps, on
Win9x/ME it doesn't matter).

> >--------------------------------
> >
> >My questions are:
> >
> >a) In what I am failling myself?

In nothing.  The /usr/sbin thing looks like an omission in the docs.

> >b) Anybody knows how to fix this?

Run /usr/sbin/cygserver, as Carlo said.

> >c)Supposing there is no way how to fix this. what must I do to
> >reinstall the old PostgreSQL (7.4.1-3) that I still have the tar.gz
> >archive in a directory created by the utility setup.exe.? I tried to
> >reinstall the old one with the utility setup.exe but I can not see it
> >in the windows' utility.

When you say "windows' utility", I assume you mean Cygwin's setup.exe.  If
you start setup.exe, go to the package selection screen, and click on the
postgresql package version a few times, you should see the previous
version appear.  Switch to the "Partial" view (click on the "View" button)
to make sure that that's the only think you'll install, and finish the
installation.

> >Maybe I have to install it using ./configure, make, etc.?  Is possible
> >do this?

It should be, but why?  Since you had it installed earlier, this way will
just be unnecessary pain.

> I've written a tutorial on how to install PostgreSQL on cygwin.  It's
> largely copied from the cygwin docs but I've added a few explanations.
> You might find it helpful.  Check it out if you want:
> http://home.ripway.com/2004-3/81387/postgresql-cygwin.html

Does that include the Win9x/ME case?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019