Thread: postgresql 6.5.2 for WinNT and how I made it compile...
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@ssis.sbic.se