| | 245 | |
| | 246 | === getCurrentDirectory: resource exhausted (Too many open files) === |
| | 247 | |
| | 248 | By default, Mac OS X limits the number of open files to 256. This may cause problems when applying patches in step 3 of ''Getting a GHC source tree using darcs'' with darcs 1.0.9. |
| | 249 | |
| | 250 | {{{ |
| | 251 | $ darcs pull -a |
| | 252 | Pulling from "http://darcs.haskell.org/ghc"... |
| | 253 | This is the GHC darcs repository (HEAD branch) |
| | 254 | |
| | 255 | For more information, visit the GHC developer wiki at |
| | 256 | http://hackage.haskell.org/trac/ghc |
| | 257 | ********************** |
| | 258 | darcs: getCurrentDirectory: resource exhausted (Too many open files) |
| | 259 | }}} |
| | 260 | |
| | 261 | If this happens, try increasing the number of open files allowed by typing in {{{$ ulimit -n unlimited}}} and try pulling again. If this fails, close all terminal windows, restart Terminal.app, and try again. |
| | 262 | |
| | 263 | If this still doesn't work, try pulling 100 patches at a time using the {{{darcs pull}}} command (notice the lack of the {{{-a}}} flag). Hold down 'y' until 100 or so patches are accepted, then hit 'd' to skip the rest; repeat until all patches are applied. If this fails, try with less than 100 patches at a time (e.g., 50). |
| | 264 | |
| | 265 | This issue has been reported as [http://bugs.darcs.net/issue560 issue 560] in the darcs bug tracking system. |
| | 266 | |
| | 267 | === Ubuntu: {{{dash}}} vs {{{bash}}} === |
| | 268 | In Ubuntu 6.10 the default system shell {{{/bin/sh}}} was changed to {{{dash}}} (The Debian Almquist Shell) instead of {{{bash}}}, see [http://wiki.ubuntu.com/DashAsBinSh DashAsBinSh]. This has been reported to break the GHC build. Until the GHC scripts are updated, the easiest way to fix this problem is to (as {{{root}}}) change the {{{/bin/sh}}} link back to {{{/bin/bash}}}. There should be minimal effect on the rest of the system, bar a small speed penalty for script heavy processes due to {{{bash}}} slowness. |