Problem configuring Postgres under Cygwin

From: Kjell-Olav Bjerknes <kob(at)norkart(dot)no>
To: "'pgsql-cygwin(at)postgresql(dot)org'" <pgsql-cygwin(at)postgresql(dot)org>
Subject: Problem configuring Postgres under Cygwin
Date: 2002-10-31 15:11:47
Message-ID: 01C280F8.372D5E00.kob@norkart.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Hi.

I searched the archives and seen a lot of people having this problem, but
not yet seen an answer that makes me able to configure postgres from
source.
Since I want to use PostGIS I need to build from source...

I have installed on a winXP:

postgresql-7.2.3-1
cygipc-1.11-1.tar.bz2
cygwin-1.3.14-1

The ipc-daemon is running, ( initdb works....)

I run this command:

$ ./configure --enable-multibyte --with-CXX --prefix=/usr --sysconfdir=/etc
--docdir=/usr/doc/postgresql-7.2.3

And get this output on screen:

[snip]
checking for default soft limit on number of connections... 32
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
using CFLAGS=-O2
checking whether the C compiler (gcc -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.

The config.log shows this:

[snip]
configure:1318: checking whether gcc accepts -g
configure:1361: checking whether the C compiler (gcc -O2 ) works
configure:1377: gcc -o conftest -O2 conftest.c -lcygipc 1>&5
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
cannot find -lcygipc
collect2: ld returned 1 exit status
configure: failed program was:

#line 1372 "configure"
#include "confdefs.h"

main(){return(0);}

Does anyone have any clue???

Clue?::
The Cygwin is freshly installed and it gave me some trouble trying to
initdb conserning the permission on postgres.exe.
(FATAL 1: /usr/bin/postgres: could not locate executable, bailing out...)
I had to:
$ chown 544 /usr/bin
$ chmod 755 /usr/bin
and reinstall the packages....
prioir chmod:
-rwx------ 1 kob None 87552 Aug 25 02:18 postgres.exe
after chmod:
-rwxr-xr-x 1 kob None 87552 Aug 25 02:18 postgres.exe

Could it be some other directories that needs to chmod/chown?

Kjell-Olav

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jonas Wouters 2002-10-31 15:33:08 Returning a recordset and filling datatable in a .NET applicatio n
Previous Message Dave Page 2002-10-31 08:48:02 Re: ipc-daemon