Changes between Version 7 and Version 8 of UsersWikiWinCompile


Ignore:
Timestamp:
Apr 15, 2009, 12:09:38 PM (15 years ago)
Author:
nicklas
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiWinCompile

    v7 v8  
    3535     8. Bison (kent.dl.sourceforge.net/sourceforge/gnuwin32/bison-2.1.exe)
    3636     9. zlib (kent.dl.sourceforge.net/sourceforge/gnuwin32/zlib-1.2.3.exe)
    37      10. Flex  (http://kent.dl.sourceforge.net/sourceforge/gnuwin32/flex-2.5.4a-1.exe)
    38      11. GetText  (http://kent.dl.sourceforge.net/sourceforge/gnuwin32/gettext-0.14.4.exe)
    39      12. LibIconv  (http://kent.dl.sourceforge.net/sourceforge/gnuwin32/libiconv-1.9.2-1.exe)
     37     10. Flex  (kent.dl.sourceforge.net/sourceforge/gnuwin32/flex-2.5.4a-1.exe)
     38     11. GetText  (kent.dl.sourceforge.net/sourceforge/gnuwin32/gettext-0.14.4.exe)
     39     12. LibIconv  (kent.dl.sourceforge.net/sourceforge/gnuwin32/libiconv-1.9.2-1.exe)
    4040
    4141
     
    107107'''Compiling PostgreSQL'''
    108108   
    109 Download latest PostgreSQL source and untar in C:\thesrc[[BR]]
     109Download latest PostgreSQL source from http://www.postgresql.org/ftp/source/ and untar in C:\thesrc[[BR]]
    110110move to folder[[BR]]
    111111cd /c/thesrc/postgresql-8.3.7 (the version of today)[[BR]]
     
    114114note that we now have changed the install-directory from mingw to postgres
    115115
    116 if you get an error something like:
    117 e:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sspi.h:60: error: syntax error before SECURITY_STRING
    118 In file included from e:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/security.h:39,
    119 from libpq-int.h:57,
    120 from fe-auth.h:18,
    121 from fe-auth.c:48:
     116if you get an error something like:[[BR]]
     117e:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sspi.h:60: error: syntax error before SECURITY_STRING[[BR]]
     118In file included from e:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/security.h:39,[[BR]]
     119from libpq-int.h:57,[[BR]]
     120from fe-auth.h:18,[[BR]]
     121from fe-auth.c:48:[[BR]]
    122122e:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:123: error: syntax error before SECURITY_STRING
    123123
    124 the solution is to edit two of the source-files.
    125 In both files:
    126 postgresql-8.3.7/src/include/libpq/libpq-be.h
    127 and
     124the solution is to edit two of the source-files.[[BR]]
     125In both files:[[BR]]
     126postgresql-8.3.7/src/include/libpq/libpq-be.h[[BR]]
     127and[[BR]]
    128128postgresql-8.3.7/src/interfaces/libpq/libpq-int.h:
    129129
    130 add a new include-file:
    131 #ifdef ENABLE_SSPI
    132 #define SECURITY_WIN32
    133 #include <ntsecapi.h> <- Add this include
    134 #include <security.h>
    135 #undef SECURITY_WIN32
     130add a new include-file:[[BR]]
     131#ifdef ENABLE_SSPI[[BR]]
     132#define SECURITY_WIN32[[BR]]
     133#include <ntsecapi.h> '''<- Add this include'''[[BR]]
     134#include <security.h>[[BR]]
     135#undef SECURITY_WIN32[[BR]]
    136136
    137 read about this here:
    138 pgolub.wordpress.com/2008/12/15/building-postgresql-client-library-using-mingw-under-winxp-sp3/
    139 and
    140 postgresqlorg.blogspot.com/2008/09/hackers-83-4-vista-mingw-initdb.html
     137read about this here:[[BR]]
     138pgolub.wordpress.com/2008/12/15/building-postgresql-client-library-using-mingw-under-winxp-sp3/[[BR]]
     139and[[BR]]
     140postgresqlorg.blogspot.com/2008/09/hackers-83-4-vista-mingw-initdb.html[[BR]]
    141141
     142'''Compiling GEOS'''[[BR]]
     143Download latest GEOS -- from trac.osgeo.org/geos/ (download.osgeo.org/geos/geos-3.1.0rc2.tar.bz2)[[BR]]
     144Do the same as with postgresql, extract to c:\thesrc[[BR]]
     145in msys terminal print[[BR]]
     146configure --prefix-/c/postgres && make && make install[[BR]]
    142147
    143 Compiling GEOS
    144 Download latest GEOS -- from trac.osgeo.org/geos/ (download.osgeo.org/geos/geos-3.1.0rc2.tar.bz2)
    145 Do the same as with postgresql, extract to c:\thesrc
    146 in msys terminal print
     148'''Compiling Proj'''[[BR]]
     149Download latest Proj -- from trac.osgeo.org/proj/ (download.osgeo.org/proj/proj-4.6.1.zip)[[BR]]
     150in msys terminal print[[BR]]
    147151configure --prefix-/c/postgres && make && make install
    148152
    149 Compiling Proj
    150 Download latest Proj -- from trac.osgeo.org/proj/ (download.osgeo.org/proj/proj-4.6.1.zip)
    151 in msys terminal print
    152 configure --prefix-/c/postgres && make && make install
     153'''Compiling PostGIS SVN 1.4'''
     154       1. Download postgis.refractions.net/download/postgis-1.4.0SVN.tar.gz and put in C:/thesrc
     155       2. cd /c/thesrc
     156       3. gzip -d -c postgis-1.4.0SVN.tar.gz | tar xvf -
     157       4. cd postgis-svn
     158       5. configure --prefix=/c/postgresql --with-pgconfig=/c/postgresql/bin/pg_config -with-geosconfig=/c/postgresql/bin/geos-config --with-projdir=/c/postgresql
     159       6. make
     160       7. make install
     161       8. copy postgis-1.4.dll from C:\postgresql\lib to your windows PostgreSQL lib folder
     162       9. copy C:\postgresql\bin\libgeos-3-1-0.dll and libgeos_c-1.dll to your PostgreSQL bin folder
     163       
    153164
    154 Compiling PostGIS SVN 1.4
    155      1. Download postgis.refractions.net/download/postgis-1.4.0SVN.tar.gz and put in C:/thesrc
    156      2. cd /c/thesrc
    157      3. gzip -d -c postgis-1.4.0SVN.tar.gz | tar xvf -
    158      4. cd postgis-svn
    159      5. configure --prefix=/c/postgresql --with-pgconfig=/c/postgresql/bin/pg_config -with-geosconfig=/c/postgresql/bin/geos-config --with-projdir=/c/postgresql
    160      6. make
    161      7. make install
    162      8. copy postgis-1.4.dll from C:\postgresql\lib to your windows PostgreSQL lib folder
    163      9. copy C:\postgresql\bin\libgeos-3-1-0.dll and libgeos_c-1.dll to your PostgreSQL bin folder
    164