| | 111 | |
| | 112 | == Troubleshooting == |
| | 113 | === Mac OS X === |
| | 114 | ==== getCurrentDirectory: resource exhausted (Too many open files) ==== |
| | 115 | 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. |
| | 116 | |
| | 117 | {{{ |
| | 118 | $ darcs pull -a |
| | 119 | Pulling from "http://darcs.haskell.org/ghc"... |
| | 120 | This is the GHC darcs repository (HEAD branch) |
| | 121 | |
| | 122 | For more information, visit the GHC developer wiki at |
| | 123 | http://hackage.haskell.org/trac/ghc |
| | 124 | ********************** |
| | 125 | darcs: getCurrentDirectory: resource exhausted (Too many open files) |
| | 126 | }}} |
| | 127 | |
| | 128 | 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. |
| | 129 | |
| | 130 | 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). |
| | 131 | |
| | 132 | This issue has been reported as [http://bugs.darcs.net/issue560 issue 560] in the darcs bug tracking system. |