Thread: running make after ./configure results in error

running make after ./configure results in error

From
"Raymond Wee"
Date:
I followed the procedure listed in FAQ_MSWIN after installing PostGreSQL on
my win2k system using cygwin, After the ./compile procedure (which was
successful) there was some error in the make. The error is listed as
follows:

/usr/lib/gcc -lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
cannot find -lcrypt
collect2: ld returned 1 exit status
make[2]: *** [postgres] Error 1
make[2]: Leaving directory '/usr/src/postgresql-7.1.3/src/backend'
make[1]: *** [install] Error 2
make[1]: Leaving directory '/usr/src/postgresql-7.1.3/src'
make: *** [install] Error 2

how do I solve this? thanks in advance!

Raymond


Re: running make after ./configure results in error

From
Jason Tishler
Date:
Raymond,

On Wed, Jan 23, 2002 at 05:52:47PM +0800, Raymond Wee wrote:
> I followed the procedure listed in FAQ_MSWIN after installing PostGreSQL on
> my win2k system using cygwin, After the ./compile procedure (which was
> successful) there was some error in the make. The error is listed as
> follows:
>
> /usr/lib/gcc -lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
> cannot find -lcrypt
> collect2: ld returned 1 exit status
>
> how do I solve this? thanks in advance!

Use Cygwin's setup.exe to install the crypt package.

BTW, a pre-built PostgreSQL 7.1.3 is part of the standard Cygwin
distribution.

Jason

Re: running make after ./configure results in error

From
Jason Tishler
Date:
Raymond,

Please keep your replies on-list.

On Thu, Jan 24, 2002 at 01:32:56PM +0800, Raymond Wee wrote:
> Thanks! The make was finally successful, in step 9 of the document it says:
>
> 9. initdb
>                  Note that the owner of the DB system have to be different
> from root/administrator
>
> what does this mean? sorry, im kinda new in this.

Under Unix, postmaster will refuse to run under the root account.
Under Windows the analogous accounts to a avoid are Administrator and
LocalSystem.  Although, Cygwin PostgreSQL does not check for these
accounts and will run under them.

> some documents I've searched mentioned performing the following
>
> cmd /c lusrmgr.msc # [3]
> cmd /c secpol.msc [4]
>
> I think I have already done this and I have a postgres user existing
> already,

Good -- you are reading my README.  For production use, it is best to
run postmaster under an ordinary but separate account such as postgres.
For personal, just run under your own user account.

> however when I try to login using cygwin, it says login incorrect.
> Could you please teach me what is wrong? Thanks a lot!

Cygwin's login will only work if it is running under an account with the
appropriate privileges such as LocalSystem.  My suggestion is to use
ssh to simulate login.  Please read the READMEs in /usr/doc/Cygwin for
more details.

Jason