#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Chennai, India
    Posts
    69
    Rep Power
    13

    PosgreSQL installation error on windows


    When installing PostgreSQL 7.2.1 on windows, get the following error...

    Previously, installed cygwin successfully.


    $ cd post*

    Administrator@WEBLOGIC /cygdrive/e/postgresql-7.2.1
    $ ./configure
    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 NLS is wanted... 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 crea
    e executables.

    Administrator@WEBLOGIC /cygdrive/e/postgresql-7.2.1
    Thank you for your valuable input.

    Best Regards.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Chennai, India
    Posts
    69
    Rep Power
    13
    This error was sorted out doing the following...

    a) download cygipc-1.13.2.tar.bz2, extract and untar.

    b) create a symbolic link from /usr/local/lib/libcygipc.a
    to /usr/lib

    c) run ./configure



    Now, I can run ./configure successfully. However, I'm now struggling with gmake, gives the following error:

    $ gmake
    bash: gmake: command not found
    Thank you for your valuable input.
    Last edited by ggnanaraj; November 15th, 2002 at 07:15 AM.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Chennai, India
    Posts
    69
    Rep Power
    13
    Hi

    Found out that 'gmake' is same as 'make' in cygwin. So now, get the following error when using make:

    $ make
    make -C doc all
    make[1]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/doc'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/doc'

    ((sniped))

    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    access/common'
    make -C gist SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /access/gist'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    access/gist'
    make -C hash SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /access/hash'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    access/hash'
    make -C heap SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /access/heap'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    access/heap'
    make -C index SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /access/index'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    access/index'
    make -C nbtree SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /access/nbtree'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    access/nbtree'
    make -C rtree SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /access/rtree'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    access/rtree'
    make -C transam SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /access/transam'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    access/transam'
    make[3]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    access'
    make -C bootstrap all
    make[3]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /bootstrap'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    bootstrap'
    make -C catalog all
    make[3]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /catalog'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    catalog'
    make -C parser all
    make[3]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /parser'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    parser'

    ((sniped))


    make -C optimizer all
    make[3]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /optimizer'
    make -C geqo SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /optimizer/geqo'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    optimizer/geqo'
    make -C path SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /optimizer/path'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    optimizer/path'
    make -C plan SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /optimizer/plan'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    optimizer/plan'
    make -C prep SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /optimizer/prep'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    optimizer/prep'
    make -C util SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /optimizer/util'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    optimizer/util'
    make[3]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    optimizer'
    make -C port all
    make[3]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /port'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    port'
    make -C postmaster all
    make[3]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /postmaster'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    postmaster'
    make -C regex all
    make[3]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /regex'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    regex'
    make -C rewrite all
    make[3]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /rewrite'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    rewrite'
    make -C storage all
    make[3]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /storage'
    make -C buffer SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /storage/buffer'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    storage/buffer'
    make -C file SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /storage/file'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    storage/file'
    make -C freespace SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /storage/freespace'
    make[4]: `SUBSYS.o' is up to date.
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    storage/freespace'
    make -C ipc SUBSYS.o
    make[4]: Entering directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend
    /storage/ipc'
    gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/incl
    ude -I/usr/local/include -DBUILDING_DLL=1 -c -o ipc.o ipc.c
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    ipc.c: In function `InternalIpcSemaphoreCreate':
    ipc.c:271: warning: implicit declaration of function `semget'
    ipc.c:271: `IPC_CREAT' undeclared (first use in this function)
    ipc.c:271: (Each undeclared identifier is reported only once
    ipc.c:271: for each function it appears in.)
    ipc.c:271: `IPC_EXCL' undeclared (first use in this function)
    ipc.c:318: warning: implicit declaration of function `semctl'
    ipc.c:318: `SETALL' undeclared (first use in this function)
    ipc.c: In function `IpcSemaphoreKill':
    ipc.c:351: `IPC_RMID' undeclared (first use in this function)
    ipc.c: In function `IpcSemaphoreLock':
    ipc.c:378: storage size of `sops' isn't known
    ipc.c:422: warning: implicit declaration of function `semop'
    ipc.c:378: warning: unused variable `sops'
    ipc.c: In function `IpcSemaphoreUnlock':
    ipc.c:441: storage size of `sops' isn't known
    ipc.c:441: warning: unused variable `sops'
    ipc.c: In function `IpcSemaphoreTryLock':
    ipc.c:475: storage size of `sops' isn't known
    ipc.c:478: `IPC_NOWAIT' undeclared (first use in this function)
    ipc.c:475: warning: unused variable `sops'
    ipc.c: In function `IpcSemaphoreGetValue':
    ipc.c:519: `GETVAL' undeclared (first use in this function)
    ipc.c: In function `IpcSemaphoreGetLastPID':
    ipc.c:530: `GETPID' undeclared (first use in this function)
    ipc.c: In function `InternalIpcMemoryCreate':
    ipc.c:561: warning: implicit declaration of function `shmget'
    ipc.c:561: `IPC_CREAT' undeclared (first use in this function)
    ipc.c:561: `IPC_EXCL' undeclared (first use in this function)
    ipc.c:638: warning: implicit declaration of function `shmat'
    ipc.c:638: warning: assignment makes pointer from integer without a cast
    ipc.c: In function `IpcMemoryDetach':
    ipc.c:664: warning: implicit declaration of function `shmdt'
    ipc.c: In function `IpcMemoryDelete':
    ipc.c:681: warning: implicit declaration of function `shmctl'
    ipc.c:681: `IPC_RMID' undeclared (first use in this function)
    ipc.c: In function `SharedMemoryIsInUse':
    ipc.c:697: storage size of `shmStat' isn't known
    ipc.c:707: `IPC_STAT' undeclared (first use in this function)
    ipc.c:697: warning: unused variable `shmStat'
    ipc.c: In function `IpcMemoryCreate':
    ipc.c:818: warning: assignment makes pointer from integer without a cast
    ipc.c:850: `IPC_RMID' undeclared (first use in this function)
    ipc.c: In function `IpcSemaphoreCreate':
    ipc.c:940: `IPC_RMID' undeclared (first use in this function)
    ipc.c:966: `SETVAL' undeclared (first use in this function)
    make[4]: *** [ipc.o] Error 1
    make[4]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    storage/ipc'
    make[3]: *** [ipc-recursive] Error 2
    make[3]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend/
    storage'
    make[2]: *** [storage-recursive] Error 2
    make[2]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src/backend'

    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/cygdrive/c/postgresql/postgresql-7.2.1/src'
    make: *** [all] Error 2
    Do give your valuable input.

    Best Regards.

IMN logo majestic logo threadwatch logo seochat tools logo