| 1 | | |
| 2 | | To build v6-alpha see INSTALL.v6-alpha |
| | 1 | Note: To build v6-alpha, see the INSTALL.v6-alpha file instead. |
| | 2 | |
| | 3 | INSTALLING PUGS VIA CABAL |
| | 4 | ------------------------- |
| | 5 | |
| | 6 | The current recommended way to build Pugs is via cabal-install. |
| | 7 | |
| | 8 | Follow these steps: |
| | 9 | |
| | 10 | 1. Make sure you have Cabal, HTTP, zlib and cabal-install installed |
| | 11 | (in this order): |
| | 12 | |
| | 13 | http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Cabal |
| | 14 | http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP |
| | 15 | http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib |
| | 16 | http://hackage.haskell.org/cgi-bin/hackage-scripts/package/cabal-install |
| | 17 | |
| | 18 | If you're unsure how to install this, the instructions contained in the README |
| | 19 | file of Cabal will help you get started. Those instructions work for all the |
| | 20 | above packages. |
| | 21 | |
| | 22 | 2. Type the following commands: |
| | 23 | |
| | 24 | cabal update |
| | 25 | cabal install Pugs |
| | 26 | |
| | 27 | ...and you're done. To build an optimized Pugs for benchmarking or smoke |
| | 28 | testing, replace the second command with: |
| | 29 | |
| | 30 | cabal install -O2 Pugs |
| | 31 | |
| | 32 | 3. To upgrade the current Pugs installation to the latest released version, |
| | 33 | simply type the same two lines of commands above: |
| | 34 | |
| | 35 | cabal update |
| | 36 | cabal install Pugs |
| | 37 | |
| | 38 | INSTALLING PUGS ON CYGWIN |
| | 39 | ------------------------- |
| | 40 | For installing pugs on cygwin via cabal, please follow these instructions: |
| | 41 | http://use.perl.org/~rurban/journal/36897 |
| | 42 | |
| | 43 | |
| | 44 | |
| | 45 | ---8<------8<------8<------8<------8<------8<------8<------8<------8<------8<--- |
| | 46 | Cut here - Instructions below are outdated! |
| | 47 | ---8<------8<------8<------8<------8<------8<------8<------8<------8<------8<--- |
| | 48 | |
| 245 | | INSTALLING PUGS VIA CABAL |
| 246 | | ------------------------- |
| 247 | | |
| 248 | | It's now possible to download and install Pugs using cabal-install. Follow |
| 249 | | these steps: |
| 250 | | |
| 251 | | 1. Make sure you have Cabal, HTTP, zlib and cabal-install installed |
| 252 | | (in this order): |
| 253 | | |
| 254 | | http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Cabal |
| 255 | | http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP |
| 256 | | http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib |
| 257 | | http://hackage.haskell.org/cgi-bin/hackage-scripts/package/cabal-install |
| 258 | | |
| 259 | | (If you're unsure how to install this, the instructions contained in the README |
| 260 | | file of Cabal will help you get started. Those instructions work for all the |
| 261 | | above packages.) |
| 262 | | |
| 263 | | 2. Type the following commands: |
| 264 | | |
| 265 | | cabal update |
| 266 | | cabal install Pugs |
| 267 | | |
| 268 | | ...and you're done. To build an optimized Pugs for benchmarking or smoke |
| 269 | | testing, replace the second command with: |
| 270 | | |
| 271 | | cabal install Pugs -fOptimize |
| 272 | | |
| 273 | | 3. To upgrade the current Pugs installation to the latest released version, |
| 274 | | simply type the same two lines of commands above: |
| 275 | | |
| 276 | | cabal update |
| 277 | | cabal install Pugs |
| 278 | | |
| 279 | | INSTALLING PUGS ON CYGWIN |
| 280 | | ------------------------- |
| 281 | | For installing pugs on cygwin via cabal, please follow these instructions: |
| 282 | | http://use.perl.org/~rurban/journal/36897 |