Changes between Version 17 and Version 18 of UsersWikiWinCompile
- Timestamp:
- 04/15/09 13:08:29 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiWinCompile
v17 v18 30 30 2. untar them and copy all content to c:\msys\1.0 and and click ok to overwrite existing files and folders. 31 31 32 '''5. Download and install the following from gnuwin32.sourceforge.net/packages.html'''[[BR]] 33 Change install directory to c:\mingw 32 '''5. Download and install the following from gnuwin32.sourceforge.net/packages.html''' 34 33 1. Bison, http://kent.dl.sourceforge.net/sourceforge/gnuwin32/bison-2.1.exe 35 34 2. zlib, http://kent.dl.sourceforge.net/sourceforge/gnuwin32/zlib-1.2.3.exe … … 37 36 4. !GetText, http://kent.dl.sourceforge.net/sourceforge/gnuwin32/gettext-0.14.4.exe 38 37 5. !LibIconv, http://kent.dl.sourceforge.net/sourceforge/gnuwin32/libiconv-1.9.2-1.exe 38 Change install directory to c:\mingw 39 39 40 40 '''6. update m4'''[[BR]] … … 87 87 if you just see a new folder called autoconf-2.63 you have to go into that one to:[[BR]] 88 88 ''cd autoconf-2.63''[[BR]] 89 90 91 89 when you se a lot of folders like bin and lib and a lot of files, then you are right[[BR]] 90 now we shall configure and make this tool[[BR]] 91 print: 92 92 4. ''configure --prefix-/c/mingw && make && make install'' 93 94 now a lot of text shall appear in the window and after a while you will hopefully get no error-messages but jut get back to your prompt.[[BR]] 95 96 now go to the other source-code directories and do the same[[BR]] 97 93 now a lot of text shall appear in the window and after a while you will hopefully get no error-messages but jut get back to your prompt.[[BR]] 94 now go to the other source-code directories and do the same[[BR]] 98 95 5. ''cd ..'' (backing to the directory c:\thesrc) 99 96 6. ''cd automake-1.10.2'' … … 105 102 106 103 107 '''9. Compiling PostgreSQL''' 108 104 '''9. Compiling PostgreSQL'''[[BR]] 109 105 Download latest PostgreSQL source from http://www.postgresql.org/ftp/source/ and untar in C:\thesrc[[BR]] 110 106 move to folder[[BR]] 111 1. ''cd /c/thesrc/postgresql-8.3.7'' (the version of today)[[BR]] 112 2. ''configure --prefix-/c/postgres && make && make install''[[BR]] 113 107 1. ''cd /c/thesrc/postgresql-8.3.7'' (the version of today) 108 2. ''configure --prefix-/c/postgres && make && make install'' 114 109 note that we now have changed the install-directory from mingw to postgres 115 110 … … 141 136 142 137 '''10. Compiling GEOS'''[[BR]] 143 Download latest GEOS -- from trac.osgeo.org/geos/ (download.osgeo.org/geos/geos-3.1.0rc2.tar.bz2)[[BR]]138 Download latest GEOS-source from trac.osgeo.org/geos/ (http://download.osgeo.org/geos/geos-3.1.0rc2.tar.bz2)[[BR]] 144 139 Do the same as with postgresql, extract to c:\thesrc[[BR]] 145 in msys terminal print[[BR]]146 1. ''configure --prefix-/c/postgres && make && make install'' [[BR]]140 in msys terminal move to the GEOS source-code directory[[BR]] 141 1. ''configure --prefix-/c/postgres && make && make install'' 147 142 148 143 '''11. Compiling Proj'''[[BR]] 149 Download latest Proj -- from trac.osgeo.org/proj/ (download.osgeo.org/proj/proj-4.6.1.zip)[[BR]]150 in msys terminal print[[BR]]151 configure --prefix-/c/postgres && make && make install 144 Download latest Proj from trac.osgeo.org/proj/ (http://download.osgeo.org/proj/proj-4.6.1.zip)[[BR]] 145 in msys terminal move to the Proj source-code directory[[BR]] 146 1. ''configure --prefix-/c/postgres && make && make install'' 152 147 153 ''' Compiling PostGIS SVN 1.4'''148 '''12. Compiling PostGIS SVN 1.4''' 154 149 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 150 2. ''cd /c/thesrc'' 151 3. ''gzip -d -c postgis-1.4.0SVN.tar.gz | tar xvf -'' 152 4. ''cd postgis-svn'' 153 5. ''configure --prefix=/c/postgresql --with-pgconfig=/c/postgresql/bin/pg_config -with-geosconfig=/c/postgresql/bin/geos-config --with-projdir=/c/postgresql'' 154 6. ''make'' 155 7. ''make install'' 156 157 '''13. To use your new postgis''' 158 1. copy postgis-1.4.dll from C:\postgresql\lib to your windows PostgreSQL lib folder 159 2. copy C:\postgresql\bin\libgeos-3-1-0.dll and libgeos_c-1.dll to your PostgreSQL bin folder 160 3. open PGAdmin and make a new database without any template 161 4. open a new query-window to your new database 162 5. run postgis.sql and spatial_ref_sys.sql from C:\postgresql\share\contrib\ 163 164 Hopefully you now have a database running your recently compiled postgis. 165 163 166 164 167