Skip site navigation (1) Skip section navigation (2)

postgresql 6.5.2 for WinNT and how I made it compile...

From: David Löfstrand <davidl(at)ssis(dot)sbic(dot)se>
To: pgsql-ports(at)postgresql(dot)org
Subject: postgresql 6.5.2 for WinNT and how I made it compile...
Date: 1999-09-22 10:57:43
Message-ID: 37E8B627.C3B3A0AD@ssis.sbic.se (view raw or flat)
Thread:
Lists: pgsql-ports
This is how I managed to compile postgresql 6.5.2 on NT
I have installed Cygwin-B20, Andy Piper Tools and Cygin32 IPC Package
(as recommended in http://www.postgresql.org/docs/pgsql/doc/README.NT)
but still some things did not work out for me so this is the problems
that I encountered and how I solved them on my system.
Note that some things I did are really hackish, at least I think so.


http://www.postgresql.org/docs/pgsql/doc/README.NT
1. Download the current version of PostgreSQL.
2. Untar the package.
3. Copy the files from \pgsql\src\win32 according to the readme file.
3. Edit \pgsql\src\template\cygwin32 if needed (I had to adjust the
YFLAGS path).

My hackish workaround:
    4. export CONFIG_SHELL=/cygnus/cygwin-b20/H-i586-cygwin32/bin/sh
    5. touch backend/port/tas/dummy.s
    6. sh ./configure --with-mb=UNICODE
Now I needed to do step 5 since otherwise the configure script returned
with the following output:
    linking ./backend/port/tas/dummy.s to backend/port/tas.s
    configure: error: ./backend/port/tas/dummy.s: File not found
And I assumed (heh) that the file dummy.s was noting else but a dummy
file :)
    7. make
Here it should normally work but the makefiles didn't work out
completely either.
For me it returned with this output:
    ./genbki.sh  ../../include/catalog/pg_database.h
../../include/catalog/pg_variable.h \
    ../../include/catalog/pg_shadow.h ../../include/catalog/pg_group.h \

    ../../include/catalog/pg_log.h > global1.bki.source
2>global1.description
    make[2]: *** [global1.bki.source] Error 127
    make[1]: *** [catalog.dir] Error 2
    make: *** [all] Error 2
This is how I "fixed" it
    8. cd backend/catalog
    9. make
    make: *** [local1_template1.bki.source] Error 127
    10. make
    make: Nothing to be done for `all'.
Now everything worked for me after the commands:
    11. cd ../..
    12. make
    13. make install

I hope you won't dislike my solutions too much but it worked for me and
I thought others might have problems with it too.

David Loefstrand
davidl(at)ssis(dot)sbic(dot)se



pgsql-ports by date

Next:From: David LöfstrandDate: 1999-09-22 11:28:44
Subject: postgresql 6.5.2 for WinNT and how I made it compile...
Previous:From: Bill GeddesDate: 1999-09-21 23:11:59
Subject: Re: Installing PostgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group