113 | | |
114 | | == Compiling and Installing Development Versions of GRASS == |
115 | | |
116 | | === Optional Installation of Subversion === |
117 | | |
118 | | The GRASS source tree is stored in an [http://svn.osgeo.org/grass online repository] called Subversion. Rather than downloading source trees from the website, Subversion lets you keep up to date, and manage your modifications, with simple commands or a graphical tool. For details, see [wiki:HowToSVN here]. |
119 | | |
120 | | A) Command line based: |
121 | | |
122 | | 1. Download '''Collabnet Subversion Command-Line Client (1.6)''' from [http://www.collab.net/downloads/subversion/ here]. (You'll have to register on Collabnet) |
123 | | |
124 | | 2. Run the subversion installer and install it to a path without spaces such as {{{c:/Subversion}}} |
125 | | |
126 | | 3. Open {{{c:\osgeo4w\etc\ini\msys.bat}}} and at line 1 add the path to your subversion folder, e.g. change: |
127 | | {{{ |
128 | | PATH %PATH%;%OSGEO4W_ROOT%\apps\msys\bin |
129 | | }}} |
130 | | to: |
131 | | {{{ |
132 | | PATH %PATH%;%OSGEO4W_ROOT%\apps\msys\bin;c:\Subversion |
133 | | }}} |
134 | | |
135 | | B) Graphical user interface based: |
136 | | Alternatively, get '''TortoiseSVN''', a plugin for Windows Explorer, which can be used for managing the local source tree. Download [http://tortoisesvn.tigris.org/ here]. |
137 | | |
138 | | === GRASS 6.4.svn (releasebranch_64) === |
139 | | |
140 | | 1. Download the grass-6.4.svn source tree with: |
141 | | |
142 | | * Subversion (also see [wiki:DownloadSource#GRASS6.4 here]) |
143 | | {{{ |
144 | | cd /osgeo4w/usr/src |
145 | | svn co https://svn.osgeo.org/grass/grass/branches/releasebranch_6_4/ grass64_release |
146 | | cd /osgeo4w/usr/src/grass64_release |
147 | | }}} |
148 | | |
149 | | OR |
150 | | |
151 | | * Download a weekly snapshot from [http://grass.osgeo.org/grass64/source/snapshot/ here] and unpack to `/osgeo4w/usr/src` |
152 | | |
153 | | 2. See [wiki:CompileOnWindows#CompilingandInstalling below] for compilation and installation. |
154 | | |
155 | | 3. After installation, start with: |
156 | | {{{ |
157 | | grass64 |
158 | | }}} |
159 | | |
160 | | |
161 | | === GRASS 6.5.svn (develbranch_6) === |
162 | | |
163 | | 1. Download the grass-6.5.svn source tree with: |
164 | | |
165 | | * Subversion (also see [wiki:DownloadSource#GRASS6.5 here]) |
166 | | {{{ |
167 | | cd /osgeo4w/usr/src |
168 | | svn co https://svn.osgeo.org/grass/grass/branches/develbranch_6/ grass6_devel |
169 | | cd /osgeo4w/usr/src/grass6_devel |
170 | | }}} |
171 | | |
172 | | OR |
173 | | |
174 | | * Download a weekly snapshot from [http://grass.osgeo.org/grass65/source/snapshot/ here] and unpack to `/osgeo4w/usr/src` |
175 | | |
176 | | 2. See [wiki:CompileOnWindows#CompilingandInstalling below] for compilation and installation. |
177 | | |
178 | | 3. After installation, start with: |
179 | | {{{ |
180 | | grass65 |
181 | | }}} |
182 | | |
183 | | === GRASS 7.0.svn (trunk) === |
184 | | |
185 | | 1. Download the grass-7.0.svn source tree with: |
186 | | |
187 | | * Subversion (also see [wiki:DownloadSource#GRASS7 here]) |
188 | | {{{ |
189 | | cd /osgeo4w/usr/src |
190 | | svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk |
191 | | cd /osgeo4w/usr/src/grass_trunk |
192 | | }}} |
193 | | |
194 | | OR |
195 | | |
196 | | * Download a weekly snapshot from [http://grass.osgeo.org/grass70/source/snapshot/ here] and unpack to `/osgeo4w/usr/src` |
197 | | |
198 | | 2. See [wiki:CompileOnWindows#CompilingandInstalling below] for compilation and installation. |
199 | | |
200 | | 3. After installation, start with: |
201 | | {{{ |
202 | | grass70 |
203 | | }}} |
204 | | |
205 | | === Compiling and Installing === |
206 | | |
207 | | To compile, type in MSYS console: |
208 | | {{{ |
209 | | ./mswindows/osgeo4w/package.sh |
210 | | }}} |
211 | | |
212 | | To update your source tree later using subversion and recompile type: |
213 | | {{{ |
214 | | make distclean |
215 | | svn up |
216 | | rm mswindows/osgeo4w/configure-stamp |
217 | | ./mswindows/osgeo4w/package.sh |
218 | | }}} |
219 | | |
220 | | |
221 | | === Troubleshooting === |
222 | | |
223 | | Here are a few common problems and their solutions: |
224 | | ||''With module...''||''If you get the error''||''Do the following''|| |
225 | | ||r.mapcalc, r.univar, or raster3d/base||No rule to make target ... needed by 'progs'||Update msys's '''make''' (see step 8 in the MinGW section [wiki:CompileOnWindows#InstalltheenvironmentforcompilationMingW above])|| |
226 | | ||scripts/*||!ImportError: No module named grass||Fix {{{PYTHONPATH}}} to *nix-style (eg. {{{PYTHONPATH=/osego4w/apps/Python25}}})|| |
227 | | |
228 | | |