Thread: problem to configure postgresql

problem to configure postgresql

From
Giuliano Castelli
Date:
I tried to install PostgreSQL without success.

At the beginning I wrote:
./ipc-daemon --install-as-service
net start ipc-daemon
the computer correctly answer:
The Cygwin IPC Daemon service is starting.
The Cygwin IPC Daemon service was started
successfully.

Now if I try to configure PostgreSQL a bug occurs.

If I write:
./configure
the computer answer:
loading cache ./config.cache
checking host system type... i686-pc-cygwin
checking which template to use... win
checking whether to build with locale support... no
checking whether to build with recode support... no
checking whether to build with multibyte character
support... no
checking whether to build with Unicode conversion
support... no
checking for default port number... 5432
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 creat
e executables.

and then it stops. I don't understand why because
cygipc runs, doesn't it?

the .log file contains:
This file contains any messages produced by compilers
while
running configure, to aid debugging if configure makes
a mistake.

configure:629: checking host system type
configure:655: checking which template to use
configure:818: checking whether to build with locale
support
configure:847: checking whether to build with recode
support
configure:877: checking whether to build with
multibyte character support
configure:929: checking whether to build with Unicode
conversion support
configure:960: checking for default port number
configure:994: checking for default soft limit on
number of connections
configure:1118: checking for gcc
configure:1231: checking whether the C compiler (gcc
) works
configure:1247: gcc -o conftest    conftest.c  1>&5
configure:1273: checking whether the C compiler (gcc
) is a cross-compiler
configure:1278: checking whether we are using GNU C
configure:1287: gcc -E conftest.c
configure:1306: checking whether gcc accepts -g
configure:1349: checking whether the C compiler (gcc
-O2 ) works
configure:1365: gcc -o conftest -O2   conftest.c
-lcygipc 1>&5
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
cannot find -lcygipc
collect2: ld returned 1 exit status
configure: failed program was:

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

main(){return(0);}



Have you any ideas why it happens?

Many thanks, best regards,

Giuliano Castelli.




__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

Re: problem to configure postgresql

From
"Russell Black"
Date:
Why are you trying to build postgresql?  Why don't you just use the
pre-built binary that comes with cygwin in /usr/bin?

Russell

----- Original Message -----
From: "Giuliano Castelli" <giulcast@yahoo.com>
To: <pgsql-cygwin@postgresql.org>
Sent: Thursday, November 08, 2001 7:41 AM
Subject: [CYGWIN] problem to configure postgresql


> I tried to install PostgreSQL without success.
>
> At the beginning I wrote:
> ./ipc-daemon --install-as-service
> net start ipc-daemon
> the computer correctly answer:
> The Cygwin IPC Daemon service is starting.
> The Cygwin IPC Daemon service was started
> successfully.
>
> Now if I try to configure PostgreSQL a bug occurs.
>
> If I write:
> ./configure
> the computer answer:
> loading cache ./config.cache
> checking host system type... i686-pc-cygwin
> checking which template to use... win
> checking whether to build with locale support... no
> checking whether to build with recode support... no
> checking whether to build with multibyte character
> support... no
> checking whether to build with Unicode conversion
> support... no
> checking for default port number... 5432
> 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 creat
> e executables.
>
> and then it stops. I don't understand why because
> cygipc runs, doesn't it?
>
> the .log file contains:
> This file contains any messages produced by compilers
> while
> running configure, to aid debugging if configure makes
> a mistake.
>
> configure:629: checking host system type
> configure:655: checking which template to use
> configure:818: checking whether to build with locale
> support
> configure:847: checking whether to build with recode
> support
> configure:877: checking whether to build with
> multibyte character support
> configure:929: checking whether to build with Unicode
> conversion support
> configure:960: checking for default port number
> configure:994: checking for default soft limit on
> number of connections
> configure:1118: checking for gcc
> configure:1231: checking whether the C compiler (gcc
> ) works
> configure:1247: gcc -o conftest    conftest.c  1>&5
> configure:1273: checking whether the C compiler (gcc
> ) is a cross-compiler
> configure:1278: checking whether we are using GNU C
> configure:1287: gcc -E conftest.c
> configure:1306: checking whether gcc accepts -g
> configure:1349: checking whether the C compiler (gcc
> -O2 ) works
> configure:1365: gcc -o conftest -O2   conftest.c
> -lcygipc 1>&5
>
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
> cannot find -lcygipc
> collect2: ld returned 1 exit status
> configure: failed program was:
>
> #line 1360 "configure"
> #include "confdefs.h"
>
> main(){return(0);}
>
>
>
> Have you any ideas why it happens?
>
> Many thanks, best regards,
>
> Giuliano Castelli.
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html


Re: problem to configure postgresql

From
Francis Purcell
Date:
Hi Giuliano,

Like someone else pointed out, there is a pre-built version that comes with Cygwin.  To answer the
question "why would you want to build?", you may want to install a pg language other than pgSql,
like pgTcl or pgPython, etc...  At least that's my main reason for wanting to build...

Anyway, the "cannot find -lcygipc" error seems to be saying that this file
/usr/local/lib/libcygipc.a does not exist.  That may be your problem right there.  I have this
file, and I do not get this error after doing a ./configure.  But this isn't saying much, since I
have major problems with the make step once I'm done configuring.  I've built postgres in the past
though, so...

My advice is to follow these instructions, even though they are a bit out of date
http://people.freebsd.org/~kevlo/postgres/portNT.html.  And if anyone knows of any instructions
that are more up to date, please post them.

Good luck,
Frank



__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

Re: problem to configure postgresql

From
"Norman Vine"
Date:
Francis Purcell writes:
>
>My advice is to follow these instructions, even though they
>are a bit out of date
>http://people.freebsd.org/~kevlo/postgres/portNT.html.  And if
>anyone knows of any instructions that are more up to date,
>please post them.

Install both the binary and the source Cygwin distributions
then see
 / usr / doc / Cygwin / psotgresql-7.1.3

Cheers

Norman