215 | | == Corrupt Filemap == #corruptdatabase |
216 | | |
217 | | '''Error message:'''[[BR]] |
218 | | {{{ |
219 | | Error: unknown node kind in database (database is corrupted?) |
220 | | }}} |
221 | | |
222 | | '''Workaround:'''[[BR]] |
223 | | |
224 | | Probably something went wrong while a port was being (un)installed or (de)activated, such as a kernel panic or the machine losing power. You can fix the database file (`/opt/local/var/macports/receipts/file_map.db`) by downloading the following script: |
225 | | {{{ |
226 | | http://svn.macports.org/repository/macports/contrib/repairfilemap/repairfilemap.tcl |
227 | | }}} |
228 | | Follow the instructions in the comments at the beginning of the script. |
229 | | You can invoke the script by typing: |
230 | | {{{ |
231 | | chmod +x repairfilemap.tcl |
232 | | sudo ./repairfilemap.tcl |
233 | | }}} |
234 | | |